Skip to content

Commit eb0e9f7

Browse files
committed
Add ME0 Trigger Object and Producer
1 parent b27e785 commit eb0e9f7

File tree

5 files changed

+38
-39
lines changed

5 files changed

+38
-39
lines changed

DataFormats/GEMDigi/src/classes_def.xml

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

140-
<class name="ME0Stub" ClassVersion="4">
141-
<version ClassVersion="3" checksum="896321440"/>
142-
<version ClassVersion="4" checksum="1308525807"/>
140+
<class name="ME0Stub" ClassVersion="3">
141+
<version ClassVersion="3" checksum="1308525807"/>
143142
</class>
144143
<class name="std::vector<ME0Stub*>" splitLevel="0"/>
145144
<class name="edm::OwnVector<ME0Stub,edm::ClonePolicy<ME0Stub> >" splitLevel="0" rntupleSplit="false" />

L1Trigger/L1TGEM/interface/ME0StubAlgoPatUnit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ namespace l1t {
2323
const std::vector<std::vector<int>>& bxData,
2424
int strip = 0,
2525
int partition = -1,
26-
std::vector<int> layerThresholdPatternId = {7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 5, 4, 4, 4, 4, 4},
26+
const std::vector<int>& layerThresholdPatternId = {7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 5, 4, 4, 4, 4, 4},
2727
// layer count threshold for 17 pattern ids
28-
std::vector<int> layerThresholdEta = {4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4},
28+
const std::vector<int>& layerThresholdEta = {4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4},
2929
// layer count threshold for 8 eta partitions + 7 "virtual" eta partitions
3030
int inputMaxSpan = 37,
3131
bool skipCentroids = true,

L1Trigger/L1TGEM/plugins/ME0StubBuilder.cc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ typedef std::vector<std::vector<UInt192>> ME0ChamberData;
1414
typedef std::vector<std::vector<std::vector<int>>> ME0ChamberBXData;
1515

1616
ME0StubBuilder::ME0StubBuilder(const edm::ParameterSet& ps) {
17-
skipCentroids_ = ps.getParameter<bool>("skip_centroids");
18-
layerThresholdPatternId_ = ps.getParameter<std::vector<int32_t>>("ly_thresh_patid");
19-
layerThresholdEta_ = ps.getParameter<std::vector<int32_t>>("ly_thresh_eta");
20-
maxSpan_ = ps.getParameter<int32_t>("max_span");
17+
skipCentroids_ = ps.getParameter<bool>("skipCentroids");
18+
layerThresholdPatternId_ = ps.getParameter<std::vector<int32_t>>("layerThresholdPatternId");
19+
layerThresholdEta_ = ps.getParameter<std::vector<int32_t>>("layerThresholdEta");
20+
maxSpan_ = ps.getParameter<int32_t>("maxSpan");
2121
width_ = ps.getParameter<int32_t>("width");
22-
deghostPre_ = ps.getParameter<bool>("deghost_pre");
23-
deghostPost_ = ps.getParameter<bool>("deghost_post");
24-
groupWidth_ = ps.getParameter<int32_t>("group_width");
25-
ghostWidth_ = ps.getParameter<int32_t>("ghost_width");
26-
xPartitionEnabled_ = ps.getParameter<bool>("x_prt_en");
27-
enableNonPointing_ = ps.getParameter<bool>("en_non_pointing");
28-
crossPartitionSegmentWidth_ = ps.getParameter<int32_t>("cross_part_seg_width");
29-
numOutputs_ = ps.getParameter<int32_t>("num_outputs");
30-
checkIds_ = ps.getParameter<bool>("check_ids");
31-
edgeDistance_ = ps.getParameter<int32_t>("edge_distance");
32-
numOr_ = ps.getParameter<int32_t>("num_or");
33-
mseThreshold_ = ps.getParameter<double>("mse_thresh");
22+
deghostPre_ = ps.getParameter<bool>("deghostPre");
23+
deghostPost_ = ps.getParameter<bool>("deghostPost");
24+
groupWidth_ = ps.getParameter<int32_t>("groupWidth");
25+
ghostWidth_ = ps.getParameter<int32_t>("ghostWidth");
26+
xPartitionEnabled_ = ps.getParameter<bool>("xPartitionEnabled");
27+
enableNonPointing_ = ps.getParameter<bool>("enableNonPointing");
28+
crossPartitionSegmentWidth_ = ps.getParameter<int32_t>("crossPartitionSegmentWidth");
29+
numOutputs_ = ps.getParameter<int32_t>("numOutputs");
30+
checkIds_ = ps.getParameter<bool>("checkIds");
31+
edgeDistance_ = ps.getParameter<int32_t>("edgeDistance");
32+
numOr_ = ps.getParameter<int32_t>("numOr");
33+
mseThreshold_ = ps.getParameter<double>("mseThreshold");
3434
}
3535
ME0StubBuilder::~ME0StubBuilder() {}
3636

L1Trigger/L1TGEM/python/me0Stubs_cfi.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
me0Stubs = cms.EDProducer("ME0StubProducer",
44
# parameters for l1t::me0::Config
5-
skip_centroids = cms.bool(False),
6-
ly_thresh_patid = cms.vint32(7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 5, 4, 4, 4, 4, 4),
7-
ly_thresh_eta = cms.vint32(4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4),
8-
max_span = cms.int32(37),
5+
skipCentroids = cms.bool(False),
6+
layerThresholdPatternId = cms.vint32(7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 5, 4, 4, 4, 4, 4),
7+
layerThresholdEta = cms.vint32(4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4),
8+
maxSpan = cms.int32(37),
99
width = cms.int32(192),
10-
deghost_pre = cms.bool(True),
11-
deghost_post = cms.bool(True),
12-
group_width = cms.int32(8),
13-
ghost_width = cms.int32(1),
14-
x_prt_en = cms.bool(True),
15-
en_non_pointing = cms.bool(False),
16-
cross_part_seg_width = cms.int32(4),
17-
num_outputs = cms.int32(4),
18-
check_ids = cms.bool(False),
19-
edge_distance = cms.int32(2),
20-
num_or = cms.int32(2),
21-
mse_thresh = cms.double(0.75),
10+
deghostPre = cms.bool(True),
11+
deghostPost = cms.bool(True),
12+
groupWidth = cms.int32(8),
13+
ghostWidth = cms.int32(1),
14+
xPartitionEnabled = cms.bool(True),
15+
enableNonPointing = cms.bool(False),
16+
crossPartitionSegmentWidth = cms.int32(4),
17+
numOutputs = cms.int32(4),
18+
checkIds = cms.bool(False),
19+
edgeDistance = cms.int32(2),
20+
numOr = cms.int32(2),
21+
mseThreshold = cms.double(0.75),
2222
# input collections : GEMPadDigis
2323
InputCollection = cms.InputTag("GEMPadDigis"),
2424
)

L1Trigger/L1TGEM/src/ME0StubAlgoPatUnit.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ ME0StubPrimitive l1t::me0::patUnit(const std::vector<uint64_t>& data,
8282
const std::vector<std::vector<int>>& bxData,
8383
int strip,
8484
int partition,
85-
std::vector<int> lyThreshPatid,
86-
std::vector<int> lyThreshEta,
85+
const std::vector<int>& lyThreshPatid,
86+
const std::vector<int>& lyThreshEta,
8787
int inputMaxSpan,
8888
bool skipCentroids,
8989
int numOr,

0 commit comments

Comments
 (0)