CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HcalTBTiming Class Reference

#include <HcalTBTiming.h>

Public Member Functions

int BeamCoincidenceCount () const
 Returns the number of hits from Beam Coincidence. More...
 
double BeamCoincidenceHits (int index) const
 Returns the indexed hit time from Beam Coincidence. More...
 
int BH1Count () const
 Returns the number of hits from beam halo counter up horizontal. More...
 
double BH1Hits (int index) const
 Returns the indexed hit time from beam halo counter UP HORIZONTAL. More...
 
int BH2Count () const
 Returns the number of hits from beam halo counter left from particle view. More...
 
double BH2Hits (int index) const
 Returns the indexed hit time from from beam halo counter BEAM LEFT FROM PARTICLE'S VIEW. More...
 
int BH3Count () const
 Returns the number of hits from beam halo counter right from particle view. More...
 
double BH3Hits (int index) const
 Returns the indexed hit time from beam halo counter BEAM RIGHT FROM PARTICLE'S VIEW. More...
 
int BH4Count () const
 Returns the number of hits from beam halo counter down horizontal. More...
 
double BH4Hits (int index) const
 Returns the indexed hit time from beam halo counter DOWN HORZINTAL. More...
 
 HcalTBTiming ()
 
double laserFlash () const
 Returns the laser activation time in ns. More...
 
int M1Count () const
 Returns the number of hits from muon veto scintillator M1. More...
 
double M1Hits (int index) const
 Returns the indexed hit time from muon veto scintillator M1. More...
 
int M2Count () const
 Returns the number of hits from muon veto scintillator M2. More...
 
double M2Hits (int index) const
 Returns the indexed hit time from muon veto scintillator M2. More...
 
int M3Count () const
 Returns the number of hits from muon veto scintillator M3. More...
 
double M3Hits (int index) const
 Returns the indexed hit time from muon veto scintillator M3. More...
 
double qiePhase () const
 Returns the QIE phase for 2003 testbeam data (zero otherwise) More...
 
int S1Count () const
 Returns the number of hits from scintillator S1, which is 12cm x 12cm. More...
 
double S1Hits (int index) const
 Returns the indexed hit time from scintillator S1, which is 12cm x 12cm. More...
 
int S2Count () const
 Returns the number of hits from scintillator S2, which is 4cm x 4cm. More...
 
double S2Hits (int index) const
 Returns the indexed hit time from scintillator S2, which is 4cm x 4cm. More...
 
int S3Count () const
 Returns the number of hits from scintillator S3, which is 2cm x 2cm. More...
 
double S3Hits (int index) const
 Returns the indexed hit time from scintillator S3, which is 2cm x 2cm. More...
 
int S4Count () const
 Returns the number of hits from scintillator S4, which is 12cm x 12cm. More...
 
double S4Hits (int index) const
 Returns the indexed hit time from scintillator S4, which is 12cm x 12cm. More...
 
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) More...
 
double TOF1Stime () const
 Returns the TOF1S time (zero otherwise) More...
 
double TOF2Jtime () const
 Returns the TOF2J time (zero otherwise) More...
 
double TOF2Stime () const
 Returns the TOF2S time (zero otherwise) More...
 
double triggerTime () const
 Returns the trigger time in ns. More...
 
double ttcL1Atime () const
 Returns the Level 1 Accept time in ns. More...
 
int V775 (int index) const
 Returns the hit in the specified channel. More...
 

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/25 17:25:30
Revision:
1.8
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_.

5  :
6  triggerTime_(0),
7  ttcL1Atime_(0),
8  laserFlash_(0),
9  qiePhase_(0),
10  TOF1Stime_(0),
11  TOF1Jtime_(0),
12  TOF2Stime_(0),
13  TOF2Jtime_(0),
15  m1hits_(),
16  m2hits_(),
17  m3hits_(),
18  s1hits_(),
19  s2hits_(),
20  s3hits_(),
21  s4hits_(),
22  bh1hits_(),
23  bh2hits_(),
24  bh3hits_(),
25  bh4hits_() {
26  for (int i=0;i<32;i++)V775_[i]=-1;
27  }
int i
Definition: DBlmapReader.cc:9
int V775_[32]
Definition: HcalTBTiming.h:136
double TOF2Stime_
Definition: HcalTBTiming.h:133
double laserFlash_
Definition: HcalTBTiming.h:129
double TOF1Jtime_
Definition: HcalTBTiming.h:132
double qiePhase_
Definition: HcalTBTiming.h:130
double triggerTime_
Definition: HcalTBTiming.h:127
std::vector< double > s2hits_
Definition: HcalTBTiming.h:144
double TOF2Jtime_
Definition: HcalTBTiming.h:134
std::vector< double > bh1hits_
Definition: HcalTBTiming.h:148
std::vector< double > s1hits_
Definition: HcalTBTiming.h:143
std::vector< double > m3hits_
Definition: HcalTBTiming.h:141
std::vector< double > s4hits_
Definition: HcalTBTiming.h:146
std::vector< double > s3hits_
Definition: HcalTBTiming.h:145
double ttcL1Atime_
Definition: HcalTBTiming.h:128
std::vector< double > beamCoincidenceHits_
Definition: HcalTBTiming.h:137
std::vector< double > m1hits_
Definition: HcalTBTiming.h:139
double TOF1Stime_
Definition: HcalTBTiming.h:131
std::vector< double > bh4hits_
Definition: HcalTBTiming.h:151
std::vector< double > bh2hits_
Definition: HcalTBTiming.h:149
std::vector< double > m2hits_
Definition: HcalTBTiming.h:140
std::vector< double > bh3hits_
Definition: HcalTBTiming.h:150

Member Function Documentation

int HcalTBTiming::BeamCoincidenceCount ( ) const
inline

Returns the number of hits from Beam Coincidence.

Definition at line 45 of file HcalTBTiming.h.

Referenced by operator<<(), and EcalTBH2TDCRecInfoAlgo::reconstruct().

double HcalTBTiming::BeamCoincidenceHits ( int  index) const
inline

Returns the indexed hit time from Beam Coincidence.

Definition at line 72 of file HcalTBTiming.h.

Referenced by operator<<(), and EcalTBH2TDCRecInfoAlgo::reconstruct().

int HcalTBTiming::BH1Count ( ) const
inline

Returns the number of hits from beam halo counter up horizontal.

Definition at line 63 of file HcalTBTiming.h.

Referenced by operator<<().

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.

Referenced by 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.

Referenced by operator<<().

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.

Referenced by 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.

Referenced by operator<<().

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.

Referenced by 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.

Referenced by operator<<().

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.

Referenced by operator<<().

double HcalTBTiming::laserFlash ( ) const
inline

Returns the laser activation time in ns.

Definition at line 31 of file HcalTBTiming.h.

Referenced by operator<<().

int HcalTBTiming::M1Count ( ) const
inline

Returns the number of hits from muon veto scintillator M1.

Definition at line 47 of file HcalTBTiming.h.

Referenced by operator<<().

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.

Referenced by operator<<().

int HcalTBTiming::M2Count ( ) const
inline

Returns the number of hits from muon veto scintillator M2.

Definition at line 49 of file HcalTBTiming.h.

Referenced by operator<<().

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.

Referenced by operator<<().

int HcalTBTiming::M3Count ( ) const
inline

Returns the number of hits from muon veto scintillator M3.

Definition at line 51 of file HcalTBTiming.h.

Referenced by operator<<().

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.

Referenced by operator<<().

double HcalTBTiming::qiePhase ( ) const
inline

Returns the QIE phase for 2003 testbeam data (zero otherwise)

Definition at line 33 of file HcalTBTiming.h.

Referenced by operator<<().

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.

Referenced by operator<<().

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.

Referenced by 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.

Referenced by operator<<().

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.

Referenced by 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.

Referenced by operator<<().

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.

Referenced by 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.

Referenced by operator<<().

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.

Referenced by 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_.

58  {
59  m1hits_ = m1hits;
60  m2hits_ = m2hits;
61  m3hits_ = m3hits;
62 
63  s1hits_ = s1hits;
64  s2hits_ = s2hits;
65  s3hits_ = s3hits;
66  s4hits_ = s4hits;
67 
68  bh1hits_ = bh1hits;
69  bh2hits_ = bh2hits;
70  bh3hits_ = bh3hits;
71  bh4hits_ = bh4hits;
72  beamCoincidenceHits_ = beamCoincidenceHits;
73  }
std::vector< double > s2hits_
Definition: HcalTBTiming.h:144
std::vector< double > bh1hits_
Definition: HcalTBTiming.h:148
std::vector< double > s1hits_
Definition: HcalTBTiming.h:143
std::vector< double > m3hits_
Definition: HcalTBTiming.h:141
std::vector< double > s4hits_
Definition: HcalTBTiming.h:146
std::vector< double > s3hits_
Definition: HcalTBTiming.h:145
std::vector< double > beamCoincidenceHits_
Definition: HcalTBTiming.h:137
std::vector< double > m1hits_
Definition: HcalTBTiming.h:139
std::vector< double > bh4hits_
Definition: HcalTBTiming.h:151
std::vector< double > bh2hits_
Definition: HcalTBTiming.h:149
std::vector< double > m2hits_
Definition: HcalTBTiming.h:140
std::vector< double > bh3hits_
Definition: HcalTBTiming.h:150
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_.

36  {
37  triggerTime_ = trigger_time;
38  ttcL1Atime_ = ttc_l1a_time;
39  laserFlash_ = laser_flash;
40  qiePhase_ = qie_phase;
41  TOF1Stime_ = TOF1S_time;
42  TOF1Jtime_ = TOF1J_time;
43  TOF2Stime_ = TOF2S_time;
44  TOF2Jtime_ = TOF2J_time;
45  }
double TOF2Stime_
Definition: HcalTBTiming.h:133
double laserFlash_
Definition: HcalTBTiming.h:129
double TOF1Jtime_
Definition: HcalTBTiming.h:132
double qiePhase_
Definition: HcalTBTiming.h:130
double triggerTime_
Definition: HcalTBTiming.h:127
double TOF2Jtime_
Definition: HcalTBTiming.h:134
double ttcL1Atime_
Definition: HcalTBTiming.h:128
double TOF1Stime_
Definition: HcalTBTiming.h:131
void HcalTBTiming::setV775 ( int *  V775)

Definition at line 75 of file HcalTBTiming.cc.

References i, and V775_.

76  {
77  for (int i=0;i<32;i++)V775_[i]=V775[i];
78  }
int i
Definition: DBlmapReader.cc:9
int V775_[32]
Definition: HcalTBTiming.h:136
int V775(int index) const
Returns the hit in the specified channel.
Definition: HcalTBTiming.h:98
double HcalTBTiming::TOF1Jtime ( ) const
inline

Returns the TOF1J time (zero otherwise)

Definition at line 38 of file HcalTBTiming.h.

Referenced by operator<<().

double HcalTBTiming::TOF1Stime ( ) const
inline

Returns the TOF1S time (zero otherwise)

Definition at line 36 of file HcalTBTiming.h.

Referenced by operator<<().

double HcalTBTiming::TOF2Jtime ( ) const
inline

Returns the TOF2J time (zero otherwise)

Definition at line 42 of file HcalTBTiming.h.

Referenced by operator<<().

double HcalTBTiming::TOF2Stime ( ) const
inline

Returns the TOF2S time (zero otherwise)

Definition at line 40 of file HcalTBTiming.h.

Referenced by operator<<().

double HcalTBTiming::triggerTime ( ) const
inline

Returns the trigger time in ns.

Definition at line 25 of file HcalTBTiming.h.

Referenced by operator<<().

double HcalTBTiming::ttcL1Atime ( ) const
inline

Returns the Level 1 Accept time in ns.

Definition at line 28 of file HcalTBTiming.h.

Referenced by operator<<(), and EcalTBH2TDCRecInfoAlgo::reconstruct().

int HcalTBTiming::V775 ( int  index) const
inline

Returns the hit in the specified channel.

Definition at line 98 of file HcalTBTiming.h.

Member Data Documentation

std::vector<double> HcalTBTiming::beamCoincidenceHits_
private

Definition at line 137 of file HcalTBTiming.h.

Referenced by setHits().

std::vector<double> HcalTBTiming::bh1hits_
private

Definition at line 148 of file HcalTBTiming.h.

Referenced by setHits().

std::vector<double> HcalTBTiming::bh2hits_
private

Definition at line 149 of file HcalTBTiming.h.

Referenced by setHits().

std::vector<double> HcalTBTiming::bh3hits_
private

Definition at line 150 of file HcalTBTiming.h.

Referenced by setHits().

std::vector<double> HcalTBTiming::bh4hits_
private

Definition at line 151 of file HcalTBTiming.h.

Referenced by setHits().

double HcalTBTiming::laserFlash_
private

Definition at line 129 of file HcalTBTiming.h.

Referenced by setTimes().

std::vector<double> HcalTBTiming::m1hits_
private

Definition at line 139 of file HcalTBTiming.h.

Referenced by setHits().

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

Definition at line 140 of file HcalTBTiming.h.

Referenced by setHits().

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

Definition at line 141 of file HcalTBTiming.h.

Referenced by setHits().

double HcalTBTiming::qiePhase_
private

Definition at line 130 of file HcalTBTiming.h.

Referenced by setTimes().

std::vector<double> HcalTBTiming::s1hits_
private

Definition at line 143 of file HcalTBTiming.h.

Referenced by setHits().

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

Definition at line 144 of file HcalTBTiming.h.

Referenced by setHits().

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

Definition at line 145 of file HcalTBTiming.h.

Referenced by setHits().

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

Definition at line 146 of file HcalTBTiming.h.

Referenced by setHits().

double HcalTBTiming::TOF1Jtime_
private

Definition at line 132 of file HcalTBTiming.h.

Referenced by setTimes().

double HcalTBTiming::TOF1Stime_
private

Definition at line 131 of file HcalTBTiming.h.

Referenced by setTimes().

double HcalTBTiming::TOF2Jtime_
private

Definition at line 134 of file HcalTBTiming.h.

Referenced by setTimes().

double HcalTBTiming::TOF2Stime_
private

Definition at line 133 of file HcalTBTiming.h.

Referenced by setTimes().

double HcalTBTiming::triggerTime_
private

Definition at line 127 of file HcalTBTiming.h.

Referenced by setTimes().

double HcalTBTiming::ttcL1Atime_
private

Definition at line 128 of file HcalTBTiming.h.

Referenced by setTimes().

int HcalTBTiming::V775_[32]
private

Definition at line 136 of file HcalTBTiming.h.

Referenced by HcalTBTiming(), and setV775().