39 : showerInputTag_(iConfig.getParameter<
edm::
InputTag>(
"showerInput")),
41 bxMin_(iConfig.getParameter<
int>(
"bxMin")),
42 bxMax_(iConfig.getParameter<
int>(
"bxMax")) {
43 produces<MuonShowerBxCollection>();
64 bool isOneNominalInTime =
false;
65 bool isTwoLooseInTime =
false;
66 bool isOneTightInTime =
false;
68 for (
size_t i = 0;
i < emtfShowers->
size(0); ++
i) {
69 auto shower = emtfShowers->
at(0,
i);
70 if (shower.isValid()) {
72 if (shower.isOneNominalInTime())
73 isOneNominalInTime =
true;
75 if (shower.isTwoLooseInTime())
76 isTwoLooseInTime =
true;
78 if (shower.isOneTightInTime())
79 isOneTightInTime =
true;
84 const bool acceptCondition(isOneNominalInTime
or isTwoLooseInTime
or isOneTightInTime);
86 if (acceptCondition) {
87 MuonShower outShower(isOneNominalInTime,
false, isTwoLooseInTime,
false, isOneTightInTime,
false);
88 outShowers->push_back(0, outShower);
97 desc.add<int32_t>(
"bxMin", 0);
98 desc.add<int32_t>(
"bxMax", 0);
99 descriptions.
add(
"simGmtShowerDigisDef",
desc);
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
L1TMuonShowerProducer(const edm::ParameterSet &)
unsigned size(int bx) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override
BXVector< MuonShower > MuonShowerBxCollection
const T & at(int bx, unsigned i) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~L1TMuonShowerProducer() override
edm::EDGetTokenT< l1t::RegionalMuonShowerBxCollection > showerInputToken_
edm::InputTag showerInputTag_