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)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
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::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
L1TMuonShowerProducer(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
BXVector< MuonShower > MuonShowerBxCollection
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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_