StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St2009pubSpinMaker.h
1 // $Id: St2009pubSpinMaker.h,v 1.7 2014/08/06 11:43:41 jeromel Exp $
2 //
3 //*-- Author : Jan Balewski, MIT
4 
5 
6 #ifndef STAR_St2009pubSpinMaker
7 #define STAR_St2009pubSpinMaker
8 
21 #ifndef StMaker_H
22 #include "StMaker.h"
23 #endif
24 #include <TString.h>
25 
26 class St2009WMaker;
27 class StSpinDbMaker;
28 
29 class St2009pubSpinMaker : public StMaker {
30  private:
31  int nRun;
32  int Tfirst,Tlast;
33 
34  float par_QPTlow,par_QPThighET0,par_QPThighET1, par_QPThighA ,par_QPThighB; // cuts to drop questionable reco charge charges
35  float par_leptonEta1, par_leptonEta2; // narrow the range
36  int par_useNoEEMC;
37 
38  St2009WMaker *wMK; // W-algo maker with all data
39  StSpinDbMaker *spinDb;
40  TString core; // name attached to all histos
41 
42  // histograms
43  TObjArray *HList;
44  enum {mxHA=32}; TH1 * hA[mxHA];
45  TH1 *hbxIdeal;
46 
47  void initHistos();
48  void bXingSort();
49  public:
50  St2009pubSpinMaker(const char *name="2009publWana");
51  virtual ~St2009pubSpinMaker(){};
52  virtual Int_t Init();
53  virtual Int_t InitRun (int runumber);
54  virtual Int_t Make();
55  void setHList(TObjArray * x){HList=x;}
56  void setEta(float x, float y) { par_leptonEta1=x; par_leptonEta2=y;};
57  void setQPT(float x){ par_QPTlow=x;}
58  void setNoEEMC() {par_useNoEEMC=1;}
59 
60  void attachWalgoMaker(St2009WMaker *mk) { wMK=mk;}
61  void attachSpinDb(StSpinDbMaker *mk){ spinDb=mk;}
62  virtual Int_t FinishRun(int runumber);
63 
64 
66  virtual const char *GetCVS() const {
67  static const char cvs[]="Tag $Name: $ $Id: St2009pubSpinMaker.h,v 1.7 2014/08/06 11:43:41 jeromel Exp $ built " __DATE__ " " __TIME__ ;
68  return cvs;
69  }
70 
71  ClassDef(St2009pubSpinMaker,0) //StAF chain virtual base class for Makers
72 };
73 
74 #endif
75 
76 
77 // $Log: St2009pubSpinMaker.h,v $
78 // Revision 1.7 2014/08/06 11:43:41 jeromel
79 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
80 //
81 // Revision 1.6 2010/04/14 20:00:08 balewski
82 // added AL w/o endcap
83 //
84 // Revision 1.5 2010/03/20 19:19:05 balewski
85 // added ability to drop Q/PT cut for spin analysis
86 //
87 // Revision 1.4 2010/03/14 22:50:31 balewski
88 // *** empty log message ***
89 //
90 // Revision 1.3 2010/01/28 20:10:05 balewski
91 // added eta dependent spin sorting
92 //
93 // Revision 1.2 2010/01/27 22:12:25 balewski
94 // spin code matched to x-section code
95 //
96 // Revision 1.1 2009/11/23 23:00:18 balewski
97 // code moved spin-pool
98 //
99 // Revision 1.1 2009/11/23 21:11:18 balewski
100 // start
101 //
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 ...
spin sorting of W&#39;s