Skip to content

Commit 46c6854

Browse files
authored
Merge pull request #47518 from woohyeonHeo/l1t_me0
Remove L1Trigger dependency from DataFormats package "ME0Stub"
2 parents 3735724 + b3f11b8 commit 46c6854

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

DataFormats/GEMDigi/interface/ME0Stub.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,11 @@
88
#include <iomanip>
99

1010
#include "DataFormats/MuonDetId/interface/GEMDetId.h"
11-
#include "L1Trigger/L1TGEM/interface/ME0StubPrimitive.h"
1211

1312
class ME0Stub final {
1413
public:
1514
ME0Stub()
1615
: detId_(), etaPartition_(0), padStrip_(0), bendingAngle_(0), layerCount_(0), quality_(0), patternId_(0), bx_(0) {}
17-
ME0Stub(const GEMDetId& id, const ME0StubPrimitive& stub)
18-
: detId_(id),
19-
etaPartition_(stub.etaPartition()),
20-
padStrip_(stub.strip() + stub.subStrip()),
21-
bendingAngle_(stub.bendingAngle()),
22-
layerCount_(stub.layerCount()),
23-
quality_(stub.quality()),
24-
patternId_(stub.patternId()),
25-
bx_(stub.bx()) {}
2616
ME0Stub(const GEMDetId& id,
2717
int etaPartition,
2818
double padStrip,

L1Trigger/L1TGEM/plugins/ME0StubBuilder.cc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,14 @@ void ME0StubBuilder::build(const GEMPadDigiCollection* padDigis, ME0StubCollecti
134134
else
135135
seg.setEtaPartition(seg.etaPartition() / 2);
136136

137-
ME0Stub segFinal(id, seg);
137+
ME0Stub segFinal(id,
138+
seg.etaPartition(),
139+
seg.strip() + seg.subStrip(),
140+
seg.bendingAngle(),
141+
seg.layerCount(),
142+
seg.quality(),
143+
seg.patternId(),
144+
seg.bx());
138145

139146
segListProcessed.push_back(segFinal);
140147
}

0 commit comments

Comments
 (0)