84 using namespace l1extra;
119 rctSource_( ps.getParameter<
InputTag >(
"rctSource") )
120 ,gctSource_( ps.getParameter<
InputTag >(
"gctSource") )
121 ,ecalTpgSource_(ps.getParameter<edm::
InputTag>(
"ecalTpgSource"))
129 std::cout <<
"L1TCompare: constructor...." << std::endl;
142 cout <<
"L1T Monitoring histograms will be saved to " <<
175 dbe->
rmdir(
"L1T/Compare");
224 "ECAL TPG-RCT: rank",
231 "ECAL TPG-RCT: #eta",
237 "ECAL TPG-RCT: #eta (2)",
243 "ECAL TPG-RCT: #phi",
256 std::cout <<
"L1TCompare: end job...." << std::endl;
257 LogInfo(
"EndJob") <<
"analyzed " <<
nev_ <<
" events";
269 std::cout <<
"L1TCompare: analyze...." << std::endl;
293 edm::LogInfo(
"DataNotFound") <<
"can't find L1CaloEmCollection with label "
303 <<
"L1CaloRegionCollection with label "
314 std::cerr <<
"L1TGCT: could not find one of the classes?" << std::endl;
317 if (!gctIsoEmCands.
isValid()) {
318 std::cerr <<
"L1TGCT: could not find one of the classes?" << std::endl;
321 if (!gctNonIsoEmCands.
isValid()) {
322 std::cerr <<
"L1TGCT: could not find one of the classes?" << std::endl;
329 for ( L1GctEmCandCollection::const_iterator iem = gctIsoEmCands->begin();
330 iem != gctIsoEmCands->end(); ++iem) {
334 << iem->etaIndex() <<
"("
349 for (L1CaloEmCollection::const_iterator iem = em->begin();
350 iem != em->end(); ++iem) {
357 RctObject h(
id.rctEta(),
id.rctPhi(), iem->rank());
358 if ( !iem->isolated() )
359 rcj_non_iso.push_back(
h);
361 rcj_iso.push_back(
h);
369 for (RctObjectCollection::reverse_iterator ij = rcj_iso.rbegin();
370 ij != rcj_iso.rend() && ij != rcj_iso.rbegin()+8; ++ij) {
372 << ij->rank_ <<
", " << ij->eta_ <<
", " << ij->phi_
376 L1GctEmCandCollection::const_iterator lead_em = gctIsoEmCands->begin();
377 if ( !lead_em->empty() ) {
385 for ( L1GctEmCandCollection::const_iterator iem
386 = gctNonIsoEmCands->begin(); iem != gctNonIsoEmCands->end();
388 if ( ! iem->empty() )
389 std::cout <<
"GCT EM non: " << iem->rank()
400 for (RctObjectCollection::reverse_iterator ij = rcj_non_iso.rbegin();
401 ij != rcj_non_iso.rend() && ij != rcj_non_iso.rbegin()+8; ++ij) {
403 << ij->rank_ <<
", " << ij->eta_ <<
", " << ij->phi_
407 lead_em = gctNonIsoEmCands->begin();
408 if ( !lead_em->empty() ) {
410 rcj_non_iso.rbegin()->eta_);
412 rcj_non_iso.rbegin()->phi_);
414 rcj_non_iso.rbegin()->rank_);
423 <<
"can't find EcalTrigPrimCollection with label "
429 ieTP != eTP->end(); ieTP++) {
430 ecalobs.push_back(
RctObject(ieTP->id().ieta(),
432 ieTP->compressedEt()));
436 for (RctObjectCollection::reverse_iterator ij = ecalobs.rbegin();
437 ij != ecalobs.rend() && ij != ecalobs.rbegin()+8; ++ij) {
439 << ij->rank_ <<
", " << ij->eta_ <<
", " << ij->phi_
444 if ( rcj.rbegin()->rank_ > 4 ) {
446 ecalobs.rbegin()->eta_);
447 int e2 = (rcj.rbegin()->eta_&0x7UL)* ((rcj.rbegin()->eta_&0x8UL)?1:-1);
451 ecalobs.rbegin()->rank_);
454 int seta = rcj.rbegin()->eta_;
455 seta = (seta&0x7UL)*(seta&0x8?-1:1);
457 << rcj.rbegin()->eta_ <<
" "
458 << rcj.rbegin()->phi_ <<
" "
459 << rcj.rbegin()->rank_ <<
" "
460 << (++rcj.rbegin())->rank_<<
" "
461 << ecalobs.rbegin()->eta_ <<
" "
462 << ecalobs.rbegin()->phi_ <<
" "
463 << ecalobs.rbegin()->rank_ <<
" "
464 << (++ecalobs.rbegin())->rank_<<
" "
const unsigned int R6BINS
T getUntrackedParameter(std::string const &, T const &) const
const unsigned int R12BINS
MonitorElement * rctGctLeadingIsoEmRank_
void rmdir(const std::string &fullpath)
L1TCompare(const edm::ParameterSet &ps)
MonitorElement * rctGctLeadingIsoEmEta_
const unsigned int R10BINS
MonitorElement * ecalTpgRctLeadingEmEta2_
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")
std::vector< T >::const_iterator const_iterator
const unsigned int TPPHIBINS
MonitorElement * ecalTpgRctLeadingEmRank_
const unsigned int TPETABINS
MonitorElement * rctGctLeadingNonIsoEmEta_
void setVerbose(unsigned level)
void analyze(const edm::Event &e, const edm::EventSetup &c)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * rctGctLeadingIsoEmPhi_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
std::vector< L1TCompare::RctObject > RctObjectCollection
MonitorElement * ecalTpgRctLeadingEmEta_
edm::InputTag ecalTpgSource_
MonitorElement * rctGctLeadingNonIsoEmPhi_
MonitorElement * rctGctLeadingNonIsoEmRank_
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * ecalTpgRctLeadingEmPhi_