70 bool my_CCBValid =
false;
84 my_trig(pset, consumesCollector()),
85 phToken_{produces<L1MuDTChambPhContainer>()},
86 thToken_{produces<L1MuDTChambThContainer>()},
90 my_lut_btic{
static_cast<short int>(
pset.getUntrackedParameter<
int>(
"lutBtic")) }
97 cout <<
"DTTrigProd::beginRun " << iRun.
id().
run() << endl;
106 cout <<
"[DTTrigProd] TU's Created" << endl;
109 cout <<
"Dumping luts...." << endl;
118 vector<L1MuDTChambPhDigi> outPhi;
119 vector<L1MuDTChambThDigi> outTheta;
124 cout <<
"[DTTrigProd] CCB configuration is not valid for this run, empty collection will be produced " << endl;
131 cout <<
"[DTTrigProd] Trigger algorithm run for " <<iEvent.
id() << endl;
139 int step = (*it).step() - bx_offset;
140 int sc_sector = (*it).SCId().sector();
143 (*it).ChamberId().wheel(),
145 (*it).ChamberId().station(),
161 for (
int i=0;
i<7;
i++){
162 pos[
i] =(*it).position(
i);
163 qual[
i]=(*it).quality(
i);
165 int step =(*it).step() - bx_offset;
166 int sc_sector = (*it).SCId().sector();
169 (*it).ChamberId().wheel(),
171 (*it).ChamberId().station(),
int getBXOffset() const
Get BX Offset.
DTTrigProd(const edm::ParameterSet &pset)
Constructor.
#define DEFINE_FWK_MODULE(type)
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.
bool CCBConfigValidity() const
flag for CCB configuration validity
const short int my_lut_btic
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
std::vector< DTSectCollThSegm > SCThTrigs() const
Return a copy of all the Sector Collector (Theta) triggers.
SectCollPhiColl::const_iterator SectCollPhiColl_iterator
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.
T const * product() const