CMS 3D CMS Logo

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
57  trigger.runNum = runNumber = trg.runNumber();
58  trigger.eventNum = eventNumber = trg.eventNumber();
66  isSpillTrigger = trg.wasInSpill();
67 
68  trigger.beamTrigger = trigger.fakeTrigger = trigger.calibTrigger = trigger.outSpillPedestalTrigger =
69  trigger.inSpillPedestalTrigger = trigger.laserTrigger = trigger.ledTrigger = trigger.spillTrigger = 0;
70 
71  if (isBeamTrigger)
72  trigger.beamTrigger = 1;
73  if (isFakeTrigger)
74  trigger.fakeTrigger = 1;
75  if (isCalibTrigger)
76  trigger.calibTrigger = 1;
78  trigger.outSpillPedestalTrigger = 1;
80  trigger.inSpillPedestalTrigger = 1;
81  if (isLaserTrigger)
82  trigger.laserTrigger = 1;
83  if (isLedTrigger)
84  trigger.ledTrigger = 1;
85  if (isSpillTrigger)
86  trigger.spillTrigger = 1;
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 }
ZDCP::zdcHADMod4
double zdcHADMod4
Definition: ZdcTBAnalysis.h:121
ADC::VMF
double VMF
Definition: ZdcTBAnalysis.h:65
HcalTBEventPosition
Definition: HcalTBEventPosition.h:18
CHAMB::WCEy
double WCEy[5]
Definition: ZdcTBAnalysis.h:93
HcalTBTriggerData::wasLEDTrigger
bool wasLEDTrigger() const
returns true if this was a LED trigger
Definition: HcalTBTriggerData.h:93
ZdcTBAnalysis::wcgy
std::vector< double > wcgy
Definition: ZdcTBAnalysis.h:233
HcalTBTiming::M2Count
int M2Count() const
Returns the number of hits from muon veto scintillator M2.
Definition: HcalTBTiming.h:48
ZdcTBAnalysis::eventNumber
int eventNumber
Definition: ZdcTBAnalysis.h:153
HcalTBBeamCounters::Ecal7x7
double Ecal7x7() const
Definition: HcalTBBeamCounters.h:22
ZdcTBAnalysis::qie_phase
double qie_phase
Definition: ZdcTBAnalysis.h:167
HcalTBBeamCounters::VM4adc
double VM4adc() const
Definition: HcalTBBeamCounters.h:38
ADC::TOF1
double TOF1
Definition: ZdcTBAnalysis.h:75
ZdcTBAnalysis::TOF2_time
double TOF2_time
Definition: ZdcTBAnalysis.h:169
ZdcTBAnalysis::chamb
CHAMB chamb
Definition: ZdcTBAnalysis.h:240
ZdcTBAnalysis::isSpillTrigger
bool isSpillTrigger
Definition: ZdcTBAnalysis.h:161
ZdcTBAnalysis::VH2adc
double VH2adc
Definition: ZdcTBAnalysis.h:187
ADC::Sci528
double Sci528
Definition: ZdcTBAnalysis.h:56
ZdcTBAnalysis::bh3hits
double bh3hits[5]
Definition: ZdcTBAnalysis.h:180
ZdcTBAnalysis::wcex
std::vector< double > wcex
Definition: ZdcTBAnalysis.h:228
HcalTBTiming::BH3Count
int BH3Count() const
Returns the number of hits from beam halo counter right from particle view.
Definition: HcalTBTiming.h:66
mps_fire.i
i
Definition: mps_fire.py:428
ADC::CK1
double CK1
Definition: ZdcTBAnalysis.h:57
TDC::ttcL1
double ttcL1
Definition: ZdcTBAnalysis.h:27
ZdcTBAnalysis::isBeamTrigger
bool isBeamTrigger
Definition: ZdcTBAnalysis.h:154
edm::SortedCollection::const_iterator
std::vector< T >::const_iterator const_iterator
Definition: SortedCollection.h:80
ZdcTBAnalysis::VM8adc
double VM8adc
Definition: ZdcTBAnalysis.h:212
ZDCN::zdcHADMod1
double zdcHADMod1
Definition: ZdcTBAnalysis.h:103
ZdcTBAnalysis::isCalibTrigger
bool isCalibTrigger
Definition: ZdcTBAnalysis.h:156
TDC::qiePhase
double qiePhase
Definition: ZdcTBAnalysis.h:30
CHAMB::WCDx
double WCDx[5]
Definition: ZdcTBAnalysis.h:90
ZdcTBAnalysis::zdcp
ZDCP zdcp
Definition: ZdcTBAnalysis.h:241
ZdcTBAnalysis::beam_coincidence
double beam_coincidence[5]
Definition: ZdcTBAnalysis.h:165
ADC::S2
double S2
Definition: ZdcTBAnalysis.h:62
ZDCN::zdcScint1
double zdcScint1
Definition: ZdcTBAnalysis.h:112
ZDCN::zdcEMMod2
double zdcEMMod2
Definition: ZdcTBAnalysis.h:108
CHAMB::WCAy
double WCAy[5]
Definition: ZdcTBAnalysis.h:85
HcalTBBeamCounters::VM2adc
double VM2adc() const
Definition: HcalTBBeamCounters.h:36
CHAMB::WCBx
double WCBx[5]
Definition: ZdcTBAnalysis.h:86
ZdcTBAnalysis::V3adc
double V3adc
Definition: ZdcTBAnalysis.h:184
ZdcTBAnalysis::wcax
std::vector< double > wcax
Definition: ZdcTBAnalysis.h:220
HcalZDCDetId::depth
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
ZDCN::zdcEMMod3
double zdcEMMod3
Definition: ZdcTBAnalysis.h:109
HcalTBBeamCounters::TOF2Sadc
double TOF2Sadc() const
Definition: HcalTBBeamCounters.h:45
ZdcTBAnalysis::fillTree
void fillTree()
Definition: ZdcTBAnalysis.cc:302
HcalTBBeamCounters::S1adc
double S1adc() const
Definition: HcalTBBeamCounters.h:29
ADC::VM5
double VM5
Definition: ZdcTBAnalysis.h:71
HcalTBTiming::S1Hits
double S1Hits(int index) const
Returns the indexed hit time from scintillator S1, which is 12cm x 12cm.
Definition: HcalTBTiming.h:80
HcalTBTriggerData::eventNumber
uint16_t eventNumber() const
Returns the event number of this trigger.
Definition: HcalTBTriggerData.h:40
ZDCP::zdcEMMod4
double zdcEMMod4
Definition: ZdcTBAnalysis.h:125
ZdcTBAnalysis::wchy
std::vector< double > wchy
Definition: ZdcTBAnalysis.h:235
ZdcTBAnalysis::analyze
void analyze(const ZDCRecHitCollection &hf)
Definition: ZdcTBAnalysis.cc:241
ZdcTBAnalysis::zdcn
ZDCN zdcn
Definition: ZdcTBAnalysis.h:242
ZdcTBAnalysis::VMadc
double VMadc
Definition: ZdcTBAnalysis.h:183
ZdcTBAnalysis::bh2hits
double bh2hits[5]
Definition: ZdcTBAnalysis.h:179
ZdcTBAnalysis::wcbx
std::vector< double > wcbx
Definition: ZdcTBAnalysis.h:222
gather_cfg.cout
cout
Definition: gather_cfg.py:144
HcalTBBeamCounters::BH1adc
double BH1adc() const
Definition: HcalTBBeamCounters.h:47
HcalZDCDetId::channel
int channel() const
get the channel
Definition: HcalZDCDetId.cc:63
ADC::Sci521
double Sci521
Definition: ZdcTBAnalysis.h:55
HcalTBTiming::S2Count
int S2Count() const
Returns the number of hits from scintillator S2, which is 4cm x 4cm.
Definition: HcalTBTiming.h:55
HcalTBBeamCounters
Definition: HcalTBBeamCounters.h:8
ZDCP::zdcHADMod3
double zdcHADMod3
Definition: ZdcTBAnalysis.h:120
HcalTBBeamCounters::VMadc
double VMadc() const
Muon Veto adc.
Definition: HcalTBBeamCounters.h:15
ZDCP::zdcEMMod1
double zdcEMMod1
Definition: ZdcTBAnalysis.h:122
ZdcTBAnalysis::S3adc
double S3adc
Definition: ZdcTBAnalysis.h:200
HcalTBTriggerData::runNumber
uint32_t runNumber() const
Returns the current run number.
Definition: HcalTBTriggerData.h:26
edm::SortedCollection
Definition: SortedCollection.h:49
ZdcTBAnalysis::bh1hits
double bh1hits[5]
Definition: ZdcTBAnalysis.h:178
ZdcTBAnalysis::s1hits
double s1hits[5]
Definition: ZdcTBAnalysis.h:174
HcalTBBeamCounters::VMBadc
double VMBadc() const
Definition: HcalTBBeamCounters.h:34
ZdcTBAnalysis::ichannel
int ichannel
Definition: ZdcTBAnalysis.h:147
HcalTBBeamCounters::VMFadc
double VMFadc() const
Definition: HcalTBBeamCounters.h:33
HcalTBBeamCounters::V6adc
double V6adc() const
Definition: HcalTBBeamCounters.h:17
ZdcTBAnalysis::VM1adc
double VM1adc
Definition: ZdcTBAnalysis.h:205
TDC::trigger
double trigger
Definition: ZdcTBAnalysis.h:26
ZdcTBAnalysis::energy
double energy
Definition: ZdcTBAnalysis.h:149
HcalTBTiming::S2Hits
double S2Hits(int index) const
Returns the indexed hit time from scintillator S2, which is 4cm x 4cm.
Definition: HcalTBTiming.h:82
HcalTBBeamCounters::TOF1Sadc
double TOF1Sadc() const
Definition: HcalTBBeamCounters.h:43
ADC::VM8
double VM8
Definition: ZdcTBAnalysis.h:74
ZdcTBAnalysis::TOF1adc
double TOF1adc
Definition: ZdcTBAnalysis.h:213
ZdcTBAnalysis::s3hits
double s3hits[5]
Definition: ZdcTBAnalysis.h:176
ADC::VH3
double VH3
Definition: ZdcTBAnalysis.h:52
DeadROC_duringRun.outFileName
outFileName
Definition: DeadROC_duringRun.py:215
ZdcTBAnalysis::VM2adc
double VM2adc
Definition: ZdcTBAnalysis.h:206
HcalTBBeamCounters::CK1adc
double CK1adc() const
Definition: HcalTBBeamCounters.h:23
CHAMB::WCCx
double WCCx[5]
Definition: ZdcTBAnalysis.h:88
ADC::BH1
double BH1
Definition: ZdcTBAnalysis.h:77
ZdcTBAnalysis::BH3adc
double BH3adc
Definition: ZdcTBAnalysis.h:217
CHAMB::WCGx
double WCGx[5]
Definition: ZdcTBAnalysis.h:96
ADC::TOF2
double TOF2
Definition: ZdcTBAnalysis.h:76
TDC::m2
double m2[5]
Definition: ZdcTBAnalysis.h:34
ADC::V6
double V6
Definition: ZdcTBAnalysis.h:49
ADC::VM
double VM
Definition: ZdcTBAnalysis.h:47
ZdcTBAnalysis::SciVLEadc
double SciVLEadc
Definition: ZdcTBAnalysis.h:197
TDC::beamCoincidence
double beamCoincidence[5]
Definition: ZdcTBAnalysis.h:28
HcalTBTriggerData::wasSpillIgnorantPedestalTrigger
bool wasSpillIgnorantPedestalTrigger() const
returns true if this trigger was a calibration trigger
Definition: HcalTBTriggerData.h:79
ADC::VM2
double VM2
Definition: ZdcTBAnalysis.h:68
HcalTBTiming::M1Count
int M1Count() const
Returns the number of hits from muon veto scintillator M1.
Definition: HcalTBTiming.h:46
ADC::VM3
double VM3
Definition: ZdcTBAnalysis.h:69
ADC::VH4
double VH4
Definition: ZdcTBAnalysis.h:53
ADC::S4
double S4
Definition: ZdcTBAnalysis.h:64
ZdcTBAnalysis::BH2adc
double BH2adc
Definition: ZdcTBAnalysis.h:216
ZdcTBAnalysis::bh4hits
double bh4hits[5]
Definition: ZdcTBAnalysis.h:181
ZdcTBAnalysis::isOutSpillPedestalTrigger
bool isOutSpillPedestalTrigger
Definition: ZdcTBAnalysis.h:157
HcalTBTiming::BH2Count
int BH2Count() const
Returns the number of hits from beam halo counter left from particle view.
Definition: HcalTBTiming.h:64
HcalTBTiming::S1Count
int S1Count() const
Returns the number of hits from scintillator S1, which is 12cm x 12cm.
Definition: HcalTBTiming.h:53
TDC::s2
double s2[5]
Definition: ZdcTBAnalysis.h:37
ZdcTBAnalysis::runNumber
int runNumber
Definition: ZdcTBAnalysis.h:152
HcalTBTiming::S4Count
int S4Count() const
Returns the number of hits from scintillator S4, which is 12cm x 12cm.
Definition: HcalTBTiming.h:59
HcalTBBeamCounters::SciVLEadc
double SciVLEadc() const
Definition: HcalTBBeamCounters.h:26
ADC::VH2
double VH2
Definition: ZdcTBAnalysis.h:51
ZdcTBAnalysis::adc
ADC adc
Definition: ZdcTBAnalysis.h:239
ZdcTBAnalysis::done
void done()
Definition: ZdcTBAnalysis.cc:304
TDC::bh1
double bh1[5]
Definition: ZdcTBAnalysis.h:40
ZdcTBAnalysis::wcfy
std::vector< double > wcfy
Definition: ZdcTBAnalysis.h:231
HcalTBBeamCounters::Sci528adc
double Sci528adc() const
Definition: HcalTBBeamCounters.h:28
ZdcTBAnalysis::outFile
TFile * outFile
Definition: ZdcTBAnalysis.h:244
TDC::s1
double s1[5]
Definition: ZdcTBAnalysis.h:36
ZdcTBAnalysis::wcay
std::vector< double > wcay
Definition: ZdcTBAnalysis.h:221
CHAMB::WCFy
double WCFy[5]
Definition: ZdcTBAnalysis.h:95
HcalTBTiming::BeamCoincidenceHits
double BeamCoincidenceHits(int index) const
Returns the indexed hit time from Beam Coincidence.
Definition: HcalTBTiming.h:71
ZdcTBAnalysis::VM7adc
double VM7adc
Definition: ZdcTBAnalysis.h:211
ZdcTBAnalysis::trigger_time
double trigger_time
Definition: ZdcTBAnalysis.h:163
ADC::VH1
double VH1
Definition: ZdcTBAnalysis.h:50
ZDCN::zdcEMMod5
double zdcEMMod5
Definition: ZdcTBAnalysis.h:111
ZdcTBAnalysis::VM6adc
double VM6adc
Definition: ZdcTBAnalysis.h:210
edm::SortedCollection::begin
const_iterator begin() const
Definition: SortedCollection.h:262
HcalTBBeamCounters::VM3adc
double VM3adc() const
Definition: HcalTBBeamCounters.h:37
ADC::VMB
double VMB
Definition: ZdcTBAnalysis.h:66
ZdcTBAnalysis::isInSpillPedestalTrigger
bool isInSpillPedestalTrigger
Definition: ZdcTBAnalysis.h:158
ZdcTBAnalysis::m1hits
double m1hits[5]
Definition: ZdcTBAnalysis.h:171
HcalTBTiming::S4Hits
double S4Hits(int index) const
Returns the indexed hit time from scintillator S4, which is 12cm x 12cm.
Definition: HcalTBTiming.h:86
ZdcTBAnalysis::wcey
std::vector< double > wcey
Definition: ZdcTBAnalysis.h:229
HcalTBTiming::qiePhase
double qiePhase() const
Returns the QIE phase for 2003 testbeam data (zero otherwise)
Definition: HcalTBTiming.h:32
ZdcTBAnalysis::VH4adc
double VH4adc
Definition: ZdcTBAnalysis.h:189
ADC::V3
double V3
Definition: ZdcTBAnalysis.h:48
HcalTBTriggerData::wasInSpillPedestalTrigger
bool wasInSpillPedestalTrigger() const
returns true if this was an in-spill pedestal trigger
Definition: HcalTBTriggerData.h:87
TDC::s3
double s3[5]
Definition: ZdcTBAnalysis.h:38
ZDCN::zdcHADMod4
double zdcHADMod4
Definition: ZdcTBAnalysis.h:106
CHAMB::WCAx
double WCAx[5]
Definition: ZdcTBAnalysis.h:84
ZdcTBAnalysis::s2hits
double s2hits[5]
Definition: ZdcTBAnalysis.h:175
HcalTBBeamCounters::Sci521adc
double Sci521adc() const
Definition: HcalTBBeamCounters.h:27
HcalTBBeamCounters::V3adc
double V3adc() const
Definition: HcalTBBeamCounters.h:16
HcalTBTiming
Definition: HcalTBTiming.h:17
ZdcTBAnalysis::wchx
std::vector< double > wchx
Definition: ZdcTBAnalysis.h:234
TDC::bh4
double bh4[5]
Definition: ZdcTBAnalysis.h:43
TDC::m1
double m1[5]
Definition: ZdcTBAnalysis.h:33
ZDCN::zdcHADMod3
double zdcHADMod3
Definition: ZdcTBAnalysis.h:105
HcalTBTiming::BH4Hits
double BH4Hits(int index) const
Returns the indexed hit time from beam halo counter DOWN HORZINTAL.
Definition: HcalTBTiming.h:95
ZdcTBAnalysis::VM5adc
double VM5adc
Definition: ZdcTBAnalysis.h:209
ZdcTBAnalysis::VMFadc
double VMFadc
Definition: ZdcTBAnalysis.h:203
ZdcTBAnalysis::detID
HcalZDCDetId detID
Definition: ZdcTBAnalysis.h:150
HcalTBTiming::laserFlash
double laserFlash() const
Returns the laser activation time in ns.
Definition: HcalTBTiming.h:30
dataset.outName
outName
Definition: dataset.py:938
ZDCN::zdcEMMod4
double zdcEMMod4
Definition: ZdcTBAnalysis.h:110
ZdcTBAnalysis::S1adc
double S1adc
Definition: ZdcTBAnalysis.h:198
HcalTBBeamCounters::CK3adc
double CK3adc() const
Definition: HcalTBBeamCounters.h:25
ZDCP::zdcScint1
double zdcScint1
Definition: ZdcTBAnalysis.h:127
ZDCN::zdcEMMod1
double zdcEMMod1
Definition: ZdcTBAnalysis.h:107
HcalTBTiming::S3Hits
double S3Hits(int index) const
Returns the indexed hit time from scintillator S3, which is 2cm x 2cm.
Definition: HcalTBTiming.h:84
ZDCP::zdcHADMod2
double zdcHADMod2
Definition: ZdcTBAnalysis.h:119
HcalTBBeamCounters::VM7adc
double VM7adc() const
Definition: HcalTBBeamCounters.h:41
HcalTBTriggerData::wasInSpill
bool wasInSpill() const
returns true if the "spill" bit was set
Definition: HcalTBTriggerData.h:96
CHAMB::WCEx
double WCEx[5]
Definition: ZdcTBAnalysis.h:92
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ZDCP::zdcEMMod2
double zdcEMMod2
Definition: ZdcTBAnalysis.h:123
HcalTBBeamCounters::VM5adc
double VM5adc() const
Definition: HcalTBBeamCounters.h:39
ZdcTBAnalysis::S4adc
double S4adc
Definition: ZdcTBAnalysis.h:201
ZdcTBAnalysis::TOF1_time
double TOF1_time
Definition: ZdcTBAnalysis.h:168
CHAMB::WCHx
double WCHx[5]
Definition: ZdcTBAnalysis.h:98
HcalZDCDetId::zside
int zside() const
get the z-side of the cell (1/-1)
Definition: HcalZDCDetId.h:39
ZdcTBAnalysis::VMBadc
double VMBadc
Definition: ZdcTBAnalysis.h:204
TDC::m3
double m3[5]
Definition: ZdcTBAnalysis.h:35
ADC::BH4
double BH4
Definition: ZdcTBAnalysis.h:80
HcalTBTiming::BH1Count
int BH1Count() const
Returns the number of hits from beam halo counter up horizontal.
Definition: HcalTBTiming.h:62
HcalTBEventPosition::getChamberHits
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,...
Definition: HcalTBEventPosition.cc:29
HcalTBTiming::M1Hits
double M1Hits(int index) const
Returns the indexed hit time from muon veto scintillator M1.
Definition: HcalTBTiming.h:73
ADC::S1
double S1
Definition: ZdcTBAnalysis.h:61
HcalTBTiming::M3Count
int M3Count() const
Returns the number of hits from muon veto scintillator M3.
Definition: HcalTBTiming.h:50
ADC::CK2
double CK2
Definition: ZdcTBAnalysis.h:58
ADC::VM7
double VM7
Definition: ZdcTBAnalysis.h:73
ADC::CK3
double CK3
Definition: ZdcTBAnalysis.h:59
TDC::bh2
double bh2[5]
Definition: ZdcTBAnalysis.h:41
HcalTBBeamCounters::VH1adc
double VH1adc() const
Definition: HcalTBBeamCounters.h:18
HcalTBTriggerData
Definition: HcalTBTriggerData.h:17
HcalTBTriggerData::wasFakeTrigger
bool wasFakeTrigger() const
returns true if this trigger was fake (from a non-H2 manager)
Definition: HcalTBTriggerData.h:76
ZdcTBAnalysis::m3hits
double m3hits[5]
Definition: ZdcTBAnalysis.h:173
ZdcTBAnalysis::laser_flash
double laser_flash
Definition: ZdcTBAnalysis.h:166
ADC::VM6
double VM6
Definition: ZdcTBAnalysis.h:72
CHAMB::WCDy
double WCDy[5]
Definition: ZdcTBAnalysis.h:91
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
ZdcTBAnalysis::isection
int isection
Definition: ZdcTBAnalysis.h:146
HcalTBTiming::BH3Hits
double BH3Hits(int index) const
Returns the indexed hit time from beam halo counter BEAM RIGHT FROM PARTICLE'S VIEW.
Definition: HcalTBTiming.h:93
HcalTBBeamCounters::CK2adc
double CK2adc() const
Definition: HcalTBBeamCounters.h:24
ZdcTBAnalysis::CK2adc
double CK2adc
Definition: ZdcTBAnalysis.h:195
HcalTBBeamCounters::S4adc
double S4adc() const
Definition: HcalTBBeamCounters.h:32
TDC::TOF1
double TOF1
Definition: ZdcTBAnalysis.h:31
TDC::s4
double s4[5]
Definition: ZdcTBAnalysis.h:39
ZdcTBAnalysis::V6adc
double V6adc
Definition: ZdcTBAnalysis.h:185
CHAMB::WCFx
double WCFx[5]
Definition: ZdcTBAnalysis.h:94
HcalTBTiming::triggerTime
double triggerTime() const
Returns the trigger time in ns.
Definition: HcalTBTiming.h:24
ADC::Ecal7x7
double Ecal7x7
Definition: ZdcTBAnalysis.h:54
ZdcTBAnalysis::VM4adc
double VM4adc
Definition: ZdcTBAnalysis.h:208
HcalTBTiming::S3Count
int S3Count() const
Returns the number of hits from scintillator S3, which is 2cm x 2cm.
Definition: HcalTBTiming.h:57
CHAMB::WCCy
double WCCy[5]
Definition: ZdcTBAnalysis.h:89
HcalTBBeamCounters::VM1adc
double VM1adc() const
Definition: HcalTBBeamCounters.h:35
ZdcTBAnalysis::setup
void setup(const std::string &histoFileName)
Definition: ZdcTBAnalysis.cc:8
ZdcTBAnalysis::wcdx
std::vector< double > wcdx
Definition: ZdcTBAnalysis.h:226
HcalTBBeamCounters::S3adc
double S3adc() const
Definition: HcalTBBeamCounters.h:31
HcalTBTiming::M2Hits
double M2Hits(int index) const
Returns the indexed hit time from muon veto scintillator M2.
Definition: HcalTBTiming.h:75
ZdcTBAnalysis::iside
int iside
Definition: ZdcTBAnalysis.h:145
HcalTBBeamCounters::VH2adc
double VH2adc() const
Definition: HcalTBBeamCounters.h:19
HcalTBBeamCounters::BH2adc
double BH2adc() const
Definition: HcalTBBeamCounters.h:48
ZdcTBAnalysis::idepth
int idepth
Definition: ZdcTBAnalysis.h:148
ZdcTBAnalysis::wccx
std::vector< double > wccx
Definition: ZdcTBAnalysis.h:224
HcalTBBeamCounters::BH3adc
double BH3adc() const
Definition: HcalTBBeamCounters.h:49
TDC::laserFlash
double laserFlash
Definition: ZdcTBAnalysis.h:29
ZDCP::zdcHADMod1
double zdcHADMod1
Definition: ZdcTBAnalysis.h:118
ZdcTBAnalysis::Sci521adc
double Sci521adc
Definition: ZdcTBAnalysis.h:191
CHAMB::WCGy
double WCGy[5]
Definition: ZdcTBAnalysis.h:97
ADC::VM1
double VM1
Definition: ZdcTBAnalysis.h:67
ZdcTBAnalysis::BH1adc
double BH1adc
Definition: ZdcTBAnalysis.h:215
HcalTBTriggerData::wasOutSpillPedestalTrigger
bool wasOutSpillPedestalTrigger() const
returns true if this was an out-of-spill pedestal trigger
Definition: HcalTBTriggerData.h:84
HcalTBTiming::BH1Hits
double BH1Hits(int index) const
Returns the indexed hit time from beam halo counter UP HORIZONTAL.
Definition: HcalTBTiming.h:89
ZdcTBAnalysis::VM3adc
double VM3adc
Definition: ZdcTBAnalysis.h:207
ZdcTBAnalysis::wcfx
std::vector< double > wcfx
Definition: ZdcTBAnalysis.h:230
ADC::BH2
double BH2
Definition: ZdcTBAnalysis.h:78
ADC::SciVLE
double SciVLE
Definition: ZdcTBAnalysis.h:60
ZDCP::zdcEMMod5
double zdcEMMod5
Definition: ZdcTBAnalysis.h:126
TDC::TOF2
double TOF2
Definition: ZdcTBAnalysis.h:32
ZdcTBAnalysis::CK3adc
double CK3adc
Definition: ZdcTBAnalysis.h:196
ADC::S3
double S3
Definition: ZdcTBAnalysis.h:63
HcalTBTiming::M3Hits
double M3Hits(int index) const
Returns the indexed hit time from muon veto scintillator M3.
Definition: HcalTBTiming.h:77
ZdcTBAnalysis::wcby
std::vector< double > wcby
Definition: ZdcTBAnalysis.h:223
HcalTBTriggerData::wasLaserTrigger
bool wasLaserTrigger() const
returns true if this was a laser trigger
Definition: HcalTBTriggerData.h:90
HcalTBTiming::ttcL1Atime
double ttcL1Atime() const
Returns the Level 1 Accept time in ns.
Definition: HcalTBTiming.h:27
ZdcTBAnalysis::m2hits
double m2hits[5]
Definition: ZdcTBAnalysis.h:172
CHAMB::WCHy
double WCHy[5]
Definition: ZdcTBAnalysis.h:99
ZDCN::zdcHADMod2
double zdcHADMod2
Definition: ZdcTBAnalysis.h:104
ZdcTBAnalysis::isLedTrigger
bool isLedTrigger
Definition: ZdcTBAnalysis.h:160
ZdcTBAnalysis::Sci528adc
double Sci528adc
Definition: ZdcTBAnalysis.h:192
ZdcTBAnalysis::ZdcTBAnalysis
ZdcTBAnalysis()
Definition: ZdcTBAnalysis.cc:6
HcalTBTiming::BeamCoincidenceCount
int BeamCoincidenceCount() const
Returns the number of hits from Beam Coincidence.
Definition: HcalTBTiming.h:44
ZdcTBAnalysis::S2adc
double S2adc
Definition: ZdcTBAnalysis.h:199
ZdcTBAnalysis::isFakeTrigger
bool isFakeTrigger
Definition: ZdcTBAnalysis.h:155
ZdcTBAnalysis::BH4adc
double BH4adc
Definition: ZdcTBAnalysis.h:218
trigger
Definition: HLTPrescaleTableCond.h:8
TDC::bh3
double bh3[5]
Definition: ZdcTBAnalysis.h:42
ZdcTBAnalysis::tdc
TDC tdc
Definition: ZdcTBAnalysis.h:238
ZdcTBAnalysis::VH3adc
double VH3adc
Definition: ZdcTBAnalysis.h:188
ZdcTBAnalysis::wcgx
std::vector< double > wcgx
Definition: ZdcTBAnalysis.h:232
ZdcTBAnalysis::wcdy
std::vector< double > wcdy
Definition: ZdcTBAnalysis.h:227
HcalTBTriggerData::wasBeamTrigger
bool wasBeamTrigger() const
returns true if this trigger came from beam data
Definition: HcalTBTriggerData.h:73
HcalTBBeamCounters::VH4adc
double VH4adc() const
Definition: HcalTBBeamCounters.h:21
HcalTBBeamCounters::VM8adc
double VM8adc() const
Definition: HcalTBBeamCounters.h:42
HcalZDCDetId::section
Section section() const
get the section
Definition: HcalZDCDetId.cc:44
HcalTBBeamCounters::BH4adc
double BH4adc() const
Definition: HcalTBBeamCounters.h:50
HcalTBTiming::TOF2Stime
double TOF2Stime() const
Returns the TOF2S time (zero otherwise)
Definition: HcalTBTiming.h:39
ZdcTBAnalysis::ZdcAnalize
TTree * ZdcAnalize
Definition: ZdcTBAnalysis.h:245
ZdcTBAnalysis::isLaserTrigger
bool isLaserTrigger
Definition: ZdcTBAnalysis.h:159
HcalTBBeamCounters::VM6adc
double VM6adc() const
Definition: HcalTBBeamCounters.h:40
HcalTBTiming::BH4Count
int BH4Count() const
Returns the number of hits from beam halo counter down horizontal.
Definition: HcalTBTiming.h:68
ADC::BH3
double BH3
Definition: ZdcTBAnalysis.h:79
ZdcTBAnalysis::Ecal7x7adc
double Ecal7x7adc
Definition: ZdcTBAnalysis.h:190
ADC::VM4
double VM4
Definition: ZdcTBAnalysis.h:70
ZdcTBAnalysis::VH1adc
double VH1adc
Definition: ZdcTBAnalysis.h:186
ZdcTBAnalysis::wccy
std::vector< double > wccy
Definition: ZdcTBAnalysis.h:225
ZdcTBAnalysis::ttc_L1a_time
double ttc_L1a_time
Definition: ZdcTBAnalysis.h:164
HcalTBTiming::TOF1Stime
double TOF1Stime() const
Returns the TOF1S time (zero otherwise)
Definition: HcalTBTiming.h:35
HcalTBBeamCounters::S2adc
double S2adc() const
Definition: HcalTBBeamCounters.h:30
HcalTBBeamCounters::VH3adc
double VH3adc() const
Definition: HcalTBBeamCounters.h:20
HcalTBTiming::BH2Hits
double BH2Hits(int index) const
Returns the indexed hit time from from beam halo counter BEAM LEFT FROM PARTICLE'S VIEW.
Definition: HcalTBTiming.h:91
CHAMB::WCBy
double WCBy[5]
Definition: ZdcTBAnalysis.h:87
ZdcTBAnalysis::s4hits
double s4hits[5]
Definition: ZdcTBAnalysis.h:177
ZdcTBAnalysis::CK1adc
double CK1adc
Definition: ZdcTBAnalysis.h:194
ZdcTBAnalysis.h
ZDCP::zdcEMMod3
double zdcEMMod3
Definition: ZdcTBAnalysis.h:124
ZdcTBAnalysis::TOF2adc
double TOF2adc
Definition: ZdcTBAnalysis.h:214