89 edm::LogInfo(
"DataNotFound") <<
"can't find RPCGeometry" << endl;
110 edm::LogInfo(
"DataNotFound") <<
"can't find L1MuGMTReadoutCollection with label " 116 vector<L1MuGMTReadoutRecord> gmt_records = gmtrc->
getRecords();
117 vector<L1MuGMTReadoutRecord>::const_iterator RRItr;
119 int nRPCTrackBarrel, nRPCTrackEndcap , nDTTrack, nCSCTrack;
125 for( RRItr = gmt_records.begin() ;
126 RRItr != gmt_records.end() ;
130 vector<L1MuRegionalCand> DTCands = RRItr->getDTBXCands();
131 for( vector<L1MuRegionalCand>::const_iterator
132 ECItr = DTCands.begin() ;
133 ECItr != DTCands.end() ;
136 if (!ECItr->empty()) { ++nDTTrack; }
139 vector<L1MuRegionalCand> CSCCands = RRItr->getCSCCands();
140 for( vector<L1MuRegionalCand>::const_iterator
141 ECItr = CSCCands.begin() ;
142 ECItr != CSCCands.end() ;
145 if (!ECItr->empty()) { ++nCSCTrack; }
149 vector<L1MuRegionalCand> RPCBCands = RRItr->getBrlRPCCands();
150 for( vector<L1MuRegionalCand>::const_iterator
151 ECItr = RPCBCands.begin() ;
152 ECItr != RPCBCands.end() ;
155 if (!ECItr->empty()) { ++nRPCTrackBarrel; }
159 vector<L1MuRegionalCand> RPCECands = RRItr->getFwdRPCCands();
160 for( vector<L1MuRegionalCand>::const_iterator
161 ECItr = RPCECands.begin() ;
162 ECItr != RPCECands.end() ;
165 if (!ECItr->empty()) { ++nRPCTrackEndcap; }
169 int numberofDigi[3] = {0,0,0};
173 for(collectionItr=rpcdigis->begin(); collectionItr!=rpcdigis->end(); ++collectionItr){
176 for (digiItr = ((*collectionItr ).second).first;
177 digiItr!=((*collectionItr).second).
second; ++digiItr){
182 int bx=(*digiItr).bx();
186 if ( nRPCTrackBarrel == 0 && nDTTrack != 0) {
188 }
else if ( nRPCTrackBarrel != 0 && nDTTrack == 0) {
192 if ( nRPCTrackEndcap == 0 && nCSCTrack != 0) {
194 }
else if ( nRPCTrackEndcap != 0 && nCSCTrack == 0) {
231 LogInfo(
"EndJob") <<
"analyzed " <<
nev_ <<
" events";
edm::EDGetTokenT< RPCDigiCollection > rpctpgSource_token_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * m_digiBxCSC
U second(std::pair< T, U > const &p)
MonitorElement * rpctpgndigi[3]
T const * product() const
edm::EDGetTokenT< L1MuGMTReadoutCollection > rpctfSource_token_
std::vector< RPCDigi >::const_iterator const_iterator
edm::InputTag rpctpgSource_
MonitorElement * m_digiBxRPCBar
MonitorElement * m_digiBxRPCEnd
std::vector< L1MuGMTReadoutRecord > const & getRecords() const
edm::InputTag rpctfSource_
MonitorElement * rpctpgbx
MonitorElement * m_digiBxDT