39 : showerInputTag_(iConfig.getParameter<
edm::
InputTag>(
"showerInput")),
41 bxMin_(iConfig.getParameter<
int>(
"bxMin")),
42 bxMax_(iConfig.getParameter<
int>(
"bxMax")) {
43 produces<MuonShowerBxCollection>();
62 bool isOneNominalInTime =
false;
63 bool isOneNominalOutOfTime =
false;
64 bool isTwoLooseInTime =
false;
65 bool isTwoLooseOutOfTime =
false;
66 for (
size_t i = 0;
i < emtfShowers->
size(0); ++
i) {
67 auto shower = emtfShowers->
at(0,
i);
68 if (shower.isValid()) {
70 if (shower.isOneNominalInTime())
71 isOneNominalInTime =
true;
72 if (shower.isOneNominalOutOfTime())
73 isOneNominalOutOfTime =
true;
75 if (shower.isTwoLooseInTime())
76 isTwoLooseInTime =
true;
77 if (shower.isTwoLooseOutOfTime())
78 isTwoLooseOutOfTime =
true;
83 const bool acceptCondition(isOneNominalInTime
or isOneNominalOutOfTime
or isTwoLooseInTime
or isTwoLooseOutOfTime);
84 if (acceptCondition) {
85 MuonShower outShower(isOneNominalInTime, isOneNominalOutOfTime, isTwoLooseInTime, isTwoLooseOutOfTime);
86 outShowers->push_back(0, outShower);
95 desc.add<int32_t>(
"bxMin", 0);
96 desc.add<int32_t>(
"bxMax", 0);
97 desc.add<uint32_t>(
"minNominalShowers", 1);
98 desc.add<uint32_t>(
"minTwoLooseShowers", 0);
99 descriptions.
add(
"simGmtShowerDigisDef",
desc);