70 bool my_CCBValid =
false;
84 : my_trig(pset, consumesCollector()),
85 phToken_{produces<L1MuDTChambPhContainer>()},
86 thToken_{produces<L1MuDTChambThContainer>()},
87 dtConfigToken_(esConsumes<DTConfigManager, DTConfigManagerRcd, edm::Transition::BeginRun>()),
95 cout <<
"DTTrigProd::beginRun " << iRun.
id().
run() << endl;
103 cout <<
"[DTTrigProd] TU's Created" << endl;
106 cout <<
"Dumping luts...." << endl;
112 vector<L1MuDTChambPhDigi> outPhi;
113 vector<L1MuDTChambThDigi> outTheta;
118 cout <<
"[DTTrigProd] CCB configuration is not valid for this run, empty collection will be produced " << endl;
125 cout <<
"[DTTrigProd] Trigger algorithm run for " << iEvent.
id() << endl;
133 int step = (*it).step() - bx_offset;
134 int sc_sector = (*it).SCId().sector();
138 (*it).ChamberId().wheel(),
140 (*it).ChamberId().station(),
155 for (
int i = 0;
i < 7;
i++) {
156 pos[
i] = (*it).position(
i);
157 qual[
i] = (*it).quality(
i);
159 int step = (*it).step() - bx_offset;
160 int sc_sector = (*it).SCId().sector();
164 L1MuDTChambThDigi(step, (*it).ChamberId().wheel(), sc_sector, (*it).ChamberId().station(), pos, qual));
T getUntrackedParameter(std::string const &, T const &) const
int getBXOffset() const
Get BX Offset.
DTTrigProd(const edm::ParameterSet &pset)
Constructor.
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< DTConfigManager, DTConfigManagerRcd > dtConfigToken_
edm::EDPutTokenT< L1MuDTChambPhContainer > phToken_
void dumpLuts(short int lut_btic, const DTConfigManager *conf) const
Dump the LUT files.
const bool my_lut_dump_flag
vector< DTSectCollThSegm > SectCollThetaColl
SectCollThetaColl::const_iterator SectCollThetaColl_iterator
edm::EDPutTokenT< L1MuDTChambThContainer > thToken_
void triggerReco(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Run the whole trigger reconstruction chain.
std::vector< DTSectCollPhSegm > SCPhTrigs() const
Return a copy of all the Sector Collector (Phi) triggers.
const short int my_lut_btic
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
T const * product() const
T getParameter(std::string const &) const
std::vector< DTSectCollThSegm > SCThTrigs() const
Return a copy of all the Sector Collector (Theta) triggers.
SectCollPhiColl::const_iterator SectCollPhiColl_iterator
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
vector< DTSectCollPhSegm > SectCollPhiColl
void produce(edm::Event &iEvent, const edm::EventSetup &iEventSetup) override
Producer: process every event and generates trigger data.
void createTUs(const edm::EventSetup &iSetup)
Create the trigger units and store them in the cache.
void beginRun(edm::Run const &iRun, const edm::EventSetup &iEventSetup) override
Create Trigger Units before starting event processing.