StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St2009pubMcMaker.h
1 // $Id: St2009pubMcMaker.h,v 1.5 2014/08/06 11:43:41 jeromel Exp $
2 //
3 //*-- Author : Justin Stevens, IUCF
4 
5 
6 #ifndef STAR_St2009pubMcMaker
7 #define STAR_St2009pubMcMaker
8 
23 #ifndef StMaker_H
24 #include "StMaker.h"
25 #endif
26 #include <TH2.h>
27 #include <TVector3.h>
28 class St2009WMaker;
29 class St2009ZMaker;
30 
31 class St2009pubMcMaker : public StMaker {
32  private:
33 
34  St2009WMaker *wMK; // W-algo maker with all data
35  St2009ZMaker *zMK; // Z-algo maker
36 
37  // histograms
38  TObjArray *HList;
39  enum {mxHA=200}; TH1 * hA[mxHA];
40  enum {mxHB=200}; TH2 * hB[mxHB];
41 
42  void initHistos();
43  void doWanalysis();
44  void doWefficiency();
45  bool doWMCanalysis();
46  void doZefficiency();
47  bool doZMCanalysis();
48 
49  TVector3 mWP;
50  TVector3 mNeutrinoP;
51  TVector3 mElectronP;
52  TVector3 mElectronSmearP;
53  TVector3 mElectronSmearTempP[10];
54  TVector3 mVertex;
55  //int mKeyElectron;
56  //int mEveGenElectron;
57  //int mIdElectron;
58  float wRB;
59 
60  TVector3 mZP;
61  TVector3 mZpositronP;
62  TVector3 mZelectronP;
63  TVector3 mZvertex;
64 
65  public:
66  St2009pubMcMaker(const char *name="2009pubMc");
67  virtual ~St2009pubMcMaker();
68  virtual Int_t Init();
69  virtual Int_t Make();
70  void setHList(TObjArray * x){HList=x;}
71 
72  void attachWalgoMaker(St2009WMaker *mk) { wMK=mk;}
73  void attachZalgoMaker(St2009ZMaker *mk) { zMK=mk;}
74 
75  virtual Int_t InitRun (int runumber){return 0;}; // Overload empty StMaker::InitRun
76  virtual Int_t FinishRun(int runumber){return 0;}; // Overload empty StMaker::FinishRun
77 
78 
79 
81  virtual const char *GetCVS() const {
82  static const char cvs[]="Tag $Name: $ $Id: St2009pubMcMaker.h,v 1.5 2014/08/06 11:43:41 jeromel Exp $ built " __DATE__ " " __TIME__ ;
83  return cvs;
84  }
85 
86  ClassDef(St2009pubMcMaker,0) //StAF chain virtual base class for Makers
87 };
88 
89 #endif
90 
91 
92 // $Log: St2009pubMcMaker.h,v $
93 // Revision 1.5 2014/08/06 11:43:41 jeromel
94 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
95 //
96 // Revision 1.4 2011/09/14 14:23:21 stevens4
97 // update used for cross section PRD paper
98 //
99 // Revision 1.3 2010/05/03 19:54:35 stevens4
100 // only try to calc effic if W->e+nu is found in McEvent
101 //
102 // Revision 1.2 2010/01/21 17:54:31 stevens4
103 // add effic histos and charge seperated background plots
104 //
105 // Revision 1.1 2009/11/23 23:00:18 balewski
106 // code moved spin-pool
107 //
108 // Revision 1.1 2009/11/23 21:11:18 balewski
109 // start
110 //
maker to retrieve info from geant.root files for comparison with reco quantities from MC ...
muDst based extraction of W-signal from pp500 data from 2009
Definition: St2009WMaker.h:50
virtual Int_t Make()
uses tree from W-algo to find Zs
Definition: St2009ZMaker.h:26
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...