#include <HcalTBTiming.h>
Public Member Functions | |
int | BeamCoincidenceCount () const |
Returns the number of hits from Beam Coincidence. | |
double | BeamCoincidenceHits (int index) const |
Returns the indexed hit time from Beam Coincidence. | |
int | BH1Count () const |
Returns the number of hits from beam halo counter up horizontal. | |
double | BH1Hits (int index) const |
Returns the indexed hit time from beam halo counter UP HORIZONTAL. | |
int | BH2Count () const |
Returns the number of hits from beam halo counter left from particle view. | |
double | BH2Hits (int index) const |
Returns the indexed hit time from from beam halo counter BEAM LEFT FROM PARTICLE'S VIEW. | |
int | BH3Count () const |
Returns the number of hits from beam halo counter right from particle view. | |
double | BH3Hits (int index) const |
Returns the indexed hit time from beam halo counter BEAM RIGHT FROM PARTICLE'S VIEW. | |
int | BH4Count () const |
Returns the number of hits from beam halo counter down horizontal. | |
double | BH4Hits (int index) const |
Returns the indexed hit time from beam halo counter DOWN HORZINTAL. | |
HcalTBTiming () | |
double | laserFlash () const |
Returns the laser activation time in ns. | |
int | M1Count () const |
Returns the number of hits from muon veto scintillator M1. | |
double | M1Hits (int index) const |
Returns the indexed hit time from muon veto scintillator M1. | |
int | M2Count () const |
Returns the number of hits from muon veto scintillator M2. | |
double | M2Hits (int index) const |
Returns the indexed hit time from muon veto scintillator M2. | |
int | M3Count () const |
Returns the number of hits from muon veto scintillator M3. | |
double | M3Hits (int index) const |
Returns the indexed hit time from muon veto scintillator M3. | |
double | qiePhase () const |
Returns the QIE phase for 2003 testbeam data (zero otherwise) | |
int | S1Count () const |
Returns the number of hits from scintillator S1, which is 12cm x 12cm. | |
double | S1Hits (int index) const |
Returns the indexed hit time from scintillator S1, which is 12cm x 12cm. | |
int | S2Count () const |
Returns the number of hits from scintillator S2, which is 4cm x 4cm. | |
double | S2Hits (int index) const |
Returns the indexed hit time from scintillator S2, which is 4cm x 4cm. | |
int | S3Count () const |
Returns the number of hits from scintillator S3, which is 2cm x 2cm. | |
double | S3Hits (int index) const |
Returns the indexed hit time from scintillator S3, which is 2cm x 2cm. | |
int | S4Count () const |
Returns the number of hits from scintillator S4, which is 12cm x 12cm. | |
double | S4Hits (int index) const |
Returns the indexed hit time from scintillator S4, which is 12cm x 12cm. | |
void | setHits (const std::vector< double > &m1hits, const std::vector< double > &m2hits, const std::vector< double > &m3hits, const std::vector< double > &s1hits, const std::vector< double > &s2hits, const std::vector< double > &s3hits, const std::vector< double > &s4hits, const std::vector< double > &bh1hits, const std::vector< double > &bh2hits, const std::vector< double > &bh3hits, const std::vector< double > &bh4hits, const std::vector< double > &beamCoincidenceHits) |
void | setTimes (const double trigger_time, const double ttc_l1a_time, const double laser_flash, const double qie_phase, const double TOF1S_time, const double TOF1J_time, const double TOF2S_time, const double TOF2J_time) |
void | setV775 (int *V775) |
double | TOF1Jtime () const |
Returns the TOF1J time (zero otherwise) | |
double | TOF1Stime () const |
Returns the TOF1S time (zero otherwise) | |
double | TOF2Jtime () const |
Returns the TOF2J time (zero otherwise) | |
double | TOF2Stime () const |
Returns the TOF2S time (zero otherwise) | |
double | triggerTime () const |
Returns the trigger time in ns. | |
double | ttcL1Atime () const |
Returns the Level 1 Accept time in ns. | |
int | V775 (int index) const |
Returns the hit in the specified channel. | |
Private Attributes | |
std::vector< double > | beamCoincidenceHits_ |
std::vector< double > | bh1hits_ |
std::vector< double > | bh2hits_ |
std::vector< double > | bh3hits_ |
std::vector< double > | bh4hits_ |
double | laserFlash_ |
std::vector< double > | m1hits_ |
std::vector< double > | m2hits_ |
std::vector< double > | m3hits_ |
double | qiePhase_ |
std::vector< double > | s1hits_ |
std::vector< double > | s2hits_ |
std::vector< double > | s3hits_ |
std::vector< double > | s4hits_ |
double | TOF1Jtime_ |
double | TOF1Stime_ |
double | TOF2Jtime_ |
double | TOF2Stime_ |
double | triggerTime_ |
double | ttcL1Atime_ |
int | V775_ [32] |
This class contains timing information unpacked from the Time-to-Digital Converter (TDC).
Definition at line 18 of file HcalTBTiming.h.
HcalTBTiming::HcalTBTiming | ( | ) |
Definition at line 5 of file HcalTBTiming.cc.
: triggerTime_(0), ttcL1Atime_(0), laserFlash_(0), qiePhase_(0), TOF1Stime_(0), TOF1Jtime_(0), TOF2Stime_(0), TOF2Jtime_(0), beamCoincidenceHits_(), m1hits_(), m2hits_(), m3hits_(), s1hits_(), s2hits_(), s3hits_(), s4hits_(), bh1hits_(), bh2hits_(), bh3hits_(), bh4hits_() { for (int i=0;i<32;i++)V775_[i]=-1; }
int HcalTBTiming::BeamCoincidenceCount | ( | ) | const [inline] |
Returns the number of hits from Beam Coincidence.
Definition at line 45 of file HcalTBTiming.h.
References beamCoincidenceHits_.
Referenced by ZdcTBAnalysis::analyze(), operator<<(), and EcalTBH2TDCRecInfoAlgo::reconstruct().
{ return beamCoincidenceHits_.size(); }
double HcalTBTiming::BeamCoincidenceHits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from Beam Coincidence.
Definition at line 72 of file HcalTBTiming.h.
References beamCoincidenceHits_, and getHLTprescales::index.
Referenced by ZdcTBAnalysis::analyze(), operator<<(), and EcalTBH2TDCRecInfoAlgo::reconstruct().
{ return beamCoincidenceHits_[index]; }
int HcalTBTiming::BH1Count | ( | ) | const [inline] |
Returns the number of hits from beam halo counter up horizontal.
Definition at line 63 of file HcalTBTiming.h.
References bh1hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return bh1hits_.size(); }
double HcalTBTiming::BH1Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from beam halo counter UP HORIZONTAL.
Definition at line 90 of file HcalTBTiming.h.
References bh1hits_, and getHLTprescales::index.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
int HcalTBTiming::BH2Count | ( | ) | const [inline] |
Returns the number of hits from beam halo counter left from particle view.
Definition at line 65 of file HcalTBTiming.h.
References bh2hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return bh2hits_.size(); }
double HcalTBTiming::BH2Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from from beam halo counter BEAM LEFT FROM PARTICLE'S VIEW.
Definition at line 92 of file HcalTBTiming.h.
References bh2hits_, and getHLTprescales::index.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
int HcalTBTiming::BH3Count | ( | ) | const [inline] |
Returns the number of hits from beam halo counter right from particle view.
Definition at line 67 of file HcalTBTiming.h.
References bh3hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return bh3hits_.size(); }
double HcalTBTiming::BH3Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from beam halo counter BEAM RIGHT FROM PARTICLE'S VIEW.
Definition at line 94 of file HcalTBTiming.h.
References bh3hits_, and getHLTprescales::index.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
int HcalTBTiming::BH4Count | ( | ) | const [inline] |
Returns the number of hits from beam halo counter down horizontal.
Definition at line 69 of file HcalTBTiming.h.
References bh4hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return bh4hits_.size(); }
double HcalTBTiming::BH4Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from beam halo counter DOWN HORZINTAL.
Definition at line 96 of file HcalTBTiming.h.
References bh4hits_, and getHLTprescales::index.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
double HcalTBTiming::laserFlash | ( | ) | const [inline] |
Returns the laser activation time in ns.
Definition at line 31 of file HcalTBTiming.h.
References laserFlash_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return laserFlash_; }
int HcalTBTiming::M1Count | ( | ) | const [inline] |
Returns the number of hits from muon veto scintillator M1.
Definition at line 47 of file HcalTBTiming.h.
References m1hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return m1hits_.size(); }
double HcalTBTiming::M1Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from muon veto scintillator M1.
Definition at line 74 of file HcalTBTiming.h.
References getHLTprescales::index, and m1hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
int HcalTBTiming::M2Count | ( | ) | const [inline] |
Returns the number of hits from muon veto scintillator M2.
Definition at line 49 of file HcalTBTiming.h.
References m2hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return m2hits_.size(); }
double HcalTBTiming::M2Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from muon veto scintillator M2.
Definition at line 76 of file HcalTBTiming.h.
References getHLTprescales::index, and m2hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
int HcalTBTiming::M3Count | ( | ) | const [inline] |
Returns the number of hits from muon veto scintillator M3.
Definition at line 51 of file HcalTBTiming.h.
References m3hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return m3hits_.size(); }
double HcalTBTiming::M3Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from muon veto scintillator M3.
Definition at line 78 of file HcalTBTiming.h.
References getHLTprescales::index, and m3hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
double HcalTBTiming::qiePhase | ( | ) | const [inline] |
Returns the QIE phase for 2003 testbeam data (zero otherwise)
Definition at line 33 of file HcalTBTiming.h.
References qiePhase_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return qiePhase_; }
int HcalTBTiming::S1Count | ( | ) | const [inline] |
Returns the number of hits from scintillator S1, which is 12cm x 12cm.
Definition at line 54 of file HcalTBTiming.h.
References s1hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return s1hits_.size(); }
double HcalTBTiming::S1Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from scintillator S1, which is 12cm x 12cm.
Definition at line 81 of file HcalTBTiming.h.
References getHLTprescales::index, and s1hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
int HcalTBTiming::S2Count | ( | ) | const [inline] |
Returns the number of hits from scintillator S2, which is 4cm x 4cm.
Definition at line 56 of file HcalTBTiming.h.
References s2hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return s2hits_.size(); }
double HcalTBTiming::S2Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from scintillator S2, which is 4cm x 4cm.
Definition at line 83 of file HcalTBTiming.h.
References getHLTprescales::index, and s2hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
int HcalTBTiming::S3Count | ( | ) | const [inline] |
Returns the number of hits from scintillator S3, which is 2cm x 2cm.
Definition at line 58 of file HcalTBTiming.h.
References s3hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return s3hits_.size(); }
double HcalTBTiming::S3Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from scintillator S3, which is 2cm x 2cm.
Definition at line 85 of file HcalTBTiming.h.
References getHLTprescales::index, and s3hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
int HcalTBTiming::S4Count | ( | ) | const [inline] |
Returns the number of hits from scintillator S4, which is 12cm x 12cm.
Definition at line 60 of file HcalTBTiming.h.
References s4hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return s4hits_.size(); }
double HcalTBTiming::S4Hits | ( | int | index | ) | const [inline] |
Returns the indexed hit time from scintillator S4, which is 12cm x 12cm.
Definition at line 87 of file HcalTBTiming.h.
References getHLTprescales::index, and s4hits_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
void HcalTBTiming::setHits | ( | const std::vector< double > & | m1hits, |
const std::vector< double > & | m2hits, | ||
const std::vector< double > & | m3hits, | ||
const std::vector< double > & | s1hits, | ||
const std::vector< double > & | s2hits, | ||
const std::vector< double > & | s3hits, | ||
const std::vector< double > & | s4hits, | ||
const std::vector< double > & | bh1hits, | ||
const std::vector< double > & | bh2hits, | ||
const std::vector< double > & | bh3hits, | ||
const std::vector< double > & | bh4hits, | ||
const std::vector< double > & | beamCoincidenceHits | ||
) |
Definition at line 47 of file HcalTBTiming.cc.
References beamCoincidenceHits_, bh1hits_, bh2hits_, bh3hits_, bh4hits_, m1hits_, m2hits_, m3hits_, s1hits_, s2hits_, s3hits_, and s4hits_.
Referenced by hcaltb::HcalTBTDCUnpacker::reconstructTiming().
void HcalTBTiming::setTimes | ( | const double | trigger_time, |
const double | ttc_l1a_time, | ||
const double | laser_flash, | ||
const double | qie_phase, | ||
const double | TOF1S_time, | ||
const double | TOF1J_time, | ||
const double | TOF2S_time, | ||
const double | TOF2J_time | ||
) |
Definition at line 29 of file HcalTBTiming.cc.
References laserFlash_, qiePhase_, TOF1Jtime_, TOF1Stime_, TOF2Jtime_, TOF2Stime_, triggerTime_, and ttcL1Atime_.
Referenced by hcaltb::HcalTBTDCUnpacker::reconstructTiming().
{ triggerTime_ = trigger_time; ttcL1Atime_ = ttc_l1a_time; laserFlash_ = laser_flash; qiePhase_ = qie_phase; TOF1Stime_ = TOF1S_time; TOF1Jtime_ = TOF1J_time; TOF2Stime_ = TOF2S_time; TOF2Jtime_ = TOF2J_time; }
void HcalTBTiming::setV775 | ( | int * | V775 | ) |
double HcalTBTiming::TOF1Jtime | ( | ) | const [inline] |
Returns the TOF1J time (zero otherwise)
Definition at line 38 of file HcalTBTiming.h.
References TOF1Jtime_.
Referenced by operator<<().
{ return TOF1Jtime_; }
double HcalTBTiming::TOF1Stime | ( | ) | const [inline] |
Returns the TOF1S time (zero otherwise)
Definition at line 36 of file HcalTBTiming.h.
References TOF1Stime_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return TOF1Stime_; }
double HcalTBTiming::TOF2Jtime | ( | ) | const [inline] |
Returns the TOF2J time (zero otherwise)
Definition at line 42 of file HcalTBTiming.h.
References TOF2Jtime_.
Referenced by operator<<().
{ return TOF2Jtime_; }
double HcalTBTiming::TOF2Stime | ( | ) | const [inline] |
Returns the TOF2S time (zero otherwise)
Definition at line 40 of file HcalTBTiming.h.
References TOF2Stime_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return TOF2Stime_; }
double HcalTBTiming::triggerTime | ( | ) | const [inline] |
Returns the trigger time in ns.
Definition at line 25 of file HcalTBTiming.h.
References triggerTime_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ return triggerTime_; }
double HcalTBTiming::ttcL1Atime | ( | ) | const [inline] |
Returns the Level 1 Accept time in ns.
Definition at line 28 of file HcalTBTiming.h.
References ttcL1Atime_.
Referenced by ZdcTBAnalysis::analyze(), operator<<(), and EcalTBH2TDCRecInfoAlgo::reconstruct().
{ return ttcL1Atime_; }
int HcalTBTiming::V775 | ( | int | index | ) | const [inline] |
Returns the hit in the specified channel.
Definition at line 98 of file HcalTBTiming.h.
References getHLTprescales::index, and V775_.
std::vector<double> HcalTBTiming::beamCoincidenceHits_ [private] |
Definition at line 137 of file HcalTBTiming.h.
Referenced by BeamCoincidenceCount(), BeamCoincidenceHits(), and setHits().
std::vector<double> HcalTBTiming::bh1hits_ [private] |
Definition at line 148 of file HcalTBTiming.h.
Referenced by BH1Count(), BH1Hits(), and setHits().
std::vector<double> HcalTBTiming::bh2hits_ [private] |
Definition at line 149 of file HcalTBTiming.h.
Referenced by BH2Count(), BH2Hits(), and setHits().
std::vector<double> HcalTBTiming::bh3hits_ [private] |
Definition at line 150 of file HcalTBTiming.h.
Referenced by BH3Count(), BH3Hits(), and setHits().
std::vector<double> HcalTBTiming::bh4hits_ [private] |
Definition at line 151 of file HcalTBTiming.h.
Referenced by BH4Count(), BH4Hits(), and setHits().
double HcalTBTiming::laserFlash_ [private] |
Definition at line 129 of file HcalTBTiming.h.
Referenced by laserFlash(), and setTimes().
std::vector<double> HcalTBTiming::m1hits_ [private] |
Definition at line 139 of file HcalTBTiming.h.
std::vector<double> HcalTBTiming::m2hits_ [private] |
Definition at line 140 of file HcalTBTiming.h.
std::vector<double> HcalTBTiming::m3hits_ [private] |
Definition at line 141 of file HcalTBTiming.h.
double HcalTBTiming::qiePhase_ [private] |
Definition at line 130 of file HcalTBTiming.h.
Referenced by qiePhase(), and setTimes().
std::vector<double> HcalTBTiming::s1hits_ [private] |
Definition at line 143 of file HcalTBTiming.h.
std::vector<double> HcalTBTiming::s2hits_ [private] |
Definition at line 144 of file HcalTBTiming.h.
std::vector<double> HcalTBTiming::s3hits_ [private] |
Definition at line 145 of file HcalTBTiming.h.
std::vector<double> HcalTBTiming::s4hits_ [private] |
Definition at line 146 of file HcalTBTiming.h.
double HcalTBTiming::TOF1Jtime_ [private] |
Definition at line 132 of file HcalTBTiming.h.
Referenced by setTimes(), and TOF1Jtime().
double HcalTBTiming::TOF1Stime_ [private] |
Definition at line 131 of file HcalTBTiming.h.
Referenced by setTimes(), and TOF1Stime().
double HcalTBTiming::TOF2Jtime_ [private] |
Definition at line 134 of file HcalTBTiming.h.
Referenced by setTimes(), and TOF2Jtime().
double HcalTBTiming::TOF2Stime_ [private] |
Definition at line 133 of file HcalTBTiming.h.
Referenced by setTimes(), and TOF2Stime().
double HcalTBTiming::triggerTime_ [private] |
Definition at line 127 of file HcalTBTiming.h.
Referenced by setTimes(), and triggerTime().
double HcalTBTiming::ttcL1Atime_ [private] |
Definition at line 128 of file HcalTBTiming.h.
Referenced by setTimes(), and ttcL1Atime().
int HcalTBTiming::V775_[32] [private] |
Definition at line 136 of file HcalTBTiming.h.
Referenced by HcalTBTiming(), setV775(), and V775().