CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ZdcTBAnalysis.cc
Go to the documentation of this file.
2 #include <sstream>
3 #include <iostream>
4 #include <vector>
5 
7 
9  TString outName = outFileName;
10  outFile = new TFile(outName, "RECREATE");
11  ZdcAnalize = new TTree("ZdcAnaTree", "ZdcAnaTree");
12  ZdcAnalize->Branch("Trigger",
13  0,
14  "run/I:event/I:beamTrigger/I:fakeTrigger/I:"
15  "pedestalTrigger/I:outSpillPedestalTrigger/I:inSpillPedestalTrigger/I:"
16  "laserTrigger/I:laserTrigger/I:ledTrigger/I:spillTrigger/I");
17  ZdcAnalize->Branch("TDC",
18  0,
19  "trigger/D:ttcL1/D:beamCoincidence/D:laserFlash/D:qiePhase/D:"
20  "TTOF1/D:TTOF2/D:m1[5]/D:m2[5]/D:m3[5]/D:"
21  "s1[5]/D:s2[5]/D:s3[5]/D:s4[5]/D:"
22  "bh1[5]/D:bh2[5]/D:bh3[5]/D:bh4[5]/D");
23  ZdcAnalize->Branch("ADC",
24  0,
25  "VM/D:V3/D:V6/D:VH1/D:VH2/D:VH3/D:VH4/D:Ecal7x7/D:"
26  "Sci521/D:Sci528/D:CK1/D:CK2/D:CK3/D:SciVLE/D:S1/D:S2/D:S3/D:S4/D:"
27  "VMF/D:VMB/D:VM1/D:VM2/D:VM3/D:VM4/D:VM5/D:VM6/D:VM7/D:VM8/D:"
28  "TOF1/D:TOF2/D:BH1/D:BH2/D:BH3/BH4/D");
29  ZdcAnalize->Branch("Chamb",
30  0,
31  "WCAx[5]/D:WCAy[5]/D:WCBx[5]/D:WCBy[5]/D:"
32  "WCCx[5]/D:WCCy[5]/D:WCDx[5]/D:WCDy[5]/D:WCEx[5]/D:WCEy[5]/D:"
33  "WCFx[5]/D:WCFy[5]/D:WCGx[5]/D:WCGy[5]/D:WCHx[5]/D:WCHy[5]/D");
34  ZdcAnalize->Branch("ZDCP",
35  0,
36  "zdcHAD1/D:zdcHAD2/D:zdcHAD3/D:zdcHAD4/D:"
37  "zdcEM1/D:zdcEM2/D:zdcEM3/D:zdcEM4/D:zdcEM5/D:"
38  "zdcScint1/D:zdcScint2/D:"
39  "zdcExtras[7]/D");
40  ZdcAnalize->Branch("ZDCN",
41  0,
42  "zdcHAD1/D:zdcHAD2/D:zdcHAD3/D:zdcHAD4/D:"
43  "zdcEM1/D:zdcEM2/D:zdcEM3/D:zdcEM4/D:zdcEM5/D:"
44  "zdcScint1/D:zdcScint2/D:"
45  "zdcExtras[7]/D");
46  ZdcAnalize->GetBranch("Trigger")->SetAddress(&trigger);
47  ZdcAnalize->GetBranch("TDC")->SetAddress(&tdc);
48  ZdcAnalize->GetBranch("ADC")->SetAddress(&adc);
49  ZdcAnalize->GetBranch("Chamb")->SetAddress(&chamb);
50  ZdcAnalize->GetBranch("ZDCP")->SetAddress(&zdcp);
51  ZdcAnalize->GetBranch("ZDCN")->SetAddress(&zdcn);
52  ZdcAnalize->SetAutoSave();
53 }
54 
56  // trigger
66  isSpillTrigger = trg.wasInSpill();
67 
70 
71  if (isBeamTrigger)
72  trigger.beamTrigger = 1;
73  if (isFakeTrigger)
74  trigger.fakeTrigger = 1;
75  if (isCalibTrigger)
81  if (isLaserTrigger)
83  if (isLedTrigger)
84  trigger.ledTrigger = 1;
85  if (isSpillTrigger)
87 }
88 
90  //times
91  tdc.trigger = trigger_time = times.triggerTime();
92  tdc.ttcL1 = ttc_L1a_time = times.ttcL1Atime();
94  tdc.qiePhase = qie_phase = times.qiePhase();
95  tdc.TOF1 = TOF1_time = times.TOF1Stime();
96  tdc.TOF2 = TOF2_time = times.TOF2Stime();
97 
98  // just take 5 first hits of multihit tdc (5 tick cycles)
99  int indx = 0;
100  int indTop = 5;
101  for (indx = 0; indx < times.BeamCoincidenceCount(); indx++)
102  if (indx < indTop)
103  tdc.beamCoincidence[indx] = beam_coincidence[indx] = times.BeamCoincidenceHits(indx);
104  for (indx = 0; indx < times.M1Count(); indx++)
105  if (indx < indTop)
106  tdc.m1[indx] = m1hits[indx] = times.M1Hits(indx);
107  for (indx = 0; indx < times.M2Count(); indx++)
108  if (indx < indTop)
109  tdc.m2[indx] = m2hits[indx] = times.M2Hits(indx);
110  for (indx = 0; indx < times.M3Count(); indx++)
111  if (indx < indTop)
112  tdc.m3[indx] = m3hits[indx] = times.M3Hits(indx);
113  for (indx = 0; indx < times.S1Count(); indx++)
114  if (indx < indTop)
115  tdc.s1[indx] = s1hits[indx] = times.S1Hits(indx);
116  for (indx = 0; indx < times.S2Count(); indx++)
117  if (indx < indTop)
118  tdc.s2[indx] = s2hits[indx] = times.S2Hits(indx);
119  for (indx = 0; indx < times.S3Count(); indx++)
120  if (indx < indTop)
121  tdc.s3[indx] = s3hits[indx] = times.S3Hits(indx);
122  for (indx = 0; indx < times.S4Count(); indx++)
123  if (indx < indTop)
124  tdc.s4[indx] = s4hits[indx] = times.S4Hits(indx);
125  for (indx = 0; indx < times.BH1Count(); indx++)
126  if (indx < indTop)
127  tdc.bh1[indx] = bh1hits[indx] = times.BH1Hits(indx);
128  for (indx = 0; indx < times.BH2Count(); indx++)
129  if (indx < indTop)
130  tdc.bh2[indx] = bh2hits[indx] = times.BH2Hits(indx);
131  for (indx = 0; indx < times.BH3Count(); indx++)
132  if (indx < indTop)
133  tdc.bh3[indx] = bh3hits[indx] = times.BH3Hits(indx);
134  for (indx = 0; indx < times.BH4Count(); indx++)
135  if (indx < indTop)
136  tdc.bh4[indx] = bh4hits[indx] = times.BH4Hits(indx);
137 }
138 
140  //beam counters
141  adc.VM = VMadc = bc.VMadc();
142  adc.V3 = V3adc = bc.V3adc();
143  adc.V6 = V6adc = bc.V6adc();
144  adc.VH1 = VH1adc = bc.VH1adc();
145  adc.VH2 = VH2adc = bc.VH2adc();
146  adc.VH3 = VH3adc = bc.VH3adc();
147  adc.VH4 = VH4adc = bc.VH4adc();
148  adc.Ecal7x7 = Ecal7x7adc = bc.Ecal7x7();
149  adc.Sci521 = Sci521adc = bc.Sci521adc();
150  adc.Sci528 = Sci528adc = bc.Sci528adc();
151  adc.CK1 = CK1adc = bc.CK1adc();
152  adc.CK2 = CK2adc = bc.CK2adc();
153  adc.CK3 = CK3adc = bc.CK3adc();
154  adc.SciVLE = SciVLEadc = bc.SciVLEadc();
155  adc.S1 = S1adc = bc.S1adc();
156  adc.S2 = S2adc = bc.S2adc();
157  adc.S3 = S3adc = bc.S3adc();
158  adc.S4 = S4adc = bc.S4adc();
159  adc.VMF = VMFadc = bc.VMFadc();
160  adc.VMB = VMBadc = bc.VMBadc();
161  adc.VM1 = VM1adc = bc.VM1adc();
162  adc.VM2 = VM2adc = bc.VM2adc();
163  adc.VM3 = VM3adc = bc.VM3adc();
164  adc.VM4 = VM4adc = bc.VM4adc();
165  adc.VM5 = VM5adc = bc.VM5adc();
166  adc.VM6 = VM6adc = bc.VM6adc();
167  adc.VM7 = VM7adc = bc.VM7adc();
168  adc.VM8 = VM8adc = bc.VM8adc();
169  adc.TOF1 = TOF1adc = bc.TOF1Sadc();
170  adc.TOF2 = TOF2adc = bc.TOF2Sadc();
171  adc.BH1 = BH1adc = bc.BH1adc();
172  adc.BH2 = BH2adc = bc.BH2adc();
173  adc.BH3 = BH3adc = bc.BH3adc();
174  adc.BH4 = BH4adc = bc.BH4adc();
175 }
176 
178  //chambers position
179  chpos.getChamberHits('A', wcax, wcay);
180  chpos.getChamberHits('B', wcbx, wcby);
181  chpos.getChamberHits('C', wccx, wccy);
182  chpos.getChamberHits('D', wcdx, wcdy);
183  chpos.getChamberHits('E', wcex, wcey);
184  chpos.getChamberHits('F', wcfx, wcfy);
185  chpos.getChamberHits('G', wcgx, wcgy);
186  chpos.getChamberHits('H', wchx, wchy);
187 
188  // just take 5 first hits of chambers (5 tick cycles)
189  unsigned int indTop = 5;
190  unsigned int indx = 0;
191  for (indx = 0; indx < wcax.size(); indx++)
192  if (indx < indTop)
193  chamb.WCAx[indx] = wcax[indx];
194  for (indx = 0; indx < wcay.size(); indx++)
195  if (indx < indTop)
196  chamb.WCAy[indx] = wcay[indx];
197  for (indx = 0; indx < wcbx.size(); indx++)
198  if (indx < indTop)
199  chamb.WCBx[indx] = wcbx[indx];
200  for (indx = 0; indx < wcby.size(); indx++)
201  if (indx < indTop)
202  chamb.WCBy[indx] = wcby[indx];
203  for (indx = 0; indx < wccx.size(); indx++)
204  if (indx < indTop)
205  chamb.WCCx[indx] = wccx[indx];
206  for (indx = 0; indx < wccy.size(); indx++)
207  if (indx < indTop)
208  chamb.WCCy[indx] = wccy[indx];
209  for (indx = 0; indx < wcdx.size(); indx++)
210  if (indx < indTop)
211  chamb.WCDx[indx] = wcdx[indx];
212  for (indx = 0; indx < wcdy.size(); indx++)
213  if (indx < indTop)
214  chamb.WCDy[indx] = wcdy[indx];
215  for (indx = 0; indx < wcdx.size(); indx++)
216  if (indx < indTop)
217  chamb.WCEx[indx] = wcex[indx];
218  for (indx = 0; indx < wcey.size(); indx++)
219  if (indx < indTop)
220  chamb.WCEy[indx] = wcey[indx];
221  for (indx = 0; indx < wcfx.size(); indx++)
222  if (indx < indTop)
223  chamb.WCFx[indx] = wcfx[indx];
224  for (indx = 0; indx < wcfy.size(); indx++)
225  if (indx < indTop)
226  chamb.WCFy[indx] = wcfy[indx];
227  for (indx = 0; indx < wcgx.size(); indx++)
228  if (indx < indTop)
229  chamb.WCGx[indx] = wcgx[indx];
230  for (indx = 0; indx < wcgy.size(); indx++)
231  if (indx < indTop)
232  chamb.WCGy[indx] = wcgy[indx];
233  for (indx = 0; indx < wchx.size(); indx++)
234  if (indx < indTop)
235  chamb.WCHx[indx] = wchx[indx];
236  for (indx = 0; indx < wchy.size(); indx++)
237  if (indx < indTop)
238  chamb.WCHy[indx] = wchy[indx];
239 }
240 
242  // zdc hits
243  std::cout << "****************************************************" << std::endl;
245  for (i = zdcHits.begin(); i != zdcHits.end(); i++) {
246  energy = i->energy();
247  detID = i->id();
248  iside = detID.zside();
249  isection = detID.section();
250  ichannel = detID.channel();
251  idepth = detID.depth();
252  std::cout << "energy: " << energy << " detID: " << detID << " side: " << iside << " section: " << isection
253  << " channel: " << ichannel << " depth: " << idepth << std::endl;
254 
255  if (iside > 0) {
256  if (ichannel == 1 && isection == 1)
258  if (ichannel == 2 && isection == 1)
260  if (ichannel == 3 && isection == 1)
262  if (ichannel == 4 && isection == 1)
264  if (ichannel == 5 && isection == 1)
266  if (ichannel == 1 && isection == 2)
268  if (ichannel == 2 && isection == 2)
270  if (ichannel == 3 && isection == 2)
272  if (ichannel == 4 && isection == 2)
274  if (ichannel == 1 && isection == 3)
276  }
277  if (iside < 0) {
278  if (ichannel == 1 && isection == 1)
280  if (ichannel == 2 && isection == 1)
282  if (ichannel == 3 && isection == 1)
284  if (ichannel == 4 && isection == 1)
286  if (ichannel == 5 && isection == 1)
288  if (ichannel == 1 && isection == 2)
290  if (ichannel == 2 && isection == 2)
292  if (ichannel == 3 && isection == 2)
294  if (ichannel == 4 && isection == 2)
296  if (ichannel == 1 && isection == 3)
298  }
299  }
300 }
301 
303 
305  ZdcAnalize->Print();
306  outFile->cd();
307  ZdcAnalize->Write();
308  outFile->Close();
309 }
double s2hits[5]
int ledTrigger
Definition: ZdcTBAnalysis.h:21
double VM4
Definition: ZdcTBAnalysis.h:70
double VH1adc() const
double WCFx[5]
Definition: ZdcTBAnalysis.h:94
double WCGy[5]
Definition: ZdcTBAnalysis.h:97
std::vector< double > wcfx
std::vector< double > wcgx
double VM4adc() const
double laser_flash
int S4Count() const
Returns the number of hits from scintillator S4, which is 12cm x 12cm.
Definition: HcalTBTiming.h:59
double VMadc() const
Muon Veto adc.
int outSpillPedestalTrigger
Definition: ZdcTBAnalysis.h:18
double zdcEMMod2
double S2
Definition: ZdcTBAnalysis.h:62
double BH3adc() const
double trigger
Definition: ZdcTBAnalysis.h:26
double bh1hits[5]
std::vector< double > wcex
double VM2adc() const
double S1adc() const
double BH2adc() const
double s4hits[5]
bool wasLEDTrigger() const
returns true if this was a LED trigger
std::vector< double > wchx
double S2adc() const
double zdcEMMod3
double WCBy[5]
Definition: ZdcTBAnalysis.h:87
double zdcHADMod3
double zdcEMMod3
std::vector< double > wcax
double Sci528adc() const
double Ecal7x7() const
double WCEy[5]
Definition: ZdcTBAnalysis.h:93
double CK1
Definition: ZdcTBAnalysis.h:57
double bh4hits[5]
double Sci528
Definition: ZdcTBAnalysis.h:56
std::vector< double > wccx
double VM
Definition: ZdcTBAnalysis.h:47
double M2Hits(int index) const
Returns the indexed hit time from muon veto scintillator M2.
Definition: HcalTBTiming.h:75
int zside() const
get the z-side of the cell (1/-1)
Definition: HcalZDCDetId.h:39
std::vector< double > wchy
std::vector< T >::const_iterator const_iterator
double s1[5]
Definition: ZdcTBAnalysis.h:36
double VH2
Definition: ZdcTBAnalysis.h:51
double beamCoincidence[5]
Definition: ZdcTBAnalysis.h:28
double trigger_time
double zdcEMMod5
double S1Hits(int index) const
Returns the indexed hit time from scintillator S1, which is 12cm x 12cm.
Definition: HcalTBTiming.h:80
double VH3
Definition: ZdcTBAnalysis.h:52
double zdcEMMod1
double beam_coincidence[5]
double VM1adc() const
int S2Count() const
Returns the number of hits from scintillator S2, which is 4cm x 4cm.
Definition: HcalTBTiming.h:55
double M3Hits(int index) const
Returns the indexed hit time from muon veto scintillator M3.
Definition: HcalTBTiming.h:77
bool wasFakeTrigger() const
returns true if this trigger was fake (from a non-H2 manager)
double VM5
Definition: ZdcTBAnalysis.h:71
double zdcScint1
double S3adc() const
double VMF
Definition: ZdcTBAnalysis.h:65
double S4adc() const
void analyze(const ZDCRecHitCollection &hf)
double bh2hits[5]
int fakeTrigger
Definition: ZdcTBAnalysis.h:16
double WCCx[5]
Definition: ZdcTBAnalysis.h:88
int S3Count() const
Returns the number of hits from scintillator S3, which is 2cm x 2cm.
Definition: HcalTBTiming.h:57
double V3adc() const
std::vector< double > wcbx
double SciVLEadc() const
double S1
Definition: ZdcTBAnalysis.h:61
double WCHx[5]
Definition: ZdcTBAnalysis.h:98
int laserTrigger
Definition: ZdcTBAnalysis.h:20
std::vector< double > wccy
double triggerTime() const
Returns the trigger time in ns.
Definition: HcalTBTiming.h:24
double WCBx[5]
Definition: ZdcTBAnalysis.h:86
void setup(const std::string &histoFileName)
Definition: ZdcTBAnalysis.cc:8
double ttcL1Atime() const
Returns the Level 1 Accept time in ns.
Definition: HcalTBTiming.h:27
int S1Count() const
Returns the number of hits from scintillator S1, which is 12cm x 12cm.
Definition: HcalTBTiming.h:53
double TOF2
Definition: ZdcTBAnalysis.h:76
std::vector< double > wcgy
double CK2adc() const
std::vector< double > wcey
double VM2
Definition: ZdcTBAnalysis.h:68
double VH1
Definition: ZdcTBAnalysis.h:50
double m2[5]
Definition: ZdcTBAnalysis.h:34
double VM1
Definition: ZdcTBAnalysis.h:67
double m1[5]
Definition: ZdcTBAnalysis.h:33
double WCAx[5]
Definition: ZdcTBAnalysis.h:84
double BH1Hits(int index) const
Returns the indexed hit time from beam halo counter UP HORIZONTAL.
Definition: HcalTBTiming.h:89
double VM8
Definition: ZdcTBAnalysis.h:74
double WCEx[5]
Definition: ZdcTBAnalysis.h:92
int BH2Count() const
Returns the number of hits from beam halo counter left from particle view.
Definition: HcalTBTiming.h:64
double s2[5]
Definition: ZdcTBAnalysis.h:37
double VM8adc() const
double V6
Definition: ZdcTBAnalysis.h:49
double m3hits[5]
std::vector< double > wcdy
double SciVLE
Definition: ZdcTBAnalysis.h:60
double VM3
Definition: ZdcTBAnalysis.h:69
double zdcEMMod1
double s4[5]
Definition: ZdcTBAnalysis.h:39
double zdcEMMod2
double WCDx[5]
Definition: ZdcTBAnalysis.h:90
double Sci521
Definition: ZdcTBAnalysis.h:55
double VM6adc() const
double VH4
Definition: ZdcTBAnalysis.h:53
double s1hits[5]
bool wasOutSpillPedestalTrigger() const
returns true if this was an out-of-spill pedestal trigger
int spillTrigger
Definition: ZdcTBAnalysis.h:22
double bh3hits[5]
double ttc_L1a_time
std::vector< double > wcfy
double VH2adc() const
bool wasInSpill() const
returns true if the &quot;spill&quot; bit was set
double VMFadc() const
double VM3adc() const
double TOF2Stime() const
Returns the TOF2S time (zero otherwise)
Definition: HcalTBTiming.h:39
double zdcHADMod3
int BH1Count() const
Returns the number of hits from beam halo counter up horizontal.
Definition: HcalTBTiming.h:62
double bh4[5]
Definition: ZdcTBAnalysis.h:43
double bh1[5]
Definition: ZdcTBAnalysis.h:40
double S4Hits(int index) const
Returns the indexed hit time from scintillator S4, which is 12cm x 12cm.
Definition: HcalTBTiming.h:86
double BH4Hits(int index) const
Returns the indexed hit time from beam halo counter DOWN HORZINTAL.
Definition: HcalTBTiming.h:95
double S3
Definition: ZdcTBAnalysis.h:63
double zdcHADMod2
double zdcScint1
double WCFy[5]
Definition: ZdcTBAnalysis.h:95
double VM5adc() const
int BH3Count() const
Returns the number of hits from beam halo counter right from particle view.
Definition: HcalTBTiming.h:66
double CK3
Definition: ZdcTBAnalysis.h:59
double VM6
Definition: ZdcTBAnalysis.h:72
double VH4adc() const
double WCAy[5]
Definition: ZdcTBAnalysis.h:85
double Sci521adc() const
double S3Hits(int index) const
Returns the indexed hit time from scintillator S3, which is 2cm x 2cm.
Definition: HcalTBTiming.h:84
double BeamCoincidenceHits(int index) const
Returns the indexed hit time from Beam Coincidence.
Definition: HcalTBTiming.h:71
double BH3Hits(int index) const
Returns the indexed hit time from beam halo counter BEAM RIGHT FROM PARTICLE&#39;S VIEW.
Definition: HcalTBTiming.h:93
double s3[5]
Definition: ZdcTBAnalysis.h:38
double zdcHADMod4
double Ecal7x7
Definition: ZdcTBAnalysis.h:54
double zdcEMMod4
const_iterator end() const
double CK3adc() const
double M1Hits(int index) const
Returns the indexed hit time from muon veto scintillator M1.
Definition: HcalTBTiming.h:73
double VMB
Definition: ZdcTBAnalysis.h:66
double laserFlash() const
Returns the laser activation time in ns.
Definition: HcalTBTiming.h:30
double BH4
Definition: ZdcTBAnalysis.h:80
double TOF1Stime() const
Returns the TOF1S time (zero otherwise)
Definition: HcalTBTiming.h:35
double TOF1
Definition: ZdcTBAnalysis.h:75
uint16_t eventNumber() const
Returns the event number of this trigger.
double S4
Definition: ZdcTBAnalysis.h:64
int beamTrigger
Definition: ZdcTBAnalysis.h:15
double CK2
Definition: ZdcTBAnalysis.h:58
HcalZDCDetId detID
double m3[5]
Definition: ZdcTBAnalysis.h:35
double VMBadc() const
double bh3[5]
Definition: ZdcTBAnalysis.h:42
int depth() const
get the depth (1 for EM, channel + 1 for HAD, 2 for RPD, not sure yet for LUM, leave as default) ...
Definition: HcalZDCDetId.cc:51
double m1hits[5]
std::vector< double > wcdx
double BH1adc() const
double BH3
Definition: ZdcTBAnalysis.h:79
int channel() const
get the channel
Definition: HcalZDCDetId.cc:63
double bh2[5]
Definition: ZdcTBAnalysis.h:41
int BeamCoincidenceCount() const
Returns the number of hits from Beam Coincidence.
Definition: HcalTBTiming.h:44
double WCGx[5]
Definition: ZdcTBAnalysis.h:96
double TOF1
Definition: ZdcTBAnalysis.h:31
double zdcHADMod1
Section section() const
get the section
Definition: HcalZDCDetId.cc:44
double V3
Definition: ZdcTBAnalysis.h:48
double zdcHADMod2
double VM7adc() const
double s3hits[5]
bool wasSpillIgnorantPedestalTrigger() const
returns true if this trigger was a calibration trigger
double VM7
Definition: ZdcTBAnalysis.h:73
double V6adc() const
double TOF2Sadc() const
int eventNum
Definition: ZdcTBAnalysis.h:14
int M2Count() const
Returns the number of hits from muon veto scintillator M2.
Definition: HcalTBTiming.h:48
double VH3adc() const
int BH4Count() const
Returns the number of hits from beam halo counter down horizontal.
Definition: HcalTBTiming.h:68
std::vector< double > wcby
TTree * ZdcAnalize
void getChamberHits(char chamberch, std::vector< double > &xvec, std::vector< double > &yvec) const
Get the wire chamber hits for the specified chamber For HB/HE/HO running, chambers A...
double TOF2
Definition: ZdcTBAnalysis.h:32
bool wasInSpillPedestalTrigger() const
returns true if this was an in-spill pedestal trigger
int calibTrigger
Definition: ZdcTBAnalysis.h:17
bool isOutSpillPedestalTrigger
tuple cout
Definition: gather_cfg.py:144
int M3Count() const
Returns the number of hits from muon veto scintillator M3.
Definition: HcalTBTiming.h:50
double WCHy[5]
Definition: ZdcTBAnalysis.h:99
double laserFlash
Definition: ZdcTBAnalysis.h:29
double zdcHADMod4
bool wasBeamTrigger() const
returns true if this trigger came from beam data
double BH2
Definition: ZdcTBAnalysis.h:78
double WCDy[5]
Definition: ZdcTBAnalysis.h:91
double BH2Hits(int index) const
Returns the indexed hit time from from beam halo counter BEAM LEFT FROM PARTICLE&#39;S VIEW...
Definition: HcalTBTiming.h:91
double ttcL1
Definition: ZdcTBAnalysis.h:27
int inSpillPedestalTrigger
Definition: ZdcTBAnalysis.h:19
bool wasLaserTrigger() const
returns true if this was a laser trigger
bool isInSpillPedestalTrigger
double zdcHADMod1
double zdcEMMod5
double m2hits[5]
double BH1
Definition: ZdcTBAnalysis.h:77
double S2Hits(int index) const
Returns the indexed hit time from scintillator S2, which is 4cm x 4cm.
Definition: HcalTBTiming.h:82
uint32_t runNumber() const
Returns the current run number.
double WCCy[5]
Definition: ZdcTBAnalysis.h:89
std::vector< double > wcay
double qiePhase() const
Returns the QIE phase for 2003 testbeam data (zero otherwise)
Definition: HcalTBTiming.h:32
int M1Count() const
Returns the number of hits from muon veto scintillator M1.
Definition: HcalTBTiming.h:46
const_iterator begin() const
double CK1adc() const
double BH4adc() const
double zdcEMMod4
double qiePhase
Definition: ZdcTBAnalysis.h:30
double TOF1Sadc() const