CMS 3D CMS Logo

HcalTBTiming.h
Go to the documentation of this file.
1 #ifndef HCALTBTIMING_H
2 #define HCALTBTIMING_H 1
3 
4 #include <string>
5 #include <iostream>
6 #include <vector>
7 
17 class HcalTBTiming {
18 public:
19  HcalTBTiming();
20 
21  // Getter methods
22 
24  double triggerTime() const { return triggerTime_; }
25 
27  double ttcL1Atime() const { return ttcL1Atime_; }
28 
30  double laserFlash() const { return laserFlash_; }
32  double qiePhase() const { return qiePhase_; }
33 
35  double TOF1Stime() const { return TOF1Stime_; }
37  double TOF1Jtime() const { return TOF1Jtime_; }
39  double TOF2Stime() const { return TOF2Stime_; }
41  double TOF2Jtime() const { return TOF2Jtime_; }
42 
44  int BeamCoincidenceCount() const { return beamCoincidenceHits_.size(); }
46  int M1Count() const { return m1hits_.size(); }
48  int M2Count() const { return m2hits_.size(); }
50  int M3Count() const { return m3hits_.size(); }
51 
53  int S1Count() const { return s1hits_.size(); }
55  int S2Count() const { return s2hits_.size(); }
57  int S3Count() const { return s3hits_.size(); }
59  int S4Count() const { return s4hits_.size(); }
60 
62  int BH1Count() const { return bh1hits_.size(); }
64  int BH2Count() const { return bh2hits_.size(); }
66  int BH3Count() const { return bh3hits_.size(); }
68  int BH4Count() const { return bh4hits_.size(); }
69 
71  double BeamCoincidenceHits(int index) const { return beamCoincidenceHits_[index]; }
73  double M1Hits(int index) const { return m1hits_[index]; }
75  double M2Hits(int index) const { return m2hits_[index]; }
77  double M3Hits(int index) const { return m3hits_[index]; }
78 
80  double S1Hits(int index) const { return s1hits_[index]; }
82  double S2Hits(int index) const { return s2hits_[index]; }
84  double S3Hits(int index) const { return s3hits_[index]; }
86  double S4Hits(int index) const { return s4hits_[index]; }
87 
89  double BH1Hits(int index) const { return bh1hits_[index]; }
91  double BH2Hits(int index) const { return bh2hits_[index]; }
93  double BH3Hits(int index) const { return bh3hits_[index]; }
95  double BH4Hits(int index) const { return bh4hits_[index]; }
97  int V775(int index) const { return V775_[index]; }
98 
99  // Setter methods
100  void setTimes(const double trigger_time,
101  const double ttc_l1a_time,
102  const double laser_flash,
103  const double qie_phase,
104  const double TOF1S_time,
105  const double TOF1J_time,
106  const double TOF2S_time,
107  const double TOF2J_time);
108 
109  void setHits(const std::vector<double>& m1hits,
110  const std::vector<double>& m2hits,
111  const std::vector<double>& m3hits,
112  const std::vector<double>& s1hits,
113  const std::vector<double>& s2hits,
114  const std::vector<double>& s3hits,
115  const std::vector<double>& s4hits,
116  const std::vector<double>& bh1hits,
117  const std::vector<double>& bh2hits,
118  const std::vector<double>& bh3hits,
119  const std::vector<double>& bh4hits,
120  const std::vector<double>& beamCoincidenceHits);
121 
122  void setV775(int* V775);
123 
124 private:
125  double triggerTime_;
126  double ttcL1Atime_;
127  double laserFlash_;
128  double qiePhase_;
129  double TOF1Stime_;
130  double TOF1Jtime_;
131  double TOF2Stime_;
132  double TOF2Jtime_;
133 
134  int V775_[32];
135  std::vector<double> beamCoincidenceHits_;
136 
137  std::vector<double> m1hits_;
138  std::vector<double> m2hits_;
139  std::vector<double> m3hits_;
140 
141  std::vector<double> s1hits_;
142  std::vector<double> s2hits_;
143  std::vector<double> s3hits_;
144  std::vector<double> s4hits_;
145 
146  std::vector<double> bh1hits_;
147  std::vector<double> bh2hits_;
148  std::vector<double> bh3hits_;
149  std::vector<double> bh4hits_;
150 };
151 
152 std::ostream& operator<<(std::ostream& s, const HcalTBTiming& htbtmg);
153 
154 #endif
HcalTBTiming::M2Count
int M2Count() const
Returns the number of hits from muon veto scintillator M2.
Definition: HcalTBTiming.h:48
HcalTBTiming::BH3Count
int BH3Count() const
Returns the number of hits from beam halo counter right from particle view.
Definition: HcalTBTiming.h:66
HcalTBTiming::S1Hits
double S1Hits(int index) const
Returns the indexed hit time from scintillator S1, which is 12cm x 12cm.
Definition: HcalTBTiming.h:80
HcalTBTiming::s4hits_
std::vector< double > s4hits_
Definition: HcalTBTiming.h:144
HcalTBTiming::S2Count
int S2Count() const
Returns the number of hits from scintillator S2, which is 4cm x 4cm.
Definition: HcalTBTiming.h:55
HcalTBTiming::beamCoincidenceHits_
std::vector< double > beamCoincidenceHits_
Definition: HcalTBTiming.h:135
HcalTBTiming::S2Hits
double S2Hits(int index) const
Returns the indexed hit time from scintillator S2, which is 4cm x 4cm.
Definition: HcalTBTiming.h:82
HcalTBTiming::s3hits_
std::vector< double > s3hits_
Definition: HcalTBTiming.h:143
HcalTBTiming::setHits
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)
Definition: HcalTBTiming.cc:48
HcalTBTiming::setTimes
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)
Definition: HcalTBTiming.cc:30
HcalTBTiming::M1Count
int M1Count() const
Returns the number of hits from muon veto scintillator M1.
Definition: HcalTBTiming.h:46
HcalTBTiming::s1hits_
std::vector< double > s1hits_
Definition: HcalTBTiming.h:141
HcalTBTiming::BH2Count
int BH2Count() const
Returns the number of hits from beam halo counter left from particle view.
Definition: HcalTBTiming.h:64
HcalTBTiming::S1Count
int S1Count() const
Returns the number of hits from scintillator S1, which is 12cm x 12cm.
Definition: HcalTBTiming.h:53
HcalTBTiming::S4Count
int S4Count() const
Returns the number of hits from scintillator S4, which is 12cm x 12cm.
Definition: HcalTBTiming.h:59
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalTBTiming::m3hits_
std::vector< double > m3hits_
Definition: HcalTBTiming.h:139
HcalTBTiming::TOF1Stime_
double TOF1Stime_
Definition: HcalTBTiming.h:129
HcalTBTiming::BeamCoincidenceHits
double BeamCoincidenceHits(int index) const
Returns the indexed hit time from Beam Coincidence.
Definition: HcalTBTiming.h:71
HcalTBTiming::S4Hits
double S4Hits(int index) const
Returns the indexed hit time from scintillator S4, which is 12cm x 12cm.
Definition: HcalTBTiming.h:86
HcalTBTiming::qiePhase
double qiePhase() const
Returns the QIE phase for 2003 testbeam data (zero otherwise)
Definition: HcalTBTiming.h:32
HcalTBTiming::m2hits_
std::vector< double > m2hits_
Definition: HcalTBTiming.h:138
HcalTBTiming::bh4hits_
std::vector< double > bh4hits_
Definition: HcalTBTiming.h:149
HcalTBTiming
Definition: HcalTBTiming.h:17
HcalTBTiming::bh2hits_
std::vector< double > bh2hits_
Definition: HcalTBTiming.h:147
HcalTBTiming::BH4Hits
double BH4Hits(int index) const
Returns the indexed hit time from beam halo counter DOWN HORZINTAL.
Definition: HcalTBTiming.h:95
HcalTBTiming::laserFlash
double laserFlash() const
Returns the laser activation time in ns.
Definition: HcalTBTiming.h:30
HcalTBTiming::S3Hits
double S3Hits(int index) const
Returns the indexed hit time from scintillator S3, which is 2cm x 2cm.
Definition: HcalTBTiming.h:84
HcalTBTiming::ttcL1Atime_
double ttcL1Atime_
Definition: HcalTBTiming.h:126
HcalTBTiming::BH1Count
int BH1Count() const
Returns the number of hits from beam halo counter up horizontal.
Definition: HcalTBTiming.h:62
HcalTBTiming::qiePhase_
double qiePhase_
Definition: HcalTBTiming.h:128
HcalTBTiming::M1Hits
double M1Hits(int index) const
Returns the indexed hit time from muon veto scintillator M1.
Definition: HcalTBTiming.h:73
HcalTBTiming::M3Count
int M3Count() const
Returns the number of hits from muon veto scintillator M3.
Definition: HcalTBTiming.h:50
HcalTBTiming::m1hits_
std::vector< double > m1hits_
Definition: HcalTBTiming.h:137
HcalTBTiming::TOF1Jtime
double TOF1Jtime() const
Returns the TOF1J time (zero otherwise)
Definition: HcalTBTiming.h:37
HcalTBTiming::V775_
int V775_[32]
Definition: HcalTBTiming.h:134
HcalTBTiming::BH3Hits
double BH3Hits(int index) const
Returns the indexed hit time from beam halo counter BEAM RIGHT FROM PARTICLE'S VIEW.
Definition: HcalTBTiming.h:93
HcalTBTiming::setV775
void setV775(int *V775)
Definition: HcalTBTiming.cc:76
HcalTBTiming::triggerTime
double triggerTime() const
Returns the trigger time in ns.
Definition: HcalTBTiming.h:24
HcalTBTiming::S3Count
int S3Count() const
Returns the number of hits from scintillator S3, which is 2cm x 2cm.
Definition: HcalTBTiming.h:57
HcalTBTiming::M2Hits
double M2Hits(int index) const
Returns the indexed hit time from muon veto scintillator M2.
Definition: HcalTBTiming.h:75
HcalTBTiming::TOF2Jtime
double TOF2Jtime() const
Returns the TOF2J time (zero otherwise)
Definition: HcalTBTiming.h:41
HcalTBTiming::BH1Hits
double BH1Hits(int index) const
Returns the indexed hit time from beam halo counter UP HORIZONTAL.
Definition: HcalTBTiming.h:89
HcalTBTiming::bh3hits_
std::vector< double > bh3hits_
Definition: HcalTBTiming.h:148
HcalTBTiming::M3Hits
double M3Hits(int index) const
Returns the indexed hit time from muon veto scintillator M3.
Definition: HcalTBTiming.h:77
HcalTBTiming::TOF1Jtime_
double TOF1Jtime_
Definition: HcalTBTiming.h:130
HcalTBTiming::laserFlash_
double laserFlash_
Definition: HcalTBTiming.h:127
HcalTBTiming::ttcL1Atime
double ttcL1Atime() const
Returns the Level 1 Accept time in ns.
Definition: HcalTBTiming.h:27
HcalTBTiming::TOF2Jtime_
double TOF2Jtime_
Definition: HcalTBTiming.h:132
HcalTBTiming::BeamCoincidenceCount
int BeamCoincidenceCount() const
Returns the number of hits from Beam Coincidence.
Definition: HcalTBTiming.h:44
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HcalTBTiming::TOF2Stime_
double TOF2Stime_
Definition: HcalTBTiming.h:131
HcalTBTiming::triggerTime_
double triggerTime_
Definition: HcalTBTiming.h:125
HcalTBTiming::bh1hits_
std::vector< double > bh1hits_
Definition: HcalTBTiming.h:146
HcalTBTiming::HcalTBTiming
HcalTBTiming()
Definition: HcalTBTiming.cc:5
HcalTBTiming::TOF2Stime
double TOF2Stime() const
Returns the TOF2S time (zero otherwise)
Definition: HcalTBTiming.h:39
operator<<
std::ostream & operator<<(std::ostream &s, const HcalTBTiming &htbtmg)
HcalTBTiming::s2hits_
std::vector< double > s2hits_
Definition: HcalTBTiming.h:142
HcalTBTiming::BH4Count
int BH4Count() const
Returns the number of hits from beam halo counter down horizontal.
Definition: HcalTBTiming.h:68
HcalTBTiming::TOF1Stime
double TOF1Stime() const
Returns the TOF1S time (zero otherwise)
Definition: HcalTBTiming.h:35
HcalTBTiming::BH2Hits
double BH2Hits(int index) const
Returns the indexed hit time from from beam halo counter BEAM LEFT FROM PARTICLE'S VIEW.
Definition: HcalTBTiming.h:91
HcalTBTiming::V775
int V775(int index) const
Returns the hit in the specified channel.
Definition: HcalTBTiming.h:97