92 edm::LogInfo(
"DataNotFound") <<
"can't find RPCGeometry" << endl;
113 edm::LogInfo(
"DataNotFound") <<
"can't find L1MuGMTReadoutCollection with label " 119 vector<L1MuGMTReadoutRecord> gmt_records = gmtrc->
getRecords();
120 vector<L1MuGMTReadoutRecord>::const_iterator RRItr;
122 int nRPCTrackBarrel, nRPCTrackEndcap , nDTTrack, nCSCTrack;
128 for( RRItr = gmt_records.begin() ;
129 RRItr != gmt_records.end() ;
133 vector<L1MuRegionalCand> DTCands = RRItr->getDTBXCands();
134 for( vector<L1MuRegionalCand>::const_iterator
135 ECItr = DTCands.begin() ;
136 ECItr != DTCands.end() ;
139 if (!ECItr->empty()) { ++nDTTrack; }
142 vector<L1MuRegionalCand> CSCCands = RRItr->getCSCCands();
143 for( vector<L1MuRegionalCand>::const_iterator
144 ECItr = CSCCands.begin() ;
145 ECItr != CSCCands.end() ;
148 if (!ECItr->empty()) { ++nCSCTrack; }
152 vector<L1MuRegionalCand> RPCBCands = RRItr->getBrlRPCCands();
153 for( vector<L1MuRegionalCand>::const_iterator
154 ECItr = RPCBCands.begin() ;
155 ECItr != RPCBCands.end() ;
158 if (!ECItr->empty()) { ++nRPCTrackBarrel; }
162 vector<L1MuRegionalCand> RPCECands = RRItr->getFwdRPCCands();
163 for( vector<L1MuRegionalCand>::const_iterator
164 ECItr = RPCECands.begin() ;
165 ECItr != RPCECands.end() ;
168 if (!ECItr->empty()) { ++nRPCTrackEndcap; }
172 int numberofDigi[3] = {0,0,0};
176 for(collectionItr=rpcdigis->begin(); collectionItr!=rpcdigis->end(); ++collectionItr){
179 for (digiItr = ((*collectionItr ).second).first;
180 digiItr!=((*collectionItr).second).
second; ++digiItr){
185 int bx=(*digiItr).bx();
189 if ( nRPCTrackBarrel == 0 && nDTTrack != 0) {
191 }
else if ( nRPCTrackBarrel != 0 && nDTTrack == 0) {
195 if ( nRPCTrackEndcap == 0 && nCSCTrack != 0) {
197 }
else if ( nRPCTrackEndcap != 0 && nCSCTrack == 0) {
234 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