StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcJetCalibMaker.h
1 // $Id: StMcJetCalibMaker.h,v 1.2 2014/08/06 11:43:41 jeromel Exp $
2 //
3 //*-- Author : Jan Balewski, MIT
4 // calibrates jets event by event using partonic 2->W/Z-> process
5 
6 #ifndef STAR_StMcJetCalibMaker
7 #define STAR_StMcJetCalibMaker
8 
21 #ifndef StMaker_H
22 #include "StMaker.h"
23 #endif
24 #include <TString.h>
25 
26 class St2009WMaker;
27 class St2009WjjMaker;
28 
29 class StMcJetCalibMaker : public StMaker {
30  private:
31 
32  float par_jetPtLow,par_jetPtHigh;
33  float par_jetEtaLow,par_jetEtaHigh ;
34  float par_delRmax; // match gen & reco jets
35 
36 
37  float par_vertexZ, par_verZerr; //cm
38  int par_corLevel; // level of jet energy correction
39  int isMC;
40 
41  St2009WMaker *wMK; // W-algo maker with all data
42  St2009WjjMaker * wjjMK;
43  TString core; // name attached to all histos
44 
45  // histograms
46  TObjArray *HList;
47  enum {mxHA=64, mxEta=8}; TH1 * hA[mxHA];
48 
49  void initHistos();
50  void calibrate();
51 
52  public:
53  StMcJetCalibMaker(const char *name="mcJetCalib");
54  virtual ~StMcJetCalibMaker(){};
55  virtual Int_t Init();
56  virtual Int_t InitRun (int runumber);
57  virtual Int_t Make();
58  void setHList(TObjArray * x){HList=x;}
59  void setCorrection(int x){ par_corLevel=x;}
60  void attachWalgoMaker(St2009WMaker *mk) { wMK=mk;}
61  void attachWjjMaker(St2009WjjMaker *mk) { wjjMK=mk;}
62 
63 
64  virtual Int_t FinishRun(int runumber);
65 
66 
68  virtual const char *GetCVS() const {
69  static const char cvs[]="Tag $Name: $ $Id: StMcJetCalibMaker.h,v 1.2 2014/08/06 11:43:41 jeromel Exp $ built " __DATE__ " " __TIME__ ;
70  return cvs;
71  }
72 
73  ClassDef(StMcJetCalibMaker,0) //StAF chain virtual base class for Makers
74 };
75 
76 #endif
77 
78 
79 // $Log: StMcJetCalibMaker.h,v $
80 // Revision 1.2 2014/08/06 11:43:41 jeromel
81 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
82 //
83 // Revision 1.1 2010/05/01 01:31:45 balewski
84 // added W->JJ code & JES calibration
85 //
86 // Revision 1.1 2010/04/16 01:04:43 balewski
87 // start
88 //
muDst based extraction of W-signal from pp500 data from 2009
Definition: St2009WMaker.h:50
virtual Int_t Make()
spin sorting of W&#39;s
spin sorting of W&#39;s
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...