CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
L1TCompare Class Reference

#include <L1TCompare.h>

Inheritance diagram for L1TCompare:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Classes

class  RctObject
 
class  RctObjectComp
 

Public Member Functions

 L1TCompare (const edm::ParameterSet &ps)
 
virtual ~L1TCompare ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 
virtual void bookHistograms (DQMStore::IBooker &ibooker, edm::Run const &, edm::EventSetup const &) override
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
- Protected Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Types

typedef std::vector
< L1TCompare::RctObject
RctObjectCollection
 

Private Member Functions

bool verbose () const
 

Private Attributes

MonitorElementecalTpgRctLeadingEmEta2_
 
MonitorElementecalTpgRctLeadingEmEta_
 
MonitorElementecalTpgRctLeadingEmPhi_
 
MonitorElementecalTpgRctLeadingEmRank_
 
edm::InputTag ecalTpgSource_
 
edm::EDGetTokenT
< EcalTrigPrimDigiCollection
ecalTpgSource_token_
 
edm::EDGetTokenT
< L1GctJetCandCollection
gctCenJetsToken_
 
edm::EDGetTokenT
< L1GctEmCandCollection
gctIsoEmCandsToken_
 
edm::EDGetTokenT
< L1GctEmCandCollection
gctNonIsoEmCandsToken_
 
edm::InputTag gctSource_
 
std::ofstream logFile_
 
bool monitorDaemon_
 
int nev_
 
std::string outputFile_
 
MonitorElementrctGctLeadingIsoEmEta_
 
MonitorElementrctGctLeadingIsoEmPhi_
 
MonitorElementrctGctLeadingIsoEmRank_
 
MonitorElementrctGctLeadingNonIsoEmEta_
 
MonitorElementrctGctLeadingNonIsoEmPhi_
 
MonitorElementrctGctLeadingNonIsoEmRank_
 
edm::InputTag rctSource_
 
edm::EDGetTokenT
< L1CaloEmCollection
rctSourceEm_token_
 
edm::EDGetTokenT
< L1CaloRegionCollection
rctSourceRctEmRgn_token_
 
bool verbose_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 68 of file L1TCompare.h.

Member Typedef Documentation

Definition at line 136 of file L1TCompare.h.

Constructor & Destructor Documentation

L1TCompare::L1TCompare ( const edm::ParameterSet ps)

Definition at line 91 of file L1TCompare.cc.

References gather_cfg::cout, gctCenJetsToken_, gctIsoEmCandsToken_, gctNonIsoEmCandsToken_, gctSource_, edm::ParameterSet::getUntrackedParameter(), edm::InputTag::label(), outputFile_, AlCaHLTBitMon_QueryRunRegistry::string, verbose(), and verbose_.

91  :
92  rctSourceEm_token_( consumes<L1CaloEmCollection>(ps.getParameter< InputTag >("rctSource") ))
93  ,rctSourceRctEmRgn_token_( consumes<L1CaloRegionCollection>(ps.getParameter< InputTag >("rctSource") ))
94  ,rctSource_( ps.getParameter< InputTag >("rctSource") )
95  ,gctSource_( ps.getParameter< InputTag >("gctSource") )
96  ,ecalTpgSource_(ps.getParameter<edm::InputTag>("ecalTpgSource"))
97  ,ecalTpgSource_token_(consumes<EcalTrigPrimDigiCollection>(ps.getParameter<edm::InputTag>("ecalTpgSource")))
98 
99 {
100 
101  // verbosity switch
102  verbose_ = ps.getUntrackedParameter < bool > ("verbose", false);
103 
104  if (verbose())
105  std::cout << "L1TCompare: constructor...." << std::endl;
106 
107  outputFile_ =
108  ps.getUntrackedParameter < std::string > ("outputFile", "");
109  if (outputFile_.size() != 0) {
110  std::
111  cout << "L1T Monitoring histograms will be saved to " <<
112  outputFile_.c_str() << std::endl;
113  }
114 
115  bool disable =
116  ps.getUntrackedParameter < bool > ("disableROOToutput", false);
117  if (disable) {
118  outputFile_ = "";
119  }
120 
121  //set Token(-s)
122  edm::InputTag gctCenJetsTag_(gctSource_.label(),"cenJets");
123  edm::InputTag gctIsoEmCandsTag_(gctSource_.label(), "isoEm");
124  edm::InputTag gctNonIsoEmCandsTag_(gctSource_.label(), "nonIsoEm");
125 
126  gctCenJetsToken_ = consumes<L1GctJetCandCollection>(gctCenJetsTag_);
127  gctIsoEmCandsToken_ = consumes<L1GctEmCandCollection>(gctIsoEmCandsTag_);
128  gctNonIsoEmCandsToken_ = consumes<L1GctEmCandCollection>(gctNonIsoEmCandsTag_);
129 }
T getParameter(std::string const &) const
edm::EDGetTokenT< L1GctEmCandCollection > gctNonIsoEmCandsToken_
Definition: L1TCompare.h:124
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< L1CaloRegionCollection > rctSourceRctEmRgn_token_
Definition: L1TCompare.h:115
bool verbose() const
Definition: L1TCompare.h:110
edm::InputTag rctSource_
Definition: L1TCompare.h:116
edm::InputTag gctSource_
Definition: L1TCompare.h:117
bool verbose_
Definition: L1TCompare.h:109
edm::EDGetTokenT< L1GctJetCandCollection > gctCenJetsToken_
Definition: L1TCompare.h:122
edm::EDGetTokenT< L1CaloEmCollection > rctSourceEm_token_
Definition: L1TCompare.h:114
edm::InputTag ecalTpgSource_
Definition: L1TCompare.h:118
std::string const & label() const
Definition: InputTag.h:42
edm::EDGetTokenT< L1GctEmCandCollection > gctIsoEmCandsToken_
Definition: L1TCompare.h:123
std::string outputFile_
Definition: L1TCompare.h:108
edm::EDGetTokenT< EcalTrigPrimDigiCollection > ecalTpgSource_token_
Definition: L1TCompare.h:119
tuple cout
Definition: gather_cfg.py:121
L1TCompare::~L1TCompare ( )
virtual

Definition at line 131 of file L1TCompare.cc.

132 {
133 }

Member Function Documentation

void L1TCompare::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 214 of file L1TCompare.cc.

References ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, ecalTpgRctLeadingEmEta2_, ecalTpgRctLeadingEmEta_, ecalTpgRctLeadingEmPhi_, ecalTpgRctLeadingEmRank_, ecalTpgSource_, ecalTpgSource_token_, MonitorElement::Fill(), gctCenJetsToken_, gctIsoEmCandsToken_, gctNonIsoEmCandsToken_, edm::Event::getByToken(), h, edm::HandleBase::isValid(), edm::InputTag::label(), nev_, rctGctLeadingIsoEmEta_, rctGctLeadingIsoEmPhi_, rctGctLeadingIsoEmRank_, rctGctLeadingNonIsoEmEta_, rctGctLeadingNonIsoEmPhi_, rctGctLeadingNonIsoEmRank_, rctSource_, rctSourceEm_token_, rctSourceRctEmRgn_token_, python.multivaluedict::sort(), and verbose().

215 {
216  ++nev_;
217  if (verbose()) {
218  std::cout << "L1TCompare: analyze...." << std::endl;
219  }
220 
221  // L1E
227  // edm::Handle < L1EtMissParticle > l1eEtMiss;
229  // RCT
230  edm::Handle < L1CaloEmCollection > em; // collection of L1CaloEmCands
232 
233  // GCT
236  edm::Handle <L1GctEmCandCollection> gctNonIsoEmCands;
237 
238 
240 
241  if (!em.isValid()) {
242  edm::LogInfo("DataNotFound") << "can't find L1CaloEmCollection with label "
243  << rctSource_.label() ;
244  return;
245  }
246 
247 
249 
250  if (!rctEmRgn.isValid()) {
251  edm::LogInfo("DataNotFound") << "can't find "
252  << "L1CaloRegionCollection with label "
253  << rctSource_.label() ;
254  return;
255  }
256 
257  e.getByToken(gctCenJetsToken_, gctCenJets);
258  e.getByToken(gctIsoEmCandsToken_, gctIsoEmCands);
259  e.getByToken(gctNonIsoEmCandsToken_, gctNonIsoEmCands);
260 
261  if (!gctCenJets.isValid()) {
262  std::cerr << "L1TGCT: could not find one of the classes?" << std::endl;
263  return;
264  }
265  if (!gctIsoEmCands.isValid()) {
266  std::cerr << "L1TGCT: could not find one of the classes?" << std::endl;
267  return;
268  }
269  if (!gctNonIsoEmCands.isValid()) {
270  std::cerr << "L1TGCT: could not find one of the classes?" << std::endl;
271  return;
272  }
273 
274 
275  // GCT
276  if ( verbose() ) {
277  for ( L1GctEmCandCollection::const_iterator iem = gctIsoEmCands->begin();
278  iem != gctIsoEmCands->end(); ++iem) {
279  if ( !iem->empty() )
280  std::cout << "GCT EM: " << iem->rank()
281  << ", "
282  << iem->etaIndex() << "("
283  //<< int(iem->etaIndex()&0x3)*((iem->etaIndex()&0x4)?1:-1)
284  << "), "
285  << iem->phiIndex()
286  << std::endl;
287  }
288  }
289  // rct phi: 0-17
290  // rct eta: 0-21
291 
292 
293  // Fill the RCT histograms
294 
295  // Regions
296  RctObjectCollection rcj, rcj_iso, rcj_non_iso;
297  for (L1CaloEmCollection::const_iterator iem = em->begin();
298  iem != em->end(); ++iem) {
299  // L1CaloRegionDetId id(false, iem->rctCrate(), iem->rctCard(),
300  // iem->rctRegion());
301  L1CaloRegionDetId id(iem->rctCrate(), iem->rctCard(),
302  iem->rctRegion());
303 
304  // RctObject h(id.gctEta(), id.gctPhi(), iem->rank());
305  RctObject h(id.rctEta(), id.rctPhi(), iem->rank());
306  if ( !iem->isolated() )
307  rcj_non_iso.push_back(h);
308  else
309  rcj_iso.push_back(h);
310  rcj.push_back(h);
311  }
312  // not so smart but ...
313  std::sort(rcj.begin(), rcj.end(), RctObjectComp());
314  std::sort(rcj_non_iso.begin(), rcj_non_iso.end(), RctObjectComp());
315  std::sort(rcj_iso.begin(), rcj_iso.end(), RctObjectComp());
316  if ( verbose() ) {
317  for (RctObjectCollection::reverse_iterator ij = rcj_iso.rbegin();
318  ij != rcj_iso.rend() && ij != rcj_iso.rbegin()+8; ++ij) {
319  std::cout << "RCT cj: "
320  << ij->rank_ << ", " << ij->eta_ << ", " << ij->phi_
321  << std::endl;
322  }
323  }
324  L1GctEmCandCollection::const_iterator lead_em = gctIsoEmCands->begin();
325  if ( !lead_em->empty() ) { // equivalent to rank == 0
326  rctGctLeadingIsoEmEta_->Fill(lead_em->etaIndex(), rcj_iso.rbegin()->eta_);
327  rctGctLeadingIsoEmPhi_->Fill(lead_em->phiIndex(), rcj_iso.rbegin()->phi_);
328  rctGctLeadingIsoEmRank_->Fill(lead_em->rank(), rcj_iso.rbegin()->rank_);
329  }
330 
331  // non-isolated
332  if ( verbose() ) {
333  for ( L1GctEmCandCollection::const_iterator iem
334  = gctNonIsoEmCands->begin(); iem != gctNonIsoEmCands->end();
335  ++iem) {
336  if ( ! iem->empty() )
337  std::cout << "GCT EM non: " << iem->rank()
338  << ", "
339  << iem->etaIndex() //<< "("
340  //<< int(iem->etaIndex()&0x3)*((iem->etaIndex()&0x4)?1:-1)
341  //<< ")"
342  << ", "
343  << iem->phiIndex()
344  << std::endl;
345  }
346  }
347  if ( verbose() ) {
348  for (RctObjectCollection::reverse_iterator ij = rcj_non_iso.rbegin();
349  ij != rcj_non_iso.rend() && ij != rcj_non_iso.rbegin()+8; ++ij) {
350  std::cout << "RCT cj non: "
351  << ij->rank_ << ", " << ij->eta_ << ", " << ij->phi_
352  << std::endl;
353  }
354  }
355  lead_em = gctNonIsoEmCands->begin();
356  if ( !lead_em->empty() ) { // equivalent to rank != 0
357  rctGctLeadingNonIsoEmEta_->Fill(lead_em->etaIndex(),
358  rcj_non_iso.rbegin()->eta_);
359  rctGctLeadingNonIsoEmPhi_->Fill(lead_em->phiIndex(),
360  rcj_non_iso.rbegin()->phi_);
361  rctGctLeadingNonIsoEmRank_->Fill(lead_em->rank(),
362  rcj_non_iso.rbegin()->rank_);
363  }
364 
365  // ECAL TPG's to RCT EM
368 
369  if (!eTP.isValid()) {
370  edm::LogInfo("DataNotFound")
371  << "can't find EcalTrigPrimCollection with label "
372  << ecalTpgSource_.label() ;
373  return;
374  }
375  RctObjectCollection ecalobs;
376  for (EcalTrigPrimDigiCollection::const_iterator ieTP = eTP->begin();
377  ieTP != eTP->end(); ieTP++) {
378  ecalobs.push_back(RctObject(ieTP->id().ieta(),
379  ieTP->id().iphi(),
380  ieTP->compressedEt()));
381  }
382  std::sort(ecalobs.begin(), ecalobs.end(), RctObjectComp());
383  if ( verbose() ) {
384  for (RctObjectCollection::reverse_iterator ij = ecalobs.rbegin();
385  ij != ecalobs.rend() && ij != ecalobs.rbegin()+8; ++ij) {
386  std::cout << "ECAL cj : "
387  << ij->rank_ << ", " << ij->eta_ << ", " << ij->phi_
388  << std::endl;
389  }
390  }
391  // abritrary cut
392  if ( rcj.rbegin()->rank_ > 4 ) {
393  ecalTpgRctLeadingEmEta_->Fill(rcj.rbegin()->eta_,
394  ecalobs.rbegin()->eta_);
395  int e2 = (rcj.rbegin()->eta_&0x7UL)* ((rcj.rbegin()->eta_&0x8UL)?1:-1);
396  ecalTpgRctLeadingEmEta2_->Fill(e2, ecalobs.rbegin()->eta_);
397  ecalTpgRctLeadingEmPhi_->Fill(rcj.rbegin()->phi_, ecalobs.rbegin()->phi_);
398  ecalTpgRctLeadingEmRank_->Fill(rcj.rbegin()->rank_,
399  ecalobs.rbegin()->rank_);
400  }
401  if ( verbose() ) {
402  int seta = rcj.rbegin()->eta_;
403  seta = (seta&0x7UL)*(seta&0x8?-1:1);
404  std::cout << "ZZ: "
405  << rcj.rbegin()->eta_ << " "
406  << rcj.rbegin()->phi_ << " "
407  << rcj.rbegin()->rank_ << " "
408  << (++rcj.rbegin())->rank_<< " "
409  << ecalobs.rbegin()->eta_ << " "
410  << ecalobs.rbegin()->phi_ << " "
411  << ecalobs.rbegin()->rank_ << " "
412  << (++ecalobs.rbegin())->rank_<< " "
413  << seta << " "
414  << std::endl;
415  }
416 
417 
418 
419 }
edm::EDGetTokenT< L1GctEmCandCollection > gctNonIsoEmCandsToken_
Definition: L1TCompare.h:124
edm::EDGetTokenT< L1CaloRegionCollection > rctSourceRctEmRgn_token_
Definition: L1TCompare.h:115
MonitorElement * rctGctLeadingIsoEmRank_
Definition: L1TCompare.h:93
bool verbose() const
Definition: L1TCompare.h:110
MonitorElement * rctGctLeadingIsoEmEta_
Definition: L1TCompare.h:91
edm::InputTag rctSource_
Definition: L1TCompare.h:116
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:449
MonitorElement * ecalTpgRctLeadingEmEta2_
Definition: L1TCompare.h:101
std::vector< EcalTriggerPrimitiveDigi >::const_iterator const_iterator
void Fill(long long x)
MonitorElement * ecalTpgRctLeadingEmRank_
Definition: L1TCompare.h:103
MonitorElement * rctGctLeadingNonIsoEmEta_
Definition: L1TCompare.h:95
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
bool isValid() const
Definition: HandleBase.h:75
edm::EDGetTokenT< L1GctJetCandCollection > gctCenJetsToken_
Definition: L1TCompare.h:122
edm::EDGetTokenT< L1CaloEmCollection > rctSourceEm_token_
Definition: L1TCompare.h:114
MonitorElement * rctGctLeadingIsoEmPhi_
Definition: L1TCompare.h:92
std::vector< L1TCompare::RctObject > RctObjectCollection
Definition: L1TCompare.h:136
MonitorElement * ecalTpgRctLeadingEmEta_
Definition: L1TCompare.h:100
edm::InputTag ecalTpgSource_
Definition: L1TCompare.h:118
MonitorElement * rctGctLeadingNonIsoEmPhi_
Definition: L1TCompare.h:96
std::string const & label() const
Definition: InputTag.h:42
edm::EDGetTokenT< L1GctEmCandCollection > gctIsoEmCandsToken_
Definition: L1TCompare.h:123
edm::EDGetTokenT< EcalTrigPrimDigiCollection > ecalTpgSource_token_
Definition: L1TCompare.h:119
MonitorElement * rctGctLeadingNonIsoEmRank_
Definition: L1TCompare.h:97
tuple cout
Definition: gather_cfg.py:121
MonitorElement * ecalTpgRctLeadingEmPhi_
Definition: L1TCompare.h:102
void L1TCompare::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 139 of file L1TCompare.cc.

References DQMStore::IBooker::book2D(), ecalTpgRctLeadingEmEta2_, ecalTpgRctLeadingEmEta_, ecalTpgRctLeadingEmPhi_, ecalTpgRctLeadingEmRank_, ETABINS, ETAMAX, ETAMIN, nev_, PHIBINS, PHIMAX, PHIMIN, R6BINS, R6MAX, R6MIN, rctGctLeadingIsoEmEta_, rctGctLeadingIsoEmPhi_, rctGctLeadingIsoEmRank_, rctGctLeadingNonIsoEmEta_, rctGctLeadingNonIsoEmPhi_, rctGctLeadingNonIsoEmRank_, MonitorElement::setAxisTitle(), DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, TPETABINS, TPETAMAX, TPETAMIN, TPPHIBINS, TPPHIMAX, and TPPHIMIN.

140 {
141  nev_ = 0;
142 
143  ibooker.setCurrentFolder("L1T/Compare");
144 
145  // -------------------------------------------
146  // RCT-GCT
147  // -------------------------------------------
148  // Isolated
149  rctGctLeadingIsoEmRank_ = ibooker.book2D("rctGctLeadingIsoEmRank",
150  "RCT-GCT: rank", R6BINS, R6MIN, R6MAX,
151  R6BINS, R6MIN, R6MAX);
154  rctGctLeadingIsoEmEta_ = ibooker.book2D("rctGctLeadingIsoEmEta",
155  "RCT-GCT: #eta", ETABINS, ETAMIN, ETAMAX,
156  ETABINS, ETAMIN, ETAMAX);
159 
160  rctGctLeadingIsoEmPhi_ = ibooker.book2D("rctGctLeadingIsoEmPhi",
161  "RCT-GCT: #phi", PHIBINS, PHIMIN, PHIMAX,
162  PHIBINS, PHIMIN, PHIMAX);
165  // non-Isolated
166  rctGctLeadingNonIsoEmRank_ = ibooker.book2D("rctGctLeadingNonIsoEmRank",
167  "RCT-GCT: rank", R6BINS, R6MIN, R6MAX,
168  R6BINS, R6MIN, R6MAX);
171 
172  rctGctLeadingNonIsoEmEta_ = ibooker.book2D("rctGctLeadingNonIsoEmEta",
173  "RCT-GCT: #eta", ETABINS, ETAMIN, ETAMAX,
174  ETABINS, ETAMIN, ETAMAX);
177 
178  rctGctLeadingNonIsoEmPhi_ = ibooker.book2D("rctGctLeadingNonIsoEmPhi",
179  "RCT-GCT: #phi", PHIBINS, PHIMIN, PHIMAX,
180  PHIBINS, PHIMIN, PHIMAX);
183  // -------------------------------------------
184  // ECAL TPG - RCT
185  // -------------------------------------------
186  ecalTpgRctLeadingEmRank_ = ibooker.book2D("ecalTpgRctLeadingEmRank",
187  "ECAL TPG-RCT: rank",
188  R6BINS, R6MIN, R6MAX,
189  R6BINS, R6MIN, R6MAX);
192 
193  ecalTpgRctLeadingEmEta_ = ibooker.book2D("ecalTpgRctLeadingEmEta",
194  "ECAL TPG-RCT: #eta",
195  15, -0.5, 14.5,
199  ecalTpgRctLeadingEmEta2_ = ibooker.book2D("ecalTpgRctLeadingEmEta2",
200  "ECAL TPG-RCT: #eta (2)",
201  13, -6.5, 6.5,
205  ecalTpgRctLeadingEmPhi_ = ibooker.book2D("ecalTpgRctLeadingEmPhi",
206  "ECAL TPG-RCT: #phi",
211  //}
212 }
const unsigned int R6BINS
Definition: L1TCompare.cc:71
#define PHIMAX
MonitorElement * rctGctLeadingIsoEmRank_
Definition: L1TCompare.h:93
const float TPETAMIN
Definition: L1TCompare.cc:87
MonitorElement * rctGctLeadingIsoEmEta_
Definition: L1TCompare.h:91
MonitorElement * ecalTpgRctLeadingEmEta2_
Definition: L1TCompare.h:101
const unsigned int TPPHIBINS
Definition: L1TCompare.cc:82
MonitorElement * ecalTpgRctLeadingEmRank_
Definition: L1TCompare.h:103
#define ETAMAX
const float TPETAMAX
Definition: L1TCompare.cc:88
const unsigned int TPETABINS
Definition: L1TCompare.cc:86
MonitorElement * rctGctLeadingNonIsoEmEta_
Definition: L1TCompare.h:95
#define ETAMIN
const float R6MAX
Definition: L1TCompare.cc:73
#define PHIMIN
const float TPPHIMIN
Definition: L1TCompare.cc:83
const float R6MIN
Definition: L1TCompare.cc:72
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
const float TPPHIMAX
Definition: L1TCompare.cc:84
MonitorElement * rctGctLeadingIsoEmPhi_
Definition: L1TCompare.h:92
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
#define ETABINS
MonitorElement * ecalTpgRctLeadingEmEta_
Definition: L1TCompare.h:100
MonitorElement * rctGctLeadingNonIsoEmPhi_
Definition: L1TCompare.h:96
#define PHIBINS
MonitorElement * rctGctLeadingNonIsoEmRank_
Definition: L1TCompare.h:97
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * ecalTpgRctLeadingEmPhi_
Definition: L1TCompare.h:102
void L1TCompare::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
protectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 135 of file L1TCompare.cc.

135  {
136  //
137 }
bool L1TCompare::verbose ( ) const
inlineprivate

Definition at line 110 of file L1TCompare.h.

References verbose_.

Referenced by analyze(), and L1TCompare().

110 { return verbose_; };
bool verbose_
Definition: L1TCompare.h:109

Member Data Documentation

MonitorElement* L1TCompare::ecalTpgRctLeadingEmEta2_
private

Definition at line 101 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TCompare::ecalTpgRctLeadingEmEta_
private

Definition at line 100 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TCompare::ecalTpgRctLeadingEmPhi_
private

Definition at line 102 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TCompare::ecalTpgRctLeadingEmRank_
private

Definition at line 103 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

edm::InputTag L1TCompare::ecalTpgSource_
private

Definition at line 118 of file L1TCompare.h.

Referenced by analyze().

edm::EDGetTokenT<EcalTrigPrimDigiCollection> L1TCompare::ecalTpgSource_token_
private

Definition at line 119 of file L1TCompare.h.

Referenced by analyze().

edm::EDGetTokenT<L1GctJetCandCollection> L1TCompare::gctCenJetsToken_
private

Definition at line 122 of file L1TCompare.h.

Referenced by analyze(), and L1TCompare().

edm::EDGetTokenT<L1GctEmCandCollection> L1TCompare::gctIsoEmCandsToken_
private

Definition at line 123 of file L1TCompare.h.

Referenced by analyze(), and L1TCompare().

edm::EDGetTokenT<L1GctEmCandCollection> L1TCompare::gctNonIsoEmCandsToken_
private

Definition at line 124 of file L1TCompare.h.

Referenced by analyze(), and L1TCompare().

edm::InputTag L1TCompare::gctSource_
private

Definition at line 117 of file L1TCompare.h.

Referenced by L1TCompare().

std::ofstream L1TCompare::logFile_
private

Definition at line 112 of file L1TCompare.h.

bool L1TCompare::monitorDaemon_
private

Definition at line 110 of file L1TCompare.h.

int L1TCompare::nev_
private

Definition at line 107 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

std::string L1TCompare::outputFile_
private

Definition at line 108 of file L1TCompare.h.

Referenced by L1TCompare().

MonitorElement* L1TCompare::rctGctLeadingIsoEmEta_
private

Definition at line 91 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TCompare::rctGctLeadingIsoEmPhi_
private

Definition at line 92 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TCompare::rctGctLeadingIsoEmRank_
private

Definition at line 93 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TCompare::rctGctLeadingNonIsoEmEta_
private

Definition at line 95 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TCompare::rctGctLeadingNonIsoEmPhi_
private

Definition at line 96 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* L1TCompare::rctGctLeadingNonIsoEmRank_
private

Definition at line 97 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

edm::InputTag L1TCompare::rctSource_
private

Definition at line 116 of file L1TCompare.h.

Referenced by analyze().

edm::EDGetTokenT<L1CaloEmCollection> L1TCompare::rctSourceEm_token_
private

Definition at line 114 of file L1TCompare.h.

Referenced by analyze().

edm::EDGetTokenT<L1CaloRegionCollection> L1TCompare::rctSourceRctEmRgn_token_
private

Definition at line 115 of file L1TCompare.h.

Referenced by analyze().

bool L1TCompare::verbose_
private

Definition at line 109 of file L1TCompare.h.

Referenced by L1TCompare(), and verbose().