CMS 3D CMS Logo

HcalTBTiming Class Reference

This class contains timing information unpacked from the Time-to-Digital Converter (TDC). More...

#include <TBDataFormats/HcalTBObjects/interface/HcalTBTiming.h>

List of all members.

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]


Detailed Description

This class contains timing information unpacked from the Time-to-Digital Converter (TDC).

Date
2006/08/28 16:40:39
Revision
1.9
Author:
P. Dudero - Minnesota

Definition at line 18 of file HcalTBTiming.h.


Constructor & Destructor Documentation

HcalTBTiming::HcalTBTiming (  ) 

Definition at line 5 of file HcalTBTiming.cc.

References i, and V775_.

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   }


Member Function Documentation

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<<().

00090 { return bh1hits_[index];   }

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<<().

00092 { return bh2hits_[index];   }

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<<().

00094 { return bh3hits_[index];   }

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<<().

00096 { return bh4hits_[index];   }

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<<().

00074 { return m1hits_[index];   }

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<<().

00076 { return m2hits_[index];   }

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<<().

00078 { return m3hits_[index];   }

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<<().

00081 { return s1hits_[index];   }

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<<().

00083 { return s2hits_[index];   }

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<<().

00085 { return s3hits_[index];   }

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<<().

00087 { return s4hits_[index];   }

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   }

void HcalTBTiming::setV775 ( int V775  ) 

Definition at line 75 of file HcalTBTiming.cc.

References i, and V775_.

Referenced by hcaltb::HcalTBTDCUnpacker::unpackHits().

00076  {
00077     for (int i=0;i<32;i++)V775_[i]=V775[i];
00078  }

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_;      }

int HcalTBTiming::V775 ( int  index  )  const [inline]

Returns the hit in the specified channel.

Definition at line 98 of file HcalTBTiming.h.

References V775_.

00098 {return V775_[index];}


Member Data Documentation

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.

Referenced by M1Count(), M1Hits(), and setHits().

std::vector<double> HcalTBTiming::m2hits_ [private]

Definition at line 140 of file HcalTBTiming.h.

Referenced by M2Count(), M2Hits(), and setHits().

std::vector<double> HcalTBTiming::m3hits_ [private]

Definition at line 141 of file HcalTBTiming.h.

Referenced by M3Count(), M3Hits(), and setHits().

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.

Referenced by S1Count(), S1Hits(), and setHits().

std::vector<double> HcalTBTiming::s2hits_ [private]

Definition at line 144 of file HcalTBTiming.h.

Referenced by S2Count(), S2Hits(), and setHits().

std::vector<double> HcalTBTiming::s3hits_ [private]

Definition at line 145 of file HcalTBTiming.h.

Referenced by S3Count(), S3Hits(), and setHits().

std::vector<double> HcalTBTiming::s4hits_ [private]

Definition at line 146 of file HcalTBTiming.h.

Referenced by S4Count(), S4Hits(), and setHits().

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:23:58 2009 for CMSSW by  doxygen 1.5.4