CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes
L1TCompare Class Reference

#include <L1TCompare.h>

Inheritance diagram for L1TCompare:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Classes

class  RctObject
 

Public Member Functions

 L1TCompare (const edm::ParameterSet &ps)
 
 ~L1TCompare () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
void bookHistograms (DQMStore::IBooker &ibooker, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Types

typedef std::vector< L1TCompare::RctObjectRctObjectCollection
 

Private Member Functions

bool verbose () const
 

Static Private Member Functions

static bool rctObjectComp (const RctObject &a, const RctObject &b)
 

Private Attributes

MonitorElementecalTpgRctLeadingEmEta2_
 
MonitorElementecalTpgRctLeadingEmEta_
 
MonitorElementecalTpgRctLeadingEmPhi_
 
MonitorElementecalTpgRctLeadingEmRank_
 
edm::InputTag ecalTpgSource_
 
edm::EDGetTokenT< EcalTrigPrimDigiCollectionecalTpgSource_token_
 
edm::EDGetTokenT< L1GctJetCandCollectiongctCenJetsToken_
 
edm::EDGetTokenT< L1GctEmCandCollectiongctIsoEmCandsToken_
 
edm::EDGetTokenT< L1GctEmCandCollectiongctNonIsoEmCandsToken_
 
edm::InputTag gctSource_
 
std::ofstream logFile_
 
bool monitorDaemon_
 
int nev_
 
std::string outputFile_
 
MonitorElementrctGctLeadingIsoEmEta_
 
MonitorElementrctGctLeadingIsoEmPhi_
 
MonitorElementrctGctLeadingIsoEmRank_
 
MonitorElementrctGctLeadingNonIsoEmEta_
 
MonitorElementrctGctLeadingNonIsoEmPhi_
 
MonitorElementrctGctLeadingNonIsoEmRank_
 
edm::InputTag rctSource_
 
edm::EDGetTokenT< L1CaloEmCollectionrctSourceEm_token_
 
edm::EDGetTokenT< L1CaloRegionCollectionrctSourceRctEmRgn_token_
 
bool verbose_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 61 of file L1TCompare.h.

Member Typedef Documentation

◆ RctObjectCollection

Definition at line 122 of file L1TCompare.h.

Constructor & Destructor Documentation

◆ L1TCompare()

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

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

◆ ~L1TCompare()

L1TCompare::~L1TCompare ( )
override

Definition at line 125 of file L1TCompare.cc.

125 {}

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 191 of file L1TCompare.cc.

References edm::SortedCollection< T, SORT >::begin(), DMR_cfg::cerr, gather_cfg::cout, MillePedeFileConverter_cfg::e, ecalTpgRctLeadingEmEta2_, ecalTpgRctLeadingEmEta_, ecalTpgRctLeadingEmPhi_, ecalTpgRctLeadingEmRank_, ecalTpgSource_, ecalTpgSource_token_, edm::SortedCollection< T, SORT >::end(), dqm::impl::MonitorElement::Fill(), gctCenJetsToken_, gctIsoEmCandsToken_, gctNonIsoEmCandsToken_, h, l1ctLayer2EG_cff::id, edm::HandleBase::isValid(), edm::InputTag::label(), nev_, rctGctLeadingIsoEmEta_, rctGctLeadingIsoEmPhi_, rctGctLeadingIsoEmRank_, rctGctLeadingNonIsoEmEta_, rctGctLeadingNonIsoEmPhi_, rctGctLeadingNonIsoEmRank_, rctObjectComp(), rctSource_, rctSourceEm_token_, rctSourceRctEmRgn_token_, jetUpdater_cfi::sort, and verbose().

191  {
192  ++nev_;
193  if (verbose()) {
194  std::cout << "L1TCompare: analyze...." << std::endl;
195  }
196 
197  // L1E
203  // edm::Handle < L1EtMissParticle > l1eEtMiss;
205  // RCT
206  edm::Handle<L1CaloEmCollection> em; // collection of L1CaloEmCands
208 
209  // GCT
212  edm::Handle<L1GctEmCandCollection> gctNonIsoEmCands;
213 
214  e.getByToken(rctSourceEm_token_, em);
215 
216  if (!em.isValid()) {
217  edm::LogInfo("DataNotFound") << "can't find L1CaloEmCollection with label " << rctSource_.label();
218  return;
219  }
220 
221  e.getByToken(rctSourceRctEmRgn_token_, rctEmRgn);
222 
223  if (!rctEmRgn.isValid()) {
224  edm::LogInfo("DataNotFound") << "can't find "
225  << "L1CaloRegionCollection with label " << rctSource_.label();
226  return;
227  }
228 
229  e.getByToken(gctCenJetsToken_, gctCenJets);
230  e.getByToken(gctIsoEmCandsToken_, gctIsoEmCands);
231  e.getByToken(gctNonIsoEmCandsToken_, gctNonIsoEmCands);
232 
233  if (!gctCenJets.isValid()) {
234  std::cerr << "L1TGCT: could not find one of the classes?" << std::endl;
235  return;
236  }
237  if (!gctIsoEmCands.isValid()) {
238  std::cerr << "L1TGCT: could not find one of the classes?" << std::endl;
239  return;
240  }
241  if (!gctNonIsoEmCands.isValid()) {
242  std::cerr << "L1TGCT: could not find one of the classes?" << std::endl;
243  return;
244  }
245 
246  // GCT
247  if (verbose()) {
248  for (L1GctEmCandCollection::const_iterator iem = gctIsoEmCands->begin(); iem != gctIsoEmCands->end(); ++iem) {
249  if (!iem->empty())
250  std::cout << "GCT EM: " << iem->rank() << ", " << iem->etaIndex()
251  << "("
252  //<< int(iem->etaIndex()&0x3)*((iem->etaIndex()&0x4)?1:-1)
253  << "), " << iem->phiIndex() << std::endl;
254  }
255  }
256  // rct phi: 0-17
257  // rct eta: 0-21
258 
259  // Fill the RCT histograms
260 
261  // Regions
262  RctObjectCollection rcj, rcj_iso, rcj_non_iso;
263  for (L1CaloEmCollection::const_iterator iem = em->begin(); iem != em->end(); ++iem) {
264  // L1CaloRegionDetId id(false, iem->rctCrate(), iem->rctCard(),
265  // iem->rctRegion());
266  L1CaloRegionDetId id(iem->rctCrate(), iem->rctCard(), iem->rctRegion());
267 
268  // RctObject h(id.gctEta(), id.gctPhi(), iem->rank());
269  RctObject h(id.rctEta(), id.rctPhi(), iem->rank());
270  if (!iem->isolated())
271  rcj_non_iso.push_back(h);
272  else
273  rcj_iso.push_back(h);
274  rcj.push_back(h);
275  }
276  // not so smart but ...
277  std::sort(rcj.begin(), rcj.end(), rctObjectComp);
278  std::sort(rcj_non_iso.begin(), rcj_non_iso.end(), rctObjectComp);
279  std::sort(rcj_iso.begin(), rcj_iso.end(), rctObjectComp);
280  if (verbose()) {
281  for (RctObjectCollection::reverse_iterator ij = rcj_iso.rbegin();
282  ij != rcj_iso.rend() && ij != rcj_iso.rbegin() + 8;
283  ++ij) {
284  std::cout << "RCT cj: " << ij->rank_ << ", " << ij->eta_ << ", " << ij->phi_ << std::endl;
285  }
286  }
287  L1GctEmCandCollection::const_iterator lead_em = gctIsoEmCands->begin();
288  if (!lead_em->empty()) { // equivalent to rank == 0
289  rctGctLeadingIsoEmEta_->Fill(lead_em->etaIndex(), rcj_iso.rbegin()->eta_);
290  rctGctLeadingIsoEmPhi_->Fill(lead_em->phiIndex(), rcj_iso.rbegin()->phi_);
291  rctGctLeadingIsoEmRank_->Fill(lead_em->rank(), rcj_iso.rbegin()->rank_);
292  }
293 
294  // non-isolated
295  if (verbose()) {
296  for (L1GctEmCandCollection::const_iterator iem = gctNonIsoEmCands->begin(); iem != gctNonIsoEmCands->end(); ++iem) {
297  if (!iem->empty())
298  std::cout << "GCT EM non: " << iem->rank() << ", "
299  << iem->etaIndex() //<< "("
300  //<< int(iem->etaIndex()&0x3)*((iem->etaIndex()&0x4)?1:-1)
301  //<< ")"
302  << ", " << iem->phiIndex() << std::endl;
303  }
304  }
305  if (verbose()) {
306  for (RctObjectCollection::reverse_iterator ij = rcj_non_iso.rbegin();
307  ij != rcj_non_iso.rend() && ij != rcj_non_iso.rbegin() + 8;
308  ++ij) {
309  std::cout << "RCT cj non: " << ij->rank_ << ", " << ij->eta_ << ", " << ij->phi_ << std::endl;
310  }
311  }
312  lead_em = gctNonIsoEmCands->begin();
313  if (!lead_em->empty()) { // equivalent to rank != 0
314  rctGctLeadingNonIsoEmEta_->Fill(lead_em->etaIndex(), rcj_non_iso.rbegin()->eta_);
315  rctGctLeadingNonIsoEmPhi_->Fill(lead_em->phiIndex(), rcj_non_iso.rbegin()->phi_);
316  rctGctLeadingNonIsoEmRank_->Fill(lead_em->rank(), rcj_non_iso.rbegin()->rank_);
317  }
318 
319  // ECAL TPG's to RCT EM
321  e.getByToken(ecalTpgSource_token_, eTP);
322 
323  if (!eTP.isValid()) {
324  edm::LogInfo("DataNotFound") << "can't find EcalTrigPrimCollection with label " << ecalTpgSource_.label();
325  return;
326  }
327  RctObjectCollection ecalobs;
328  for (EcalTrigPrimDigiCollection::const_iterator ieTP = eTP->begin(); ieTP != eTP->end(); ieTP++) {
329  ecalobs.push_back(RctObject(ieTP->id().ieta(), ieTP->id().iphi(), ieTP->compressedEt()));
330  }
331  std::sort(ecalobs.begin(), ecalobs.end(), rctObjectComp);
332  if (verbose()) {
333  for (RctObjectCollection::reverse_iterator ij = ecalobs.rbegin();
334  ij != ecalobs.rend() && ij != ecalobs.rbegin() + 8;
335  ++ij) {
336  std::cout << "ECAL cj : " << ij->rank_ << ", " << ij->eta_ << ", " << ij->phi_ << std::endl;
337  }
338  }
339  // abritrary cut
340  if (rcj.rbegin()->rank_ > 4) {
341  ecalTpgRctLeadingEmEta_->Fill(rcj.rbegin()->eta_, ecalobs.rbegin()->eta_);
342  int e2 = (rcj.rbegin()->eta_ & 0x7UL) * ((rcj.rbegin()->eta_ & 0x8UL) ? 1 : -1);
343  ecalTpgRctLeadingEmEta2_->Fill(e2, ecalobs.rbegin()->eta_);
344  ecalTpgRctLeadingEmPhi_->Fill(rcj.rbegin()->phi_, ecalobs.rbegin()->phi_);
345  ecalTpgRctLeadingEmRank_->Fill(rcj.rbegin()->rank_, ecalobs.rbegin()->rank_);
346  }
347  if (verbose()) {
348  int seta = rcj.rbegin()->eta_;
349  seta = (seta & 0x7UL) * (seta & 0x8 ? -1 : 1);
350  std::cout << "ZZ: " << rcj.rbegin()->eta_ << " " << rcj.rbegin()->phi_ << " " << rcj.rbegin()->rank_ << " "
351  << (++rcj.rbegin())->rank_ << " " << ecalobs.rbegin()->eta_ << " " << ecalobs.rbegin()->phi_ << " "
352  << ecalobs.rbegin()->rank_ << " " << (++ecalobs.rbegin())->rank_ << " " << seta << " " << std::endl;
353  }
354 }
edm::EDGetTokenT< L1GctEmCandCollection > gctNonIsoEmCandsToken_
Definition: L1TCompare.h:113
edm::EDGetTokenT< L1CaloRegionCollection > rctSourceRctEmRgn_token_
Definition: L1TCompare.h:104
MonitorElement * rctGctLeadingIsoEmRank_
Definition: L1TCompare.h:84
MonitorElement * rctGctLeadingIsoEmEta_
Definition: L1TCompare.h:82
edm::InputTag rctSource_
Definition: L1TCompare.h:105
MonitorElement * ecalTpgRctLeadingEmEta2_
Definition: L1TCompare.h:92
std::vector< T >::const_iterator const_iterator
std::string const & label() const
Definition: InputTag.h:36
static bool rctObjectComp(const RctObject &a, const RctObject &b)
Definition: L1TCompare.h:127
MonitorElement * ecalTpgRctLeadingEmRank_
Definition: L1TCompare.h:94
void Fill(long long x)
MonitorElement * rctGctLeadingNonIsoEmEta_
Definition: L1TCompare.h:86
const_iterator begin() const
const_iterator end() const
Log< level::Info, false > LogInfo
edm::EDGetTokenT< L1GctJetCandCollection > gctCenJetsToken_
Definition: L1TCompare.h:111
edm::EDGetTokenT< L1CaloEmCollection > rctSourceEm_token_
Definition: L1TCompare.h:103
MonitorElement * rctGctLeadingIsoEmPhi_
Definition: L1TCompare.h:83
std::vector< L1TCompare::RctObject > RctObjectCollection
Definition: L1TCompare.h:122
MonitorElement * ecalTpgRctLeadingEmEta_
Definition: L1TCompare.h:91
edm::InputTag ecalTpgSource_
Definition: L1TCompare.h:107
bool isValid() const
Definition: HandleBase.h:70
MonitorElement * rctGctLeadingNonIsoEmPhi_
Definition: L1TCompare.h:87
edm::EDGetTokenT< L1GctEmCandCollection > gctIsoEmCandsToken_
Definition: L1TCompare.h:112
edm::EDGetTokenT< EcalTrigPrimDigiCollection > ecalTpgSource_token_
Definition: L1TCompare.h:108
MonitorElement * rctGctLeadingNonIsoEmRank_
Definition: L1TCompare.h:88
bool verbose() const
Definition: L1TCompare.h:99
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * ecalTpgRctLeadingEmPhi_
Definition: L1TCompare.h:93

◆ bookHistograms()

void L1TCompare::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 131 of file L1TCompare.cc.

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

131  {
132  nev_ = 0;
133 
134  ibooker.setCurrentFolder("L1T/Compare");
135 
136  // -------------------------------------------
137  // RCT-GCT
138  // -------------------------------------------
139  // Isolated
141  ibooker.book2D("rctGctLeadingIsoEmRank", "RCT-GCT: rank", R6BINS, R6MIN, R6MAX, R6BINS, R6MIN, R6MAX);
145  ibooker.book2D("rctGctLeadingIsoEmEta", "RCT-GCT: #eta", ETABINS, ETAMIN, ETAMAX, ETABINS, ETAMIN, ETAMAX);
148 
150  ibooker.book2D("rctGctLeadingIsoEmPhi", "RCT-GCT: #phi", PHIBINS, PHIMIN, PHIMAX, PHIBINS, PHIMIN, PHIMAX);
153  // non-Isolated
155  ibooker.book2D("rctGctLeadingNonIsoEmRank", "RCT-GCT: rank", R6BINS, R6MIN, R6MAX, R6BINS, R6MIN, R6MAX);
158 
160  ibooker.book2D("rctGctLeadingNonIsoEmEta", "RCT-GCT: #eta", ETABINS, ETAMIN, ETAMAX, ETABINS, ETAMIN, ETAMAX);
163 
165  ibooker.book2D("rctGctLeadingNonIsoEmPhi", "RCT-GCT: #phi", PHIBINS, PHIMIN, PHIMAX, PHIBINS, PHIMIN, PHIMAX);
168  // -------------------------------------------
169  // ECAL TPG - RCT
170  // -------------------------------------------
172  ibooker.book2D("ecalTpgRctLeadingEmRank", "ECAL TPG-RCT: rank", R6BINS, R6MIN, R6MAX, R6BINS, R6MIN, R6MAX);
175 
177  ibooker.book2D("ecalTpgRctLeadingEmEta", "ECAL TPG-RCT: #eta", 15, -0.5, 14.5, TPETABINS, TPETAMIN, TPETAMAX);
181  ibooker.book2D("ecalTpgRctLeadingEmEta2", "ECAL TPG-RCT: #eta (2)", 13, -6.5, 6.5, TPETABINS, TPETAMIN, TPETAMAX);
185  "ecalTpgRctLeadingEmPhi", "ECAL TPG-RCT: #phi", PHIBINS, PHIMIN, PHIMAX, TPPHIBINS, TPPHIMIN, TPPHIMAX);
188  //}
189 }
const unsigned int R6BINS
Definition: L1TCompare.cc:71
const float ETAMAX
Definition: L1TCompare.cc:79
MonitorElement * rctGctLeadingIsoEmRank_
Definition: L1TCompare.h:84
const unsigned int ETABINS
Definition: L1TCompare.cc:77
const float TPETAMIN
Definition: L1TCompare.cc:87
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
MonitorElement * rctGctLeadingIsoEmEta_
Definition: L1TCompare.h:82
const float ETAMIN
Definition: L1TCompare.cc:78
MonitorElement * ecalTpgRctLeadingEmEta2_
Definition: L1TCompare.h:92
const unsigned int TPPHIBINS
Definition: L1TCompare.cc:82
const float PHIMAX
Definition: L1TCompare.cc:68
const unsigned int PHIBINS
Definition: L1TCompare.cc:66
MonitorElement * ecalTpgRctLeadingEmRank_
Definition: L1TCompare.h:94
const float TPETAMAX
Definition: L1TCompare.cc:88
const unsigned int TPETABINS
Definition: L1TCompare.cc:86
MonitorElement * rctGctLeadingNonIsoEmEta_
Definition: L1TCompare.h:86
const float R6MAX
Definition: L1TCompare.cc:73
const float PHIMIN
Definition: L1TCompare.cc:67
const float TPPHIMIN
Definition: L1TCompare.cc:83
const float R6MIN
Definition: L1TCompare.cc:72
const float TPPHIMAX
Definition: L1TCompare.cc:84
MonitorElement * rctGctLeadingIsoEmPhi_
Definition: L1TCompare.h:83
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:212
MonitorElement * ecalTpgRctLeadingEmEta_
Definition: L1TCompare.h:91
MonitorElement * rctGctLeadingNonIsoEmPhi_
Definition: L1TCompare.h:87
MonitorElement * rctGctLeadingNonIsoEmRank_
Definition: L1TCompare.h:88
virtual 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:93

◆ dqmBeginRun()

void L1TCompare::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 127 of file L1TCompare.cc.

127  {
128  //
129 }

◆ rctObjectComp()

static bool L1TCompare::rctObjectComp ( const RctObject a,
const RctObject b 
)
inlinestaticprivate

Definition at line 127 of file L1TCompare.h.

References a, and b.

Referenced by analyze().

127  {
128  // for equal rank I don't know what the appropriate sorting is.
129  if (a.rank_ == b.rank_) {
130  if (a.eta_ == b.eta_) {
131  return a.phi_ < b.phi_;
132  } else {
133  return a.eta_ < b.eta_;
134  }
135  } else {
136  return a.rank_ < b.rank_;
137  }
138  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ verbose()

bool L1TCompare::verbose ( ) const
inlineprivate

Definition at line 99 of file L1TCompare.h.

References verbose_.

Referenced by analyze(), and L1TCompare().

99 { return verbose_; };
bool verbose_
Definition: L1TCompare.h:98

Member Data Documentation

◆ ecalTpgRctLeadingEmEta2_

MonitorElement* L1TCompare::ecalTpgRctLeadingEmEta2_
private

Definition at line 92 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ ecalTpgRctLeadingEmEta_

MonitorElement* L1TCompare::ecalTpgRctLeadingEmEta_
private

Definition at line 91 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ ecalTpgRctLeadingEmPhi_

MonitorElement* L1TCompare::ecalTpgRctLeadingEmPhi_
private

Definition at line 93 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ ecalTpgRctLeadingEmRank_

MonitorElement* L1TCompare::ecalTpgRctLeadingEmRank_
private

Definition at line 94 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ ecalTpgSource_

edm::InputTag L1TCompare::ecalTpgSource_
private

Definition at line 107 of file L1TCompare.h.

Referenced by analyze().

◆ ecalTpgSource_token_

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

Definition at line 108 of file L1TCompare.h.

Referenced by analyze().

◆ gctCenJetsToken_

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

Definition at line 111 of file L1TCompare.h.

Referenced by analyze(), and L1TCompare().

◆ gctIsoEmCandsToken_

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

Definition at line 112 of file L1TCompare.h.

Referenced by analyze(), and L1TCompare().

◆ gctNonIsoEmCandsToken_

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

Definition at line 113 of file L1TCompare.h.

Referenced by analyze(), and L1TCompare().

◆ gctSource_

edm::InputTag L1TCompare::gctSource_
private

Definition at line 106 of file L1TCompare.h.

Referenced by L1TCompare().

◆ logFile_

std::ofstream L1TCompare::logFile_
private

Definition at line 101 of file L1TCompare.h.

◆ monitorDaemon_

bool L1TCompare::monitorDaemon_
private

Definition at line 99 of file L1TCompare.h.

◆ nev_

int L1TCompare::nev_
private

Definition at line 96 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ outputFile_

std::string L1TCompare::outputFile_
private

Definition at line 97 of file L1TCompare.h.

Referenced by L1TCompare().

◆ rctGctLeadingIsoEmEta_

MonitorElement* L1TCompare::rctGctLeadingIsoEmEta_
private

Definition at line 82 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ rctGctLeadingIsoEmPhi_

MonitorElement* L1TCompare::rctGctLeadingIsoEmPhi_
private

Definition at line 83 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ rctGctLeadingIsoEmRank_

MonitorElement* L1TCompare::rctGctLeadingIsoEmRank_
private

Definition at line 84 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ rctGctLeadingNonIsoEmEta_

MonitorElement* L1TCompare::rctGctLeadingNonIsoEmEta_
private

Definition at line 86 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ rctGctLeadingNonIsoEmPhi_

MonitorElement* L1TCompare::rctGctLeadingNonIsoEmPhi_
private

Definition at line 87 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ rctGctLeadingNonIsoEmRank_

MonitorElement* L1TCompare::rctGctLeadingNonIsoEmRank_
private

Definition at line 88 of file L1TCompare.h.

Referenced by analyze(), and bookHistograms().

◆ rctSource_

edm::InputTag L1TCompare::rctSource_
private

Definition at line 105 of file L1TCompare.h.

Referenced by analyze().

◆ rctSourceEm_token_

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

Definition at line 103 of file L1TCompare.h.

Referenced by analyze().

◆ rctSourceRctEmRgn_token_

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

Definition at line 104 of file L1TCompare.h.

Referenced by analyze().

◆ verbose_

bool L1TCompare::verbose_
private

Definition at line 98 of file L1TCompare.h.

Referenced by L1TCompare(), and verbose().