|
|
Go to the documentation of this file.
11 ZdcAnalize =
new TTree(
"ZdcAnaTree",
"ZdcAnaTree");
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");
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");
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");
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");
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:"
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:"
78 trigger.outSpillPedestalTrigger = 1;
80 trigger.inSpillPedestalTrigger = 1;
104 for (indx = 0; indx < times.
M1Count(); indx++)
107 for (indx = 0; indx < times.
M2Count(); indx++)
110 for (indx = 0; indx < times.
M3Count(); indx++)
113 for (indx = 0; indx < times.
S1Count(); indx++)
116 for (indx = 0; indx < times.
S2Count(); indx++)
119 for (indx = 0; indx < times.
S3Count(); indx++)
122 for (indx = 0; indx < times.
S4Count(); indx++)
125 for (indx = 0; indx < times.
BH1Count(); indx++)
128 for (indx = 0; indx < times.
BH2Count(); indx++)
131 for (indx = 0; indx < times.
BH3Count(); indx++)
134 for (indx = 0; indx < times.
BH4Count(); indx++)
189 unsigned int indTop = 5;
190 unsigned int indx = 0;
191 for (indx = 0; indx <
wcax.size(); indx++)
194 for (indx = 0; indx <
wcay.size(); indx++)
197 for (indx = 0; indx <
wcbx.size(); indx++)
200 for (indx = 0; indx <
wcby.size(); indx++)
203 for (indx = 0; indx <
wccx.size(); indx++)
206 for (indx = 0; indx <
wccy.size(); indx++)
209 for (indx = 0; indx <
wcdx.size(); indx++)
212 for (indx = 0; indx <
wcdy.size(); indx++)
215 for (indx = 0; indx <
wcdx.size(); indx++)
218 for (indx = 0; indx <
wcey.size(); indx++)
221 for (indx = 0; indx <
wcfx.size(); indx++)
224 for (indx = 0; indx <
wcfy.size(); indx++)
227 for (indx = 0; indx <
wcgx.size(); indx++)
230 for (indx = 0; indx <
wcgy.size(); indx++)
233 for (indx = 0; indx <
wchx.size(); indx++)
236 for (indx = 0; indx <
wchy.size(); indx++)
243 std::cout <<
"****************************************************" << std::endl;
245 for (
i = zdcHits.
begin();
i != zdcHits.
end();
i++) {
bool wasLEDTrigger() const
returns true if this was a LED trigger
std::vector< double > wcgy
int M2Count() const
Returns the number of hits from muon veto scintillator M2.
std::vector< double > wcex
int BH3Count() const
Returns the number of hits from beam halo counter right from particle view.
std::vector< T >::const_iterator const_iterator
double beam_coincidence[5]
std::vector< double > wcax
int depth() const
get the depth (1 for EM, channel + 1 for HAD, 2 for RPD, not sure yet for LUM, leave as default)
double S1Hits(int index) const
Returns the indexed hit time from scintillator S1, which is 12cm x 12cm.
uint16_t eventNumber() const
Returns the event number of this trigger.
std::vector< double > wchy
void analyze(const ZDCRecHitCollection &hf)
std::vector< double > wcbx
int channel() const
get the channel
int S2Count() const
Returns the number of hits from scintillator S2, which is 4cm x 4cm.
double VMadc() const
Muon Veto adc.
uint32_t runNumber() const
Returns the current run number.
double S2Hits(int index) const
Returns the indexed hit time from scintillator S2, which is 4cm x 4cm.
double beamCoincidence[5]
bool wasSpillIgnorantPedestalTrigger() const
returns true if this trigger was a calibration trigger
int M1Count() const
Returns the number of hits from muon veto scintillator M1.
bool isOutSpillPedestalTrigger
int BH2Count() const
Returns the number of hits from beam halo counter left from particle view.
int S1Count() const
Returns the number of hits from scintillator S1, which is 12cm x 12cm.
int S4Count() const
Returns the number of hits from scintillator S4, which is 12cm x 12cm.
std::vector< double > wcfy
std::vector< double > wcay
double BeamCoincidenceHits(int index) const
Returns the indexed hit time from Beam Coincidence.
const_iterator begin() const
bool isInSpillPedestalTrigger
double S4Hits(int index) const
Returns the indexed hit time from scintillator S4, which is 12cm x 12cm.
std::vector< double > wcey
double qiePhase() const
Returns the QIE phase for 2003 testbeam data (zero otherwise)
bool wasInSpillPedestalTrigger() const
returns true if this was an in-spill pedestal trigger
std::vector< double > wchx
double BH4Hits(int index) const
Returns the indexed hit time from beam halo counter DOWN HORZINTAL.
double laserFlash() const
Returns the laser activation time in ns.
double S3Hits(int index) const
Returns the indexed hit time from scintillator S3, which is 2cm x 2cm.
bool wasInSpill() const
returns true if the "spill" bit was set
int zside() const
get the z-side of the cell (1/-1)
int BH1Count() const
Returns the number of hits from beam halo counter up horizontal.
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 M1Hits(int index) const
Returns the indexed hit time from muon veto scintillator M1.
int M3Count() const
Returns the number of hits from muon veto scintillator M3.
bool wasFakeTrigger() const
returns true if this trigger was fake (from a non-H2 manager)
const_iterator end() const
double BH3Hits(int index) const
Returns the indexed hit time from beam halo counter BEAM RIGHT FROM PARTICLE'S VIEW.
double triggerTime() const
Returns the trigger time in ns.
int S3Count() const
Returns the number of hits from scintillator S3, which is 2cm x 2cm.
void setup(const std::string &histoFileName)
std::vector< double > wcdx
double M2Hits(int index) const
Returns the indexed hit time from muon veto scintillator M2.
std::vector< double > wccx
bool wasOutSpillPedestalTrigger() const
returns true if this was an out-of-spill pedestal trigger
double BH1Hits(int index) const
Returns the indexed hit time from beam halo counter UP HORIZONTAL.
std::vector< double > wcfx
double M3Hits(int index) const
Returns the indexed hit time from muon veto scintillator M3.
std::vector< double > wcby
bool wasLaserTrigger() const
returns true if this was a laser trigger
double ttcL1Atime() const
Returns the Level 1 Accept time in ns.
int BeamCoincidenceCount() const
Returns the number of hits from Beam Coincidence.
std::vector< double > wcgx
std::vector< double > wcdy
bool wasBeamTrigger() const
returns true if this trigger came from beam data
Section section() const
get the section
double TOF2Stime() const
Returns the TOF2S time (zero otherwise)
int BH4Count() const
Returns the number of hits from beam halo counter down horizontal.
std::vector< double > wccy
double TOF1Stime() const
Returns the TOF1S time (zero otherwise)
double BH2Hits(int index) const
Returns the indexed hit time from from beam halo counter BEAM LEFT FROM PARTICLE'S VIEW.