StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St2009WjjMaker.h
1 // $Id: St2009WjjMaker.h,v 1.3 2014/08/06 11:43:41 jeromel Exp $
2 //
3 //*-- Author : Jan Balewski, MIT
4 
5 
6 #ifndef STAR_St2009WjjMaker
7 #define STAR_St2009WjjMaker
8 
21 #ifndef StMaker_H
22 #include "StMaker.h"
23 #endif
24 #include <TString.h>
25 #include <TLorentzVector.h>
26 
27 class St2009WMaker;
28 class StSpinDbMaker;
29 
30 class St2009WjjMaker : public StMaker {
31  private:
32  int nRun;
33  int Tfirst,Tlast;
34 
35  float par_jetPtLow,par_jetPtHigh;
36  float par_djPtLow, par_djPtHigh , par_djEtaMin , par_djPzLow, par_djPzHigh ;
37  float par_jetEtaLow,par_jetEtaHigh ;
38  float par_etaSumLow, par_etaSumHigh;
39  bool par_spinSort;
40  float par_vertexZ;
41  int par_corLevel; // level of jet energy correction
42  int isMC;
43 
44  St2009WMaker *wMK; // W-algo maker with all data
45  StSpinDbMaker *spinDb;
46  TString core; // name attached to all histo
47  TString mJEScorrFile;
48  enum {mxJESeta=8};
49  TH1F *mJEScorrH[mxJESeta];
50 
51  // histograms
52  TObjArray *HList;
53  enum {mxHA=32}; TH1 * hA[mxHA];
54  TH1F *hbxIdeal;
55 
56  void initHistos();
57  void bXingSort();
58  public:
59  St2009WjjMaker(const char *name="2009Wjetjet");
60  virtual ~St2009WjjMaker(){};
61  virtual Int_t Init();
62  virtual Int_t InitRun (int runumber);
63  virtual Int_t Make();
64  void setHList(TObjArray * x){HList=x;}
65  void setSpinSort(bool x){ par_spinSort=x;}
66  void setMC(int x){ isMC=x;}
67  void setCorrection(char *name){ mJEScorrFile=name; par_corLevel=1;}
68 
69  void attachWalgoMaker(St2009WMaker *mk) { wMK=mk;}
70  void attachSpinDb(StSpinDbMaker *mk){ spinDb=mk;}
71  virtual Int_t FinishRun(int runumber);
72 
73  TLorentzVector trueJet( TLorentzVector recoJet) ;
74 
76  virtual const char *GetCVS() const {
77  static const char cvs[]="Tag $Name: $ $Id: St2009WjjMaker.h,v 1.3 2014/08/06 11:43:41 jeromel Exp $ built " __DATE__ " " __TIME__ ;
78  return cvs;
79  }
80 
81  ClassDef(St2009WjjMaker,0) //StAF chain virtual base class for Makers
82 };
83 
84 #endif
85 
86 
87 // $Log: St2009WjjMaker.h,v $
88 // Revision 1.3 2014/08/06 11:43:41 jeromel
89 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
90 //
91 // Revision 1.2 2010/05/01 01:31:44 balewski
92 // added W->JJ code & JES calibration
93 //
94 // Revision 1.1 2010/04/16 01:04:43 balewski
95 // start
96 //
muDst based extraction of W-signal from pp500 data from 2009
Definition: St2009WMaker.h:50
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...
virtual Int_t Make()
spin sorting of W&#39;s