65 cout <<
"L1TRPCTPG: analyze...." << endl;
69 if (!rpcGeo.isValid()) {
70 edm::LogInfo(
"DataNotFound") <<
"can't find RPCGeometry" << endl;
95 vector<L1MuGMTReadoutRecord> gmt_records = gmtrc->
getRecords();
96 vector<L1MuGMTReadoutRecord>::const_iterator RRItr;
98 int nRPCTrackBarrel, nRPCTrackEndcap, nDTTrack, nCSCTrack;
104 for (RRItr = gmt_records.begin(); RRItr != gmt_records.end(); RRItr++) {
106 vector<L1MuRegionalCand> DTCands = RRItr->getDTBXCands();
107 for (vector<L1MuRegionalCand>::const_iterator ECItr = DTCands.begin(); ECItr != DTCands.end(); ++ECItr) {
108 if (!ECItr->empty()) {
113 vector<L1MuRegionalCand> CSCCands = RRItr->getCSCCands();
114 for (vector<L1MuRegionalCand>::const_iterator ECItr = CSCCands.begin(); ECItr != CSCCands.end(); ++ECItr) {
115 if (!ECItr->empty()) {
121 vector<L1MuRegionalCand> RPCBCands = RRItr->getBrlRPCCands();
122 for (vector<L1MuRegionalCand>::const_iterator ECItr = RPCBCands.begin(); ECItr != RPCBCands.end(); ++ECItr) {
123 if (!ECItr->empty()) {
129 vector<L1MuRegionalCand> RPCECands = RRItr->getFwdRPCCands();
130 for (vector<L1MuRegionalCand>::const_iterator ECItr = RPCECands.begin(); ECItr != RPCECands.end(); ++ECItr) {
131 if (!ECItr->empty()) {
137 int numberofDigi[3] = {0, 0, 0};
140 for (collectionItr = rpcdigis->begin(); collectionItr != rpcdigis->end(); ++collectionItr) {
142 for (digiItr = ((*collectionItr).second).first; digiItr != ((*collectionItr).second).
second; ++digiItr) {
146 int bx = (*digiItr).bx();
150 if (nRPCTrackBarrel == 0 && nDTTrack != 0) {
152 }
else if (nRPCTrackBarrel != 0 && nDTTrack == 0) {
156 if (nRPCTrackEndcap == 0 && nCSCTrack != 0) {
158 }
else if (nRPCTrackEndcap != 0 && nCSCTrack == 0) {
186 cout <<
"L1TRPCTPG: end job...." << endl;
187 LogInfo(
"EndJob") <<
"analyzed " <<
nev_ <<
" events";
edm::EDGetTokenT< RPCDigiCollection > rpctpgSource_token_
T const * product() const
MonitorElement * m_digiBxCSC
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcgeomToken_
U second(std::pair< T, U > const &p)
MonitorElement * rpctpgndigi[3]
Log< level::Info, false > LogInfo
std::vector< L1MuGMTReadoutRecord > const & getRecords() const
edm::EDGetTokenT< L1MuGMTReadoutCollection > rpctfSource_token_
std::vector< RPCDigi >::const_iterator const_iterator
edm::InputTag rpctpgSource_
MonitorElement * m_digiBxRPCBar
MonitorElement * m_digiBxRPCEnd
edm::InputTag rpctfSource_
MonitorElement * rpctpgbx
MonitorElement * m_digiBxDT