StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St2009pubJSMaker.h
1 // $Id: St2009pubJSMaker.h,v 1.2 2014/08/06 11:43:41 jeromel Exp $
2 //
3 //*-- Author : Justin Stevens, IUCF
4 
5 
6 #ifndef STAR_St2009pubJSMaker
7 #define STAR_St2009pubJSMaker
8 
22 #ifndef StMaker_H
23 #include "StMaker.h"
24 #endif
25 #include <TH2.h>
26 #include <TVector3.h>
27 class St2009WMaker;
28 
29 class St2009pubJSMaker : public StMaker {
30  private:
31 
32  // parameters
33  float par_highEtow; //thresh for high tower for beambackground
34  int par_awayNTrCut; // # of tracks thresh on away side
35 
36  float par_countTrPt,par_countTowEt,par_awayTotET; // params in W maker needed to call here to put in histo titles
37 
38  St2009WMaker *wMK; // W-algo maker with all data
39 
40  // histograms
41  TObjArray *HList;
42  enum {mxHA=50}; TH1 * hA[mxHA];
43  enum {mxHB=32}; TH2 * hB[mxHB];
44 
45  void initHistos();
46  void doWanalysis();
47  void doMCanalysis();
48  void etowQA(int whichCut, float zVert);
49 
50  TVector3 mWP;
51  TVector3 mNeutrinoP;
52  TVector3 mLeptonP;
53 
54  public:
55  St2009pubJSMaker(const char *name="2009pubJS");
56  virtual ~St2009pubJSMaker();
57  virtual Int_t Init();
58  virtual Int_t Make();
59  void setHList(TObjArray * x){HList=x;}
60 
61  void attachWalgoMaker(St2009WMaker *mk) { wMK=mk;}
62 
63  virtual Int_t InitRun (int runumber){return 0;}; // Overload empty StMaker::InitRun
64  virtual Int_t FinishRun(int runumber){return 0;}; // Overload empty StMaker::FinishRun
65 
66 
67 
69  virtual const char *GetCVS() const {
70  static const char cvs[]="Tag $Name: $ $Id: St2009pubJSMaker.h,v 1.2 2014/08/06 11:43:41 jeromel Exp $ built " __DATE__ " " __TIME__ ;
71  return cvs;
72  }
73 
74  ClassDef(St2009pubJSMaker,0) //StAF chain virtual base class for Makers
75 };
76 
77 #endif
78 
79 
80 // $Log: St2009pubJSMaker.h,v $
81 // Revision 1.2 2014/08/06 11:43:41 jeromel
82 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
83 //
84 // Revision 1.1 2009/11/23 23:00:18 balewski
85 // code moved spin-pool
86 //
87 // Revision 1.1 2009/11/23 21:11:18 balewski
88 // start
89 //
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()