CMS 3D CMS Logo

EMTFHit.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1TMuonPhase2_EMTFHit_h
2 #define DataFormats_L1TMuonPhase2_EMTFHit_h
3 
4 #include <cstdint>
5 #include <vector>
6 
8 
9 namespace l1t::phase2 {
10 
11  class EMTFHit {
12  public:
13  EMTFHit();
14  ~EMTFHit() = default;
15 
16  // Setters
17  void setId(uint16_t aId) { id_ = aId; }
18 
19  void setRawDetId(uint32_t aRawDetId) { raw_det_id_ = aRawDetId; }
20  void setSubsystem(int16_t aSubsystem) { subsystem_ = aSubsystem; }
21  void setEndcap(int16_t aEndcap) { endcap_ = aEndcap; }
22  void setSector(int16_t aSector) { sector_ = aSector; }
23  void setSubsector(int16_t aSubsector) { subsector_ = aSubsector; }
24  void setStation(int16_t aStation) { station_ = aStation; }
25  void setRing(int16_t aRing) { ring_ = aRing; }
26  void setRoll(int16_t aRoll) { roll_ = aRoll; }
27  void setLayer(int16_t aLayer) { layer_ = aLayer; }
28  void setChamber(int16_t aChamber) { chamber_ = aChamber; }
29 
30  void setCscId(int16_t aCscid) { csc_id_ = aCscid; }
31  void setCscFR(int16_t aCscfr) { csc_fr_ = aCscfr; }
32 
33  void setStrip(int16_t aStrip) { strip_ = aStrip; }
34  void setStripLo(int16_t aStripLo) { strip_lo_ = aStripLo; }
35  void setStripHi(int16_t aStripHi) { strip_hi_ = aStripHi; }
36  void setStripQuart(int16_t aStripQuart) { strip_quart_ = aStripQuart; } // Run 3
37  void setStripEighth(int16_t aStripEighth) { strip_eighth_ = aStripEighth; } // Run 3
38  void setStripQuartBit(int16_t aStripQuartBit) { strip_quart_bit_ = aStripQuartBit; } // Run 3
39  void setStripEighthBit(int16_t aStripEighthBit) { strip_eighth_bit_ = aStripEighthBit; } // Run 3
40 
41  void setWire1(int16_t aWire1) { wire1_ = aWire1; }
42  void setWire2(int16_t aWire2) { wire2_ = aWire2; }
43 
44  void setBend(int16_t aBend) { bend_ = aBend; }
45  void setSlope(int16_t aSlope) { slope_ = aSlope; }
46 
47  void setBx(int16_t aBx) { bx_ = aBx; }
48  void setSubbx(int16_t aSubbx) { subbx_ = aSubbx; }
49 
50  void setQuality(int16_t aQuality) { quality_ = aQuality; }
51  void setPattern(int16_t aPattern) { pattern_ = aPattern; }
52 
53  void setGlobPhi(float aGlobPhi) { glob_phi_ = aGlobPhi; }
54  void setGlobTheta(float aGlobTheta) { glob_theta_ = aGlobTheta; }
55  void setGlobPerp(float aGlobPerp) { glob_perp_ = aGlobPerp; }
56  void setGlobZ(float aGlobZ) { glob_z_ = aGlobZ; }
57  void setGlobTime(float aGlobTime) { glob_time_ = aGlobTime; }
58 
59  void setEmtfChamber(int16_t aEmtfChamber) { emtf_chamber_ = aEmtfChamber; }
60  void setEmtfSegment(int16_t aEmtfSegment) { emtf_segment_ = aEmtfSegment; }
61  void setEmtfPhi(int16_t aEmtfPhi) { emtf_phi_ = aEmtfPhi; }
62  void setEmtfBend(int16_t aEmtfBend) { emtf_bend_ = aEmtfBend; }
63  void setEmtfTheta1(int16_t aEmtfTheta1) { emtf_theta1_ = aEmtfTheta1; }
64  void setEmtfTheta2(int16_t aEmtfTheta2) { emtf_theta2_ = aEmtfTheta2; }
65  void setEmtfQual1(int16_t aEmtfQual1) { emtf_qual1_ = aEmtfQual1; }
66  void setEmtfQual2(int16_t aEmtfQual2) { emtf_qual2_ = aEmtfQual2; }
67  void setEmtfTime(int16_t aEmtfTime) { emtf_time_ = aEmtfTime; }
68  void setEmtfSite(int16_t aEmtfSite) { emtf_site_ = aEmtfSite; }
69  void setEmtfHost(int16_t aEmtfHost) { emtf_host_ = aEmtfHost; }
70  void setEmtfZones(int16_t aEmtfZones) { emtf_zones_ = aEmtfZones; }
71  void setEmtfTimezones(int16_t aEmtfTimezones) { emtf_timezones_ = aEmtfTimezones; }
72 
73  void setFlagNeighbor(bool aNeighbor) { flag_neighbor_ = aNeighbor; }
74  void setFlagSubstitute(bool aSubstitute) { flag_substitute_ = aSubstitute; }
75  void setFlagValid(bool aValid) { flag_valid_ = aValid; }
76 
77  // Getters
78  uint16_t id() const { return id_; }
79 
80  uint32_t rawDetId() const { return raw_det_id_; }
81  int16_t subsystem() const { return subsystem_; }
82  int16_t endcap() const { return endcap_; }
83  int16_t sector() const { return sector_; }
84  int16_t subsector() const { return subsector_; }
85  int16_t station() const { return station_; }
86  int16_t ring() const { return ring_; }
87  int16_t roll() const { return roll_; }
88  int16_t layer() const { return layer_; }
89  int16_t chamber() const { return chamber_; }
90 
91  int16_t cscId() const { return csc_id_; }
92  int16_t cscFR() const { return csc_fr_; }
93 
94  int16_t strip() const { return strip_; }
95  int16_t stripLo() const { return strip_lo_; }
96  int16_t stripHi() const { return strip_hi_; }
97  int16_t stripQuart() const { return strip_quart_; } // Run 3
98  int16_t stripEighth() const { return strip_eighth_; } // Run 3
99  int16_t stripQuartBit() const { return strip_quart_bit_; } // Run 3
100  int16_t stripEighthBit() const { return strip_eighth_bit_; } // Run 3
101 
102  int16_t wire1() const { return wire1_; }
103  int16_t wire2() const { return wire2_; }
104 
105  int16_t bend() const { return bend_; }
106  int16_t slope() const { return slope_; }
107 
108  int16_t bx() const { return bx_; }
109  int16_t subbx() const { return subbx_; }
110 
111  int16_t quality() const { return quality_; }
112  int16_t pattern() const { return pattern_; }
113 
114  float globPhi() const { return glob_phi_; }
115  float globTheta() const { return glob_theta_; }
116  float globPerp() const { return glob_perp_; }
117  float globZ() const { return glob_z_; }
118  float globTime() const { return glob_time_; }
119 
120  int16_t emtfChamber() const { return emtf_chamber_; }
121  int16_t emtfSegment() const { return emtf_segment_; }
122  int16_t emtfPhi() const { return emtf_phi_; }
123  int16_t emtfBend() const { return emtf_bend_; }
124  int16_t emtfTheta1() const { return emtf_theta1_; }
125  int16_t emtfTheta2() const { return emtf_theta2_; }
126  int16_t emtfQual1() const { return emtf_qual1_; }
127  int16_t emtfQual2() const { return emtf_qual2_; }
128  int16_t emtfTime() const { return emtf_time_; }
129  int16_t emtfSite() const { return emtf_site_; }
130  int16_t emtfHost() const { return emtf_host_; }
131  int16_t emtfZones() const { return emtf_zones_; }
132  int16_t emtfTimezones() const { return emtf_timezones_; }
133 
134  bool flagNeighbor() const { return flag_neighbor_; }
135  bool flagSubstitute() const { return flag_substitute_; }
136  bool flagValid() const { return flag_valid_; }
137 
138  private:
139  uint16_t id_;
140 
141  uint32_t raw_det_id_;
142  int16_t subsystem_;
143  int16_t endcap_;
144  int16_t sector_;
145  int16_t subsector_;
146  int16_t station_;
147  int16_t ring_;
148  int16_t roll_;
149  int16_t layer_;
150  int16_t chamber_;
151 
152  int16_t csc_id_;
153  int16_t csc_fr_; // front/rear
154 
155  int16_t strip_;
156  int16_t strip_lo_;
157  int16_t strip_hi_;
158  int16_t strip_quart_;
159  int16_t strip_eighth_;
162 
163  int16_t wire1_;
164  int16_t wire2_;
165 
166  int16_t bend_;
167  int16_t slope_;
168 
169  int16_t bx_;
170  int16_t subbx_;
171 
172  int16_t quality_;
173  int16_t pattern_;
174 
175  float glob_phi_;
176  float glob_theta_;
177  float glob_perp_;
178  float glob_z_;
179  float glob_time_;
180 
181  int16_t emtf_chamber_;
182  int16_t emtf_segment_;
183  int16_t emtf_phi_;
184  int16_t emtf_bend_;
185  int16_t emtf_slope_;
186  int16_t emtf_theta1_;
187  int16_t emtf_theta2_;
188  int16_t emtf_qual1_;
189  int16_t emtf_qual2_;
190  int16_t emtf_time_;
191  int16_t emtf_site_;
192  int16_t emtf_host_;
193  int16_t emtf_zones_;
195 
199  };
200 
201  typedef std::vector<EMTFHit> EMTFHitCollection;
202 
203 } // namespace l1t::phase2
204 
205 #endif // DataFormats_L1TMuonPhase2_EMTFHit_h not defined
int16_t subsystem_
Definition: EMTFHit.h:142
int16_t slope() const
Definition: EMTFHit.h:106
int16_t subbx() const
Definition: EMTFHit.h:109
int16_t emtf_timezones_
Definition: EMTFHit.h:194
int16_t roll() const
Definition: EMTFHit.h:87
int16_t station() const
Definition: EMTFHit.h:85
void setEmtfTimezones(int16_t aEmtfTimezones)
Definition: EMTFHit.h:71
void setEmtfZones(int16_t aEmtfZones)
Definition: EMTFHit.h:70
int16_t ring() const
Definition: EMTFHit.h:86
int16_t emtf_theta1_
Definition: EMTFHit.h:186
int16_t subsector() const
Definition: EMTFHit.h:84
void setWire1(int16_t aWire1)
Definition: EMTFHit.h:41
int16_t emtfChamber() const
Definition: EMTFHit.h:120
void setId(uint16_t aId)
Definition: EMTFHit.h:17
int16_t pattern() const
Definition: EMTFHit.h:112
int16_t subsystem() const
Definition: EMTFHit.h:81
bool flagSubstitute() const
Definition: EMTFHit.h:135
void setSlope(int16_t aSlope)
Definition: EMTFHit.h:45
int16_t wire1() const
Definition: EMTFHit.h:102
void setStripLo(int16_t aStripLo)
Definition: EMTFHit.h:34
void setLayer(int16_t aLayer)
Definition: EMTFHit.h:27
std::vector< EMTFHit > EMTFHitCollection
Definition: EMTFHit.h:201
int16_t stripHi() const
Definition: EMTFHit.h:96
int16_t cscFR() const
Definition: EMTFHit.h:92
void setEmtfHost(int16_t aEmtfHost)
Definition: EMTFHit.h:69
void setStripEighth(int16_t aStripEighth)
Definition: EMTFHit.h:37
void setSubsector(int16_t aSubsector)
Definition: EMTFHit.h:23
void setCscFR(int16_t aCscfr)
Definition: EMTFHit.h:31
void setFlagNeighbor(bool aNeighbor)
Definition: EMTFHit.h:73
int16_t emtf_chamber_
Definition: EMTFHit.h:181
int16_t emtf_qual2_
Definition: EMTFHit.h:189
float globZ() const
Definition: EMTFHit.h:117
int16_t emtfZones() const
Definition: EMTFHit.h:131
void setGlobTheta(float aGlobTheta)
Definition: EMTFHit.h:54
void setQuality(int16_t aQuality)
Definition: EMTFHit.h:50
void setChamber(int16_t aChamber)
Definition: EMTFHit.h:28
void setRing(int16_t aRing)
Definition: EMTFHit.h:25
int16_t sector() const
Definition: EMTFHit.h:83
int16_t subsector_
Definition: EMTFHit.h:145
void setFlagValid(bool aValid)
Definition: EMTFHit.h:75
int16_t stripEighth() const
Definition: EMTFHit.h:98
int16_t strip_eighth_bit_
Definition: EMTFHit.h:161
void setGlobTime(float aGlobTime)
Definition: EMTFHit.h:57
void setSector(int16_t aSector)
Definition: EMTFHit.h:22
void setSubsystem(int16_t aSubsystem)
Definition: EMTFHit.h:20
int16_t emtfTheta1() const
Definition: EMTFHit.h:124
int16_t emtf_zones_
Definition: EMTFHit.h:193
uint32_t raw_det_id_
Definition: EMTFHit.h:141
int16_t emtf_qual1_
Definition: EMTFHit.h:188
void setGlobZ(float aGlobZ)
Definition: EMTFHit.h:56
int16_t emtf_theta2_
Definition: EMTFHit.h:187
int16_t emtfBend() const
Definition: EMTFHit.h:123
void setStripQuart(int16_t aStripQuart)
Definition: EMTFHit.h:36
int16_t bend() const
Definition: EMTFHit.h:105
bool flagNeighbor() const
Definition: EMTFHit.h:134
int16_t emtfTime() const
Definition: EMTFHit.h:128
void setEmtfQual1(int16_t aEmtfQual1)
Definition: EMTFHit.h:65
void setWire2(int16_t aWire2)
Definition: EMTFHit.h:42
float globTheta() const
Definition: EMTFHit.h:115
int16_t emtfSite() const
Definition: EMTFHit.h:129
int16_t emtfHost() const
Definition: EMTFHit.h:130
int16_t emtf_site_
Definition: EMTFHit.h:191
int16_t emtf_time_
Definition: EMTFHit.h:190
void setSubbx(int16_t aSubbx)
Definition: EMTFHit.h:48
int16_t emtfTimezones() const
Definition: EMTFHit.h:132
void setStrip(int16_t aStrip)
Definition: EMTFHit.h:33
void setStripQuartBit(int16_t aStripQuartBit)
Definition: EMTFHit.h:38
int16_t emtf_bend_
Definition: EMTFHit.h:184
void setEmtfChamber(int16_t aEmtfChamber)
Definition: EMTFHit.h:59
int16_t strip_eighth_
Definition: EMTFHit.h:159
int16_t wire2() const
Definition: EMTFHit.h:103
void setEmtfBend(int16_t aEmtfBend)
Definition: EMTFHit.h:62
int16_t endcap() const
Definition: EMTFHit.h:82
int16_t layer() const
Definition: EMTFHit.h:88
int16_t strip_quart_bit_
Definition: EMTFHit.h:160
void setEmtfQual2(int16_t aEmtfQual2)
Definition: EMTFHit.h:66
void setCscId(int16_t aCscid)
Definition: EMTFHit.h:30
uint32_t rawDetId() const
Definition: EMTFHit.h:80
int16_t stripQuart() const
Definition: EMTFHit.h:97
void setEmtfPhi(int16_t aEmtfPhi)
Definition: EMTFHit.h:61
void setGlobPhi(float aGlobPhi)
Definition: EMTFHit.h:53
void setStation(int16_t aStation)
Definition: EMTFHit.h:24
void setEmtfSegment(int16_t aEmtfSegment)
Definition: EMTFHit.h:60
void setEndcap(int16_t aEndcap)
Definition: EMTFHit.h:21
int16_t emtfPhi() const
Definition: EMTFHit.h:122
void setStripEighthBit(int16_t aStripEighthBit)
Definition: EMTFHit.h:39
int16_t cscId() const
Definition: EMTFHit.h:91
void setStripHi(int16_t aStripHi)
Definition: EMTFHit.h:35
int16_t emtfQual2() const
Definition: EMTFHit.h:127
void setEmtfTheta1(int16_t aEmtfTheta1)
Definition: EMTFHit.h:63
int16_t emtfTheta2() const
Definition: EMTFHit.h:125
int16_t stripLo() const
Definition: EMTFHit.h:95
int16_t quality() const
Definition: EMTFHit.h:111
void setEmtfTheta2(int16_t aEmtfTheta2)
Definition: EMTFHit.h:64
void setFlagSubstitute(bool aSubstitute)
Definition: EMTFHit.h:74
void setEmtfTime(int16_t aEmtfTime)
Definition: EMTFHit.h:67
int16_t chamber() const
Definition: EMTFHit.h:89
void setBend(int16_t aBend)
Definition: EMTFHit.h:44
int16_t bx() const
Definition: EMTFHit.h:108
float globTime() const
Definition: EMTFHit.h:118
int16_t emtf_segment_
Definition: EMTFHit.h:182
float globPhi() const
Definition: EMTFHit.h:114
int16_t strip() const
Definition: EMTFHit.h:94
int16_t strip_quart_
Definition: EMTFHit.h:158
int16_t emtf_host_
Definition: EMTFHit.h:192
void setRoll(int16_t aRoll)
Definition: EMTFHit.h:26
void setPattern(int16_t aPattern)
Definition: EMTFHit.h:51
int16_t emtfSegment() const
Definition: EMTFHit.h:121
void setEmtfSite(int16_t aEmtfSite)
Definition: EMTFHit.h:68
int16_t stripEighthBit() const
Definition: EMTFHit.h:100
void setBx(int16_t aBx)
Definition: EMTFHit.h:47
int16_t emtfQual1() const
Definition: EMTFHit.h:126
float globPerp() const
Definition: EMTFHit.h:116
void setRawDetId(uint32_t aRawDetId)
Definition: EMTFHit.h:19
uint16_t id() const
Definition: EMTFHit.h:78
bool flagValid() const
Definition: EMTFHit.h:136
void setGlobPerp(float aGlobPerp)
Definition: EMTFHit.h:55
int16_t stripQuartBit() const
Definition: EMTFHit.h:99
int16_t emtf_slope_
Definition: EMTFHit.h:185