StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPeCTrigger.h
1 //
3 // $Id: StPeCTrigger.h,v 1.12 2014/04/25 20:00:13 ramdebbe Exp $
4 // $Log: StPeCTrigger.h,v $
5 // Revision 1.12 2014/04/25 20:00:13 ramdebbe
6 // added more triggers for run14
7 //
8 // Revision 1.11 2013/12/27 20:47:32 ramdebbe
9 // added a set method to select a trigger
10 //
11 // Revision 1.10 2013/10/28 14:18:24 ramdebbe
12 // added arrays to handle bbc and zdc information
13 //
14 // Revision 1.9 2013/01/24 15:45:04 ramdebbe
15 // added ZDC shower max information to output tree and bbc small tubes individual ADC. Returns UPC_Main trigger
16 //
17 // Revision 1.8 2012/07/03 19:37:55 ramdebbe
18 // raised ClassDef from 1 to 2
19 //
20 // Revision 1.7 2012/06/26 18:51:11 ramdebbe
21 // previous entry did not include actual changes
22 //
23 // Revision 1.6 2003/11/25 01:54:38 meissner
24 // correct several bugs: eta cut for tracks, charge sorting, add counting of FTPC and TPC primary tracks, Add bbc information
25 //
26 // Revision 1.5 2002/12/16 23:04:02 yepes
27 // Field comes in KGauss and should be passed to routines in Teslas
28 // problem pointed out by Vladimir
29 //
30 // Revision 1.4 2002/03/19 22:23:54 meissner
31 // New variables: zdc unatt., Trigger word, MC tree if Geant Branch, DCA for primary pairs, all tracks for secondary pairs (Test)
32 //
33 // Revision 1.3 2001/04/25 18:12:32 perev
34 // HPcorrs
35 //
36 // Revision 1.2 2001/02/21 20:54:25 yepes
37 // *** empty log message ***
38 //
39 //
40 // Revision 1.0 2000/12/11 Pablo Yepes
41 // First Version of StPeCTrigger
42 //
44 //
45 // StPeCTrigger
46 //
47 // Event class for Peripheral Collisions
48 //
50 #ifndef StPeCTrigger_h
51 #define StPeCTrigger_h
52 #include "Rtypes.h"
53 #include "TObject.h"
54 #include "TClonesArray.h"
55 #include "StPeCL0.h"
56 #include "StMuDSTMaker/COMMON/StMuEvent.h"
57 #include "StMuDSTMaker/COMMON/StMuPrimaryVertex.h"
58 #include "StEvent/StTriggerData.h"
59 
60 class StEvent ;
61 
62 class StPeCTrigger: public TObject {
63 
64 public:
65 
66  StPeCTrigger();
67  ~StPeCTrigger();
68  void clear ( ) ;
69  Int_t process(StEvent *event, string triggerSel);
70  Int_t process(StMuDst* mudst, string triggerSel);
71 
72  Int_t p4 ; // p4 with swapt weigthts
73  Int_t p4c ;
74  Int_t p5 ;
75 
76  Int_t runN;
77 
78  Int_t ctbNE ; // hits in ctb North East quadrant
79  Int_t ctbSE ; // hits in ctb South East quadrant
80  Int_t ctbBE ; // hits in ctb Top East quadrant
81  Int_t ctbTE ; // hits in ctb Bottom East quadrant
82 
83  Int_t ctbNW ; // hits in ctb North West quadrant
84  Int_t ctbSW ; // hits in ctb South West quadrant
85  Int_t ctbBW ; // hits in ctb Top West quadrant
86  Int_t ctbTW ; // hits in ctb Bottom West quadrant
87 
88  Int_t mwcNE ; // hits in mwc North East quadrant
89  Int_t mwcSE ; // hits in mwc South East quadrant
90  Int_t mwcBE ; // hits in mwc Top East quadrant
91  Int_t mwcTE ; // hits in mwc Bottom East quadrant
92 
93  Int_t mwcNW ; // hits in mwc North West quadrant
94  Int_t mwcSW ; // hits in mwc South West quadrant
95  Int_t mwcBW ; // hits in mwc Top West quadrant
96  Int_t mwcTW ; // hits in mwc Bottom West quadrant
97 
98  Int_t ftpW ; // hits in West Ftpc
99  Int_t ftpE ; // hits in East Ftpc
100 
101  Int_t nCtbHits ;
102  Int_t nMwcHits ;
103  Int_t nBTOFhits;
104  Int_t nBtofTriggerHits;
105  Int_t nPrimaryTracks;
106  unsigned int bunchId;
107  unsigned short lastDSM0;
108  unsigned short lastDSM1;
109  Float_t ctbSum ;
110  Float_t mwcSum ;
111 
112  // attenuated
113  Float_t zdcEast ;
114  Float_t zdcWest ;
115  Float_t zdcSum ;
116  // unattenuated
117  Float_t zdcEastUA;
118  Float_t zdcWestUA;
119  Float_t zdcSumUA ;
120  //zdc TDC information
121  Float_t zdcEastTDC ;
122  Float_t zdcWestTDC ;
123  Float_t zdcTimeDifference ;
124  //SMD information
125  bool zdcSMDPresent;
126 
127  unsigned short zdcSMDEastH[8];
128 
129 
130  unsigned short zdcSMDEastV[8];
131 
132 
133  unsigned short zdcSMDWestH[8];
134 
135 
136  unsigned short zdcSMDWestV[8];
137 
138  unsigned short zdcSMDHighestStripEastH;
139  unsigned short zdcSMDHighestStripEastV;
140  unsigned short zdcSMDHighestStripWestH;
141  unsigned short zdcSMDHighestStripWestV;
142 
143  Float_t zdcCoincidenceRate;
144 
145  //trigger word
146  Int_t tw;
147 
148  // BBC
149  Float_t bbcAdcSumEastSm;
150  Float_t bbcAdcSumWestSm;
151  Float_t bbcAdcSumEastLg;
152  Float_t bbcAdcSumWestLg;
153 
154  Int_t bbcNHitEastSm;
155  Int_t bbcNHitWestSm;
156  Int_t bbcNHitEastLg;
157  Int_t bbcNHitWestLg;
158 
159  unsigned short bbcTacEast;
160  unsigned short bbcTacWest;
161  unsigned short bbcTimeDiff;
162 
163  unsigned short bbcTDCEast[36];
164  unsigned short bbcTDCWest[36];
165  unsigned short bbcADCEast[36];
166  unsigned short bbcADCWest[36];
167 
168 
169 
170 
171  // trigger ids efficiency analysis
172  Int_t trg_3000; // UPC or ZDC_Mon
173  Int_t trg_3001; // UPC or ZDC_Mon
174  Int_t trg_2001; // Minbias
175  Int_t trg_2004; // Minbias
176 
177 
178 
179 
180 #ifndef __CINT__
181  void setInfoLevel ( Int_t in ) { infoLevel = in ; } ;
182  Int_t infoLevel ;
183  StPeCL0 *l0_2000 ;
184  StPeCL0 *l0_2000Corrected ;
185  StPeCL0 *l0Offline2001 ;
186 #endif /*__CINT__*/
187 private:
188  TClonesArray *ctbSlats ;
189 
190 
191  ClassDef(StPeCTrigger,2)
192 };
193 
194 #endif
195 
196 
197 
198 
199