StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St2009WlumiMaker.h
1 // $Id: St2009WlumiMaker.h,v 1.3 2014/08/06 11:43:41 jeromel Exp $
2 //
3 //*-- Author : Ross Corliss, MIT
4 
5 
6 #ifndef STAR_St2009WlumiMaker
7 #define STAR_St2009WlumiMaker
8 
20 #ifndef StMaker_H
21 #include "StMaker.h"
22 #endif
23 class StMuDstMaker;
24 class St2009WMaker;
25 
26 class St2009WlumiMaker : public StMaker {
27  private:
28  // variables
29  int nActiveTowers; // number of towers in the run that have good status
30  bool towerInfoIsCurrent;//whether we've computed the active fraction for this run
31  int nBHT3_hardware_L0; //number of L2W random accepts that pass the hardware L0 requirement.
32  int nBHT3_software_L0; //number of L2W random accepts that pass the software-imposed L0 requirement, hence the number of BHT3 triggers in general (prescaled)
33  int nBHT3[16]; //number of L2W random accepts, hence the number of BHT3 triggers in general (prescaled)
34  int nBx[16][120];//number of randoms, broken up by bxing.
35  // parameters
36  float par_highET; // cut off for W 2x2 cluster ET
37 
38  St2009WMaker *wMK; // W-algo maker with all data
39  StMuDstMaker *muMK;
40  // histograms
41  TObjArray *HList;
42  enum {mxHA=120}; TH1 * hA[mxHA];
43 
44  void initHistos();
45  void sortTrigger();
46  void getActiveTowers();
47  void getAbortGapCounts(int angle, int* n1,int* n2);
48 
49  public:
50  St2009WlumiMaker(const char *name="2009publWana");
51  virtual ~St2009WlumiMaker(){};
52  virtual Int_t Init();
53  virtual Int_t Make();
54  void setHList(TObjArray * x){HList=x;}
55 
56  void attachWalgoMaker(St2009WMaker *mk) { wMK=mk;}
57  void attachMuMaker(StMuDstMaker *mk) { muMK=mk;}
58 
59  virtual Int_t InitRun(int runumber); // Overload empty StMaker::InitRun
60  virtual Int_t FinishRun(int runumber); // Overload empty StMaker::FinishRun
61 
62 
64  virtual const char *GetCVS() const {
65  static const char cvs[]="Tag $Name: $ $Id: St2009WlumiMaker.h,v 1.3 2014/08/06 11:43:41 jeromel Exp $ built " __DATE__ " " __TIME__ ;
66  return cvs;
67  }
68 
69  ClassDef(St2009WlumiMaker,0) //StAF chain virtual base class for Makers
70 };
71 
72 #endif
73 
74 
75 // $Log: St2009WlumiMaker.h,v $
76 // Revision 1.3 2014/08/06 11:43:41 jeromel
77 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
78 //
79 // Revision 1.2 2010/12/02 18:31:43 rcorliss
80 // updated lumi code to match the starnote version
81 //
82 // Revision 1.1 2009/11/23 23:00:18 balewski
83 // code moved spin-pool
84 //
85 // Revision 1.1 2009/11/23 21:11:18 balewski
86 // start
87 //
muDst based extraction of W-signal from pp500 data from 2009
Definition: St2009WMaker.h:50
gathers all results from W-analysis, Jan's analysis
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...
virtual Int_t Make()