23 std::vector<CSCCorrelatedLCTDigi>::const_iterator digiIt = (*j).second.first;
24 std::vector<CSCCorrelatedLCTDigi>::const_iterator
last = (*j).second.second;
25 for( ; digiIt !=
last; ++digiIt) {
26 uint16_t wire = digiIt->getKeyWG();
27 uint16_t
pattern = digiIt->getPattern();
28 uint16_t
quality = digiIt->getQuality();
29 uint16_t valid = digiIt->isValid();
30 uint16_t strip = digiIt->getStrip();
31 uint16_t bend = digiIt->getBend();
32 uint16_t syncErr = digiIt->getSyncErr();
33 uint16_t bx = digiIt->getBX();
34 uint16_t bx0 = digiIt->getBX0();
35 uint16_t cscId = digiIt->getCSCID();
38 long unsigned int mpc =
39 ((cscId&0xF)<<28) | ((bx0&0x1)<<27) | ((bx&0x1)<<26) |
40 ((syncErr&0x1)<<25) | ((bend&0x1)<<24) | ((strip&0xFF)<<16) |
41 ((valid&0x1)<<15) | ((quality&0xF)<<11) | ((pattern&0xF)<<7) |
43 std::cout <<
"MPC"<<digiIt->getTrknmb()<<
" " << std::hex << mpc <<
std::dec <<std::endl;
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void analyze(edm::Event const &e, edm::EventSetup const &iSetup)
CSCDigiToPattern(edm::ParameterSet const &conf)
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > d_token