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};
67 bool isTwoLooseDifferentSectorsInTime{
false};
69 bool foundOneLoose{
false};
70 for (
size_t i = 0;
i < emtfShowers->
size(0); ++
i) {
71 auto shower = emtfShowers->
at(0,
i);
72 if (shower.isValid()) {
74 if (shower.isOneNominalInTime()) {
75 isOneNominalInTime =
true;
78 if (shower.isTwoLooseInTime()) {
79 isTwoLooseInTime =
true;
82 if (shower.isOneTightInTime()) {
83 isOneTightInTime =
true;
86 if (shower.isOneLooseInTime()) {
88 isTwoLooseDifferentSectorsInTime =
true;
97 const bool acceptCondition{isOneNominalInTime
or isTwoLooseInTime
or isOneTightInTime
or 98 isTwoLooseDifferentSectorsInTime};
100 if (acceptCondition) {
102 isOneNominalInTime,
false, isTwoLooseInTime,
false, isOneTightInTime,
false, isTwoLooseDifferentSectorsInTime);
103 outShowers->push_back(0, outShower);
112 desc.add<int32_t>(
"bxMin", 0);
113 desc.add<int32_t>(
"bxMax", 0);
114 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_