68 bool my_CCBValid =
false;
82 : my_trig(pset, consumesCollector()),
83 phToken_{produces<L1MuDTChambPhContainer>()},
84 thToken_{produces<L1MuDTChambThContainer>()},
88 my_lut_btic{
static_cast<short int>(
pset.getUntrackedParameter<
int>(
"lutBtic"))} {}
92 cout <<
"DTTrigProd::beginRun " << iRun.
id().
run() << endl;
101 cout <<
"[DTTrigProd] TU's Created" << endl;
104 cout <<
"Dumping luts...." << endl;
110 vector<L1MuDTChambPhDigi> outPhi;
111 vector<L1MuDTChambThDigi> outTheta;
116 cout <<
"[DTTrigProd] CCB configuration is not valid for this run, empty collection will be produced " << endl;
123 cout <<
"[DTTrigProd] Trigger algorithm run for " << iEvent.
id() << endl;
131 int step = (*it).step() - bx_offset;
132 int sc_sector = (*it).SCId().sector();
136 (*it).ChamberId().wheel(),
138 (*it).ChamberId().station(),
153 for (
int i = 0;
i < 7;
i++) {
154 pos[
i] = (*it).position(
i);
155 qual[
i] = (*it).quality(
i);
157 int step = (*it).step() - bx_offset;
158 int sc_sector = (*it).SCId().sector();
162 L1MuDTChambThDigi(step, (*it).ChamberId().wheel(), sc_sector, (*it).ChamberId().station(), pos, qual));
int getBXOffset() const
Get BX Offset.
DTTrigProd(const edm::ParameterSet &pset)
Constructor.
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
#define DEFINE_FWK_MODULE(type)
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