#include <TBDataFormats/HcalTBObjects/interface/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] |
Definition at line 18 of file HcalTBTiming.h.
HcalTBTiming::HcalTBTiming | ( | ) |
Definition at line 5 of file HcalTBTiming.cc.
00005 : 00006 triggerTime_(0), 00007 ttcL1Atime_(0), 00008 laserFlash_(0), 00009 qiePhase_(0), 00010 TOF1Stime_(0), 00011 TOF1Jtime_(0), 00012 TOF2Stime_(0), 00013 TOF2Jtime_(0), 00014 beamCoincidenceHits_(), 00015 m1hits_(), 00016 m2hits_(), 00017 m3hits_(), 00018 s1hits_(), 00019 s2hits_(), 00020 s3hits_(), 00021 s4hits_(), 00022 bh1hits_(), 00023 bh2hits_(), 00024 bh3hits_(), 00025 bh4hits_() { 00026 for (int i=0;i<32;i++)V775_[i]=-1; 00027 }
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().
00045 { 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_.
Referenced by ZdcTBAnalysis::analyze(), operator<<(), and EcalTBH2TDCRecInfoAlgo::reconstruct().
00072 { 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<<().
00063 { 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_.
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<<().
00065 { 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_.
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<<().
00067 { 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_.
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<<().
00069 { 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_.
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<<().
00031 { 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<<().
00047 { 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 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<<().
00049 { 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 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<<().
00051 { 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 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<<().
00033 { 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<<().
00054 { 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 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<<().
00056 { 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 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<<().
00058 { 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 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<<().
00060 { 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 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().
00058 { 00059 m1hits_ = m1hits; 00060 m2hits_ = m2hits; 00061 m3hits_ = m3hits; 00062 00063 s1hits_ = s1hits; 00064 s2hits_ = s2hits; 00065 s3hits_ = s3hits; 00066 s4hits_ = s4hits; 00067 00068 bh1hits_ = bh1hits; 00069 bh2hits_ = bh2hits; 00070 bh3hits_ = bh3hits; 00071 bh4hits_ = bh4hits; 00072 beamCoincidenceHits_ = beamCoincidenceHits; 00073 }
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().
00036 { 00037 triggerTime_ = trigger_time; 00038 ttcL1Atime_ = ttc_l1a_time; 00039 laserFlash_ = laser_flash; 00040 qiePhase_ = qie_phase; 00041 TOF1Stime_ = TOF1S_time; 00042 TOF1Jtime_ = TOF1J_time; 00043 TOF2Stime_ = TOF2S_time; 00044 TOF2Jtime_ = TOF2J_time; 00045 }
double HcalTBTiming::TOF1Jtime | ( | ) | const [inline] |
Returns the TOF1J time (zero otherwise).
Definition at line 38 of file HcalTBTiming.h.
References TOF1Jtime_.
Referenced by operator<<().
00038 { 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<<().
00036 { 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<<().
00042 { 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<<().
00040 { 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<<().
00025 { 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().
00028 { return ttcL1Atime_; }
Returns the hit in the specified channel.
Definition at line 98 of file HcalTBTiming.h.
References 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] |
std::vector<double> HcalTBTiming::bh2hits_ [private] |
std::vector<double> HcalTBTiming::bh3hits_ [private] |
std::vector<double> HcalTBTiming::bh4hits_ [private] |
double HcalTBTiming::laserFlash_ [private] |
std::vector<double> HcalTBTiming::m1hits_ [private] |
std::vector<double> HcalTBTiming::m2hits_ [private] |
std::vector<double> HcalTBTiming::m3hits_ [private] |
double HcalTBTiming::qiePhase_ [private] |
std::vector<double> HcalTBTiming::s1hits_ [private] |
std::vector<double> HcalTBTiming::s2hits_ [private] |
std::vector<double> HcalTBTiming::s3hits_ [private] |
std::vector<double> HcalTBTiming::s4hits_ [private] |
double HcalTBTiming::TOF1Jtime_ [private] |
double HcalTBTiming::TOF1Stime_ [private] |
double HcalTBTiming::TOF2Jtime_ [private] |
double HcalTBTiming::TOF2Stime_ [private] |
double HcalTBTiming::triggerTime_ [private] |
double HcalTBTiming::ttcL1Atime_ [private] |
int HcalTBTiming::V775_[32] [private] |