23 : rpctpgSource_( ps.getParameter<
InputTag >(
"rpctpgSource") ),
24 rpctfSource_( ps.getParameter<
InputTag >(
"rpctfSource") )
30 if(
verbose_)
cout <<
"L1TRPCTPG: constructor...." << endl;
42 cout <<
"L1T Monitoring histograms will be saved to " <<
outputFile_.c_str() << endl;
73 dbe->
rmdir(
"L1T/L1TRPCTPG");
81 "RPC digis bx - all events", 9, -4.5, 4.5 ) ;
84 "RPCTPG nDigi bx 0", 100, -0.5, 99.5 ) ;
86 "RPCTPG nDigi bx +1", 100, -0.5, 99.5 ) ;
88 "RPCTPG nDigi bx -1", 100, -0.5, 99.5 ) ;
93 "RPC digis bx - RPC, !DT", 9, -4.5, 4.5 ) ;
96 "RPC digis bx - RPC, !CSC", 9, -4.5, 4.5 ) ;
99 "RPC digis bx - !RPC, DT", 9, -4.5, 4.5 ) ;
102 "RPC digis bx - !RPC, CSC", 9, -4.5, 4.5 ) ;
110 LogInfo(
"EndJob") <<
"analyzed " <<
nev_ <<
" events";
127 edm::LogInfo(
"DataNotFound") <<
"can't find RPCGeometry" << endl;
148 edm::LogInfo(
"DataNotFound") <<
"can't find L1MuGMTReadoutCollection with label "
154 vector<L1MuGMTReadoutRecord> gmt_records = gmtrc->
getRecords();
155 vector<L1MuGMTReadoutRecord>::const_iterator RRItr;
157 static int nRPCTrackBarrel, nRPCTrackEndcap , nDTTrack, nCSCTrack;
163 for( RRItr = gmt_records.begin() ;
164 RRItr != gmt_records.end() ;
168 vector<L1MuRegionalCand> DTCands = RRItr->getDTBXCands();
169 for( vector<L1MuRegionalCand>::const_iterator
170 ECItr = DTCands.begin() ;
171 ECItr != DTCands.end() ;
174 if (!ECItr->empty()) { ++nDTTrack; }
177 vector<L1MuRegionalCand> CSCCands = RRItr->getCSCCands();
178 for( vector<L1MuRegionalCand>::const_iterator
179 ECItr = CSCCands.begin() ;
180 ECItr != CSCCands.end() ;
183 if (!ECItr->empty()) { ++nCSCTrack; }
187 vector<L1MuRegionalCand> RPCBCands = RRItr->getBrlRPCCands();
188 for( vector<L1MuRegionalCand>::const_iterator
189 ECItr = RPCBCands.begin() ;
190 ECItr != RPCBCands.end() ;
193 if (!ECItr->empty()) { ++nRPCTrackBarrel; }
197 vector<L1MuRegionalCand> RPCECands = RRItr->getFwdRPCCands();
198 for( vector<L1MuRegionalCand>::const_iterator
199 ECItr = RPCECands.begin() ;
200 ECItr != RPCECands.end() ;
203 if (!ECItr->empty()) { ++nRPCTrackEndcap; }
207 int numberofDigi[3] = {0,0,0};
211 for(collectionItr=rpcdigis->begin(); collectionItr!=rpcdigis->end(); ++collectionItr){
234 for (digiItr = ((*collectionItr ).second).first;
235 digiItr!=((*collectionItr).second).
second; ++digiItr){
240 int bx=(*digiItr).bx();
244 if ( nRPCTrackBarrel == 0 && nDTTrack != 0) {
246 }
else if ( nRPCTrackBarrel != 0 && nDTTrack == 0) {
250 if ( nRPCTrackEndcap == 0 && nCSCTrack != 0) {
252 }
else if ( nRPCTrackEndcap != 0 && nCSCTrack == 0) {
T getUntrackedParameter(std::string const &, T const &) const
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
MonitorElement * m_digiBxCSC
U second(std::pair< T, U > const &p)
L1TRPCTPG(const edm::ParameterSet &ps)
void setVerbose(unsigned level)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * rpctpgndigi[3]
std::vector< DigiType >::const_iterator const_iterator
edm::InputTag rpctpgSource_
T const * product() const
MonitorElement * m_digiBxRPCBar
MonitorElement * m_digiBxRPCEnd
std::vector< L1MuGMTReadoutRecord > const & getRecords() const
edm::InputTag rpctfSource_
MonitorElement * rpctpgbx
MonitorElement * m_digiBxDT
void setCurrentFolder(const std::string &fullpath)