Skip to content

Commit 81e0f46

Browse files
committed
Merged emtfpp_for_13_3_0_pre3 from repository omiguelc with cms-merge-topic
2 parents 9a7cd3a + f1fcba2 commit 81e0f46

File tree

110 files changed

+9025
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+9025
-48
lines changed

DataFormats/GEMDigi/interface/ME0TriggerDigiCollection.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
*/
99

1010
#include "DataFormats/MuonDetId/interface/ME0DetId.h"
11+
#include "DataFormats/MuonDetId/interface/GEMDetId.h"
1112
#include "DataFormats/GEMDigi/interface/ME0TriggerDigi.h"
1213
#include "DataFormats/MuonData/interface/MuonDigiCollection.h"
1314

1415
typedef MuonDigiCollection<ME0DetId, ME0TriggerDigi> ME0TriggerDigiCollection;
16+
typedef MuonDigiCollection<GEMDetId, ME0TriggerDigi> GE0TriggerDigiCollection;
1517

1618
#endif

DataFormats/GEMDigi/src/classes_def.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,9 @@
137137
<class name="MuonDigiCollection<ME0DetId,ME0TriggerDigi>"/>
138138
<class name="edm::Wrapper<MuonDigiCollection<ME0DetId,ME0TriggerDigi> >" splitLevel="0"/>
139139

140+
<class name="std::map<GEMDetId,std::vector<ME0TriggerDigi> >"/>
141+
<class name="std::pair<GEMDetId,std::vector<ME0TriggerDigi> >"/>
142+
<class name="MuonDigiCollection<GEMDetId,ME0TriggerDigi>"/>
143+
<class name="edm::Wrapper<MuonDigiCollection<GEMDetId,ME0TriggerDigi> >" splitLevel="0"/>
144+
140145
</lcgdict>
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<export>
22
<lib name="1"/>
33
</export>
4-
<use name="rootrflx"/>
4+
<use name="DataFormats/CLHEP"/>
55
<use name="DataFormats/Common"/>
66
<use name="DataFormats/L1Trigger"/>
77
<use name="DataFormats/L1TMuon"/>
88
<use name="DataFormats/L1TrackTrigger"/>
9-
<use name="FWCore/MessageLogger"/>
9+
<use name="hls"/>
10+
<use name="rootrflx"/>
Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
#ifndef DataFormats_L1TMuonPhase2_EMTFHit_h
2+
#define DataFormats_L1TMuonPhase2_EMTFHit_h
3+
4+
#include <cstdint>
5+
#include <vector>
6+
7+
#include "DataFormats/L1TMuon/interface/L1TMuonSubsystems.h"
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_;
160+
int16_t strip_quart_bit_;
161+
int16_t strip_eighth_bit_;
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_;
194+
int16_t emtf_timezones_;
195+
196+
bool flag_neighbor_;
197+
bool flag_substitute_;
198+
bool flag_valid_;
199+
};
200+
201+
typedef std::vector<EMTFHit> EMTFHitCollection;
202+
203+
} // namespace l1t::phase2
204+
205+
#endif // DataFormats_L1TMuonPhase2_EMTFHit_h not defined
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#ifndef DataFormats_L1TMuonPhase2_EMTFInput_h
2+
#define DataFormats_L1TMuonPhase2_EMTFInput_h
3+
4+
#include <cstdint>
5+
#include <vector>
6+
7+
#include "DataFormats/L1TMuon/interface/L1TMuonSubsystems.h"
8+
9+
namespace l1t::phase2 {
10+
11+
class EMTFInput {
12+
public:
13+
typedef std::vector<uint16_t> hits_t;
14+
typedef std::vector<uint16_t> segs_t;
15+
16+
EMTFInput() : endcap_(0), sector_(0), bx_(0), hits_{}, segs_{} {}
17+
~EMTFInput() = default;
18+
19+
// Setters
20+
void setEndcap(int16_t aEndcap) { endcap_ = aEndcap; }
21+
void setSector(int16_t aSector) { sector_ = aSector; }
22+
void setBx(int16_t aBx) { bx_ = aBx; }
23+
void setHits(const hits_t& aHits) { hits_ = aHits; }
24+
void setSegs(const segs_t& aSegs) { segs_ = aSegs; }
25+
26+
// Getters
27+
int16_t endcap() const { return endcap_; }
28+
int16_t sector() const { return sector_; }
29+
int16_t bx() const { return bx_; }
30+
const hits_t& hits() const { return hits_; }
31+
const segs_t& segs() const { return segs_; }
32+
33+
private:
34+
int16_t endcap_;
35+
int16_t sector_;
36+
int16_t bx_;
37+
hits_t hits_;
38+
segs_t segs_;
39+
};
40+
41+
typedef std::vector<EMTFInput> EMTFInputCollection;
42+
43+
} // namespace l1t::phase2
44+
45+
#endif // DataFormats_L1TMuonPhase2_EMTFInput_h not defined

0 commit comments

Comments
 (0)