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:
edm::EDAnalyzer

Classes

class  RctObject
 
class  RctObjectComp
 

Public Member Functions

 L1TCompare (const edm::ParameterSet &ps)
 
virtual ~L1TCompare ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 
void beginJob (void)
 
void endJob (void)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Private Types

typedef std::vector
< L1TCompare::RctObject
RctObjectCollection
 

Private Member Functions

bool verbose () const
 

Private Attributes

DQMStoredbe
 
MonitorElementecalTpgRctLeadingEmEta2_
 
MonitorElementecalTpgRctLeadingEmEta_
 
MonitorElementecalTpgRctLeadingEmPhi_
 
MonitorElementecalTpgRctLeadingEmRank_
 
edm::InputTag ecalTpgSource_
 
edm::InputTag gctSource_
 
ofstream logFile_
 
bool monitorDaemon_
 
int nev_
 
std::string outputFile_
 
MonitorElementrctGctLeadingIsoEmEta_
 
MonitorElementrctGctLeadingIsoEmPhi_
 
MonitorElementrctGctLeadingIsoEmRank_
 
MonitorElementrctGctLeadingNonIsoEmEta_
 
MonitorElementrctGctLeadingNonIsoEmPhi_
 
MonitorElementrctGctLeadingNonIsoEmRank_
 
edm::InputTag rctSource_
 
bool verbose_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 64 of file L1TCompare.h.

Member Typedef Documentation

Definition at line 127 of file L1TCompare.h.

Constructor & Destructor Documentation

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

Definition at line 118 of file L1TCompare.cc.

References gather_cfg::cout, dbe, edm::ParameterSet::getUntrackedParameter(), NULL, cppFunctionSkipper::operator, outputFile_, DQMStore::setCurrentFolder(), DQMStore::setVerbose(), verbose(), and verbose_.

118  :
119  rctSource_( ps.getParameter< InputTag >("rctSource") )
120  ,gctSource_( ps.getParameter< InputTag >("gctSource") )
121  ,ecalTpgSource_(ps.getParameter<edm::InputTag>("ecalTpgSource"))
122 
123 {
124 
125  // verbosity switch
126  verbose_ = ps.getUntrackedParameter < bool > ("verbose", false);
127 
128  if (verbose())
129  std::cout << "L1TCompare: constructor...." << std::endl;
130 
131 
132  dbe = NULL;
133  if (ps.getUntrackedParameter < bool > ("DQMStore", false)) {
135  dbe->setVerbose(0);
136  }
137 
138  outputFile_ =
139  ps.getUntrackedParameter < std::string > ("outputFile", "");
140  if (outputFile_.size() != 0) {
141  std::
142  cout << "L1T Monitoring histograms will be saved to " <<
143  outputFile_.c_str() << std::endl;
144  }
145 
146  bool disable =
147  ps.getUntrackedParameter < bool > ("disableROOToutput", false);
148  if (disable) {
149  outputFile_ = "";
150  }
151 
152 
153  if (dbe != NULL) {
154  dbe->setCurrentFolder("L1T/Compare");
155  }
156 
157 
158 }
DQMStore * dbe
Definition: L1TCompare.h:86
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool verbose() const
Definition: L1TCompare.h:109
edm::InputTag rctSource_
Definition: L1TCompare.h:113
#define NULL
Definition: scimark2.h:8
edm::InputTag gctSource_
Definition: L1TCompare.h:114
bool verbose_
Definition: L1TCompare.h:108
void setVerbose(unsigned level)
Definition: DQMStore.cc:393
edm::InputTag ecalTpgSource_
Definition: L1TCompare.h:115
std::string outputFile_
Definition: L1TCompare.h:107
tuple cout
Definition: gather_cfg.py:121
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
L1TCompare::~L1TCompare ( )
virtual

Definition at line 160 of file L1TCompare.cc.

161 {
162 }

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 265 of file L1TCompare.cc.

References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, ecalTpgRctLeadingEmEta2_, ecalTpgRctLeadingEmEta_, ecalTpgRctLeadingEmPhi_, ecalTpgRctLeadingEmRank_, ecalTpgSource_, MonitorElement::Fill(), gctSource_, edm::Event::getByLabel(), h, errorMatrix2Lands_multiChannel::id, edm::HandleBase::isValid(), edm::InputTag::label(), nev_, rctGctLeadingIsoEmEta_, rctGctLeadingIsoEmPhi_, rctGctLeadingIsoEmRank_, rctGctLeadingNonIsoEmEta_, rctGctLeadingNonIsoEmPhi_, rctGctLeadingNonIsoEmRank_, rctSource_, python.multivaluedict::sort(), and verbose().

266 {
267  ++nev_;
268  if (verbose()) {
269  std::cout << "L1TCompare: analyze...." << std::endl;
270  }
271 
272  // L1E
278  // edm::Handle < L1EtMissParticle > l1eEtMiss;
280  // RCT
281  edm::Handle < L1CaloEmCollection > em; // collection of L1CaloEmCands
283 
284  // GCT
287  edm::Handle <L1GctEmCandCollection> gctNonIsoEmCands;
288 
289 
290  e.getByLabel(rctSource_,em);
291 
292  if (!em.isValid()) {
293  edm::LogInfo("DataNotFound") << "can't find L1CaloEmCollection with label "
294  << rctSource_.label() ;
295  return;
296  }
297 
298 
299  e.getByLabel(rctSource_,rctEmRgn);
300 
301  if (!rctEmRgn.isValid()) {
302  edm::LogInfo("DataNotFound") << "can't find "
303  << "L1CaloRegionCollection with label "
304  << rctSource_.label() ;
305  return;
306  }
307 
308 
309  e.getByLabel(gctSource_.label(),"cenJets", gctCenJets);
310  e.getByLabel(gctSource_.label(), "isoEm", gctIsoEmCands);
311  e.getByLabel(gctSource_.label(), "nonIsoEm", gctNonIsoEmCands);
312 
313  if (!gctCenJets.isValid()) {
314  std::cerr << "L1TGCT: could not find one of the classes?" << std::endl;
315  return;
316  }
317  if (!gctIsoEmCands.isValid()) {
318  std::cerr << "L1TGCT: could not find one of the classes?" << std::endl;
319  return;
320  }
321  if (!gctNonIsoEmCands.isValid()) {
322  std::cerr << "L1TGCT: could not find one of the classes?" << std::endl;
323  return;
324  }
325 
326 
327  // GCT
328  if ( verbose() ) {
329  for ( L1GctEmCandCollection::const_iterator iem = gctIsoEmCands->begin();
330  iem != gctIsoEmCands->end(); ++iem) {
331  if ( !iem->empty() )
332  std::cout << "GCT EM: " << iem->rank()
333  << ", "
334  << iem->etaIndex() << "("
335  //<< int(iem->etaIndex()&0x3)*((iem->etaIndex()&0x4)?1:-1)
336  << "), "
337  << iem->phiIndex()
338  << std::endl;
339  }
340  }
341  // rct phi: 0-17
342  // rct eta: 0-21
343 
344 
345  // Fill the RCT histograms
346 
347  // Regions
348  RctObjectCollection rcj, rcj_iso, rcj_non_iso;
349  for (L1CaloEmCollection::const_iterator iem = em->begin();
350  iem != em->end(); ++iem) {
351  // L1CaloRegionDetId id(false, iem->rctCrate(), iem->rctCard(),
352  // iem->rctRegion());
353  L1CaloRegionDetId id(iem->rctCrate(), iem->rctCard(),
354  iem->rctRegion());
355 
356  // RctObject h(id.gctEta(), id.gctPhi(), iem->rank());
357  RctObject h(id.rctEta(), id.rctPhi(), iem->rank());
358  if ( !iem->isolated() )
359  rcj_non_iso.push_back(h);
360  else
361  rcj_iso.push_back(h);
362  rcj.push_back(h);
363  }
364  // not so smart but ...
365  std::sort(rcj.begin(), rcj.end(), RctObjectComp());
366  std::sort(rcj_non_iso.begin(), rcj_non_iso.end(), RctObjectComp());
367  std::sort(rcj_iso.begin(), rcj_iso.end(), RctObjectComp());
368  if ( verbose() ) {
369  for (RctObjectCollection::reverse_iterator ij = rcj_iso.rbegin();
370  ij != rcj_iso.rend() && ij != rcj_iso.rbegin()+8; ++ij) {
371  std::cout << "RCT cj: "
372  << ij->rank_ << ", " << ij->eta_ << ", " << ij->phi_
373  << std::endl;
374  }
375  }
376  L1GctEmCandCollection::const_iterator lead_em = gctIsoEmCands->begin();
377  if ( !lead_em->empty() ) { // equivalent to rank == 0
378  rctGctLeadingIsoEmEta_->Fill(lead_em->etaIndex(), rcj_iso.rbegin()->eta_);
379  rctGctLeadingIsoEmPhi_->Fill(lead_em->phiIndex(), rcj_iso.rbegin()->phi_);
380  rctGctLeadingIsoEmRank_->Fill(lead_em->rank(), rcj_iso.rbegin()->rank_);
381  }
382 
383  // non-isolated
384  if ( verbose() ) {
385  for ( L1GctEmCandCollection::const_iterator iem
386  = gctNonIsoEmCands->begin(); iem != gctNonIsoEmCands->end();
387  ++iem) {
388  if ( ! iem->empty() )
389  std::cout << "GCT EM non: " << iem->rank()
390  << ", "
391  << iem->etaIndex() //<< "("
392  //<< int(iem->etaIndex()&0x3)*((iem->etaIndex()&0x4)?1:-1)
393  //<< ")"
394  << ", "
395  << iem->phiIndex()
396  << std::endl;
397  }
398  }
399  if ( verbose() ) {
400  for (RctObjectCollection::reverse_iterator ij = rcj_non_iso.rbegin();
401  ij != rcj_non_iso.rend() && ij != rcj_non_iso.rbegin()+8; ++ij) {
402  std::cout << "RCT cj non: "
403  << ij->rank_ << ", " << ij->eta_ << ", " << ij->phi_
404  << std::endl;
405  }
406  }
407  lead_em = gctNonIsoEmCands->begin();
408  if ( !lead_em->empty() ) { // equivalent to rank != 0
409  rctGctLeadingNonIsoEmEta_->Fill(lead_em->etaIndex(),
410  rcj_non_iso.rbegin()->eta_);
411  rctGctLeadingNonIsoEmPhi_->Fill(lead_em->phiIndex(),
412  rcj_non_iso.rbegin()->phi_);
413  rctGctLeadingNonIsoEmRank_->Fill(lead_em->rank(),
414  rcj_non_iso.rbegin()->rank_);
415  }
416 
417  // ECAL TPG's to RCT EM
419  e.getByLabel(ecalTpgSource_,eTP);
420 
421  if (!eTP.isValid()) {
422  edm::LogInfo("DataNotFound")
423  << "can't find EcalTrigPrimCollection with label "
424  << ecalTpgSource_.label() ;
425  return;
426  }
427  RctObjectCollection ecalobs;
428  for (EcalTrigPrimDigiCollection::const_iterator ieTP = eTP->begin();
429  ieTP != eTP->end(); ieTP++) {
430  ecalobs.push_back(RctObject(ieTP->id().ieta(),
431  ieTP->id().iphi(),
432  ieTP->compressedEt()));
433  }
434  std::sort(ecalobs.begin(), ecalobs.end(), RctObjectComp());
435  if ( verbose() ) {
436  for (RctObjectCollection::reverse_iterator ij = ecalobs.rbegin();
437  ij != ecalobs.rend() && ij != ecalobs.rbegin()+8; ++ij) {
438  std::cout << "ECAL cj : "
439  << ij->rank_ << ", " << ij->eta_ << ", " << ij->phi_
440  << std::endl;
441  }
442  }
443  // abritrary cut
444  if ( rcj.rbegin()->rank_ > 4 ) {
445  ecalTpgRctLeadingEmEta_->Fill(rcj.rbegin()->eta_,
446  ecalobs.rbegin()->eta_);
447  int e2 = (rcj.rbegin()->eta_&0x7UL)* ((rcj.rbegin()->eta_&0x8UL)?1:-1);
448  ecalTpgRctLeadingEmEta2_->Fill(e2, ecalobs.rbegin()->eta_);
449  ecalTpgRctLeadingEmPhi_->Fill(rcj.rbegin()->phi_, ecalobs.rbegin()->phi_);
450  ecalTpgRctLeadingEmRank_->Fill(rcj.rbegin()->rank_,
451  ecalobs.rbegin()->rank_);
452  }
453  if ( verbose() ) {
454  int seta = rcj.rbegin()->eta_;
455  seta = (seta&0x7UL)*(seta&0x8?-1:1);
456  std::cout << "ZZ: "
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_<< " "
465  << seta << " "
466  << std::endl;
467  }
468 
469 
470 
471 }
MonitorElement * rctGctLeadingIsoEmRank_
Definition: L1TCompare.h:92
bool verbose() const
Definition: L1TCompare.h:109
MonitorElement * rctGctLeadingIsoEmEta_
Definition: L1TCompare.h:90
edm::InputTag rctSource_
Definition: L1TCompare.h:113
MonitorElement * ecalTpgRctLeadingEmEta2_
Definition: L1TCompare.h:100
std::vector< T >::const_iterator const_iterator
edm::InputTag gctSource_
Definition: L1TCompare.h:114
void Fill(long long x)
MonitorElement * ecalTpgRctLeadingEmRank_
Definition: L1TCompare.h:102
MonitorElement * rctGctLeadingNonIsoEmEta_
Definition: L1TCompare.h:94
bool isValid() const
Definition: HandleBase.h:76
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
MonitorElement * rctGctLeadingIsoEmPhi_
Definition: L1TCompare.h:91
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
std::vector< L1TCompare::RctObject > RctObjectCollection
Definition: L1TCompare.h:127
MonitorElement * ecalTpgRctLeadingEmEta_
Definition: L1TCompare.h:99
edm::InputTag ecalTpgSource_
Definition: L1TCompare.h:115
MonitorElement * rctGctLeadingNonIsoEmPhi_
Definition: L1TCompare.h:95
std::string const & label() const
Definition: InputTag.h:25
MonitorElement * rctGctLeadingNonIsoEmRank_
Definition: L1TCompare.h:96
tuple cout
Definition: gather_cfg.py:121
MonitorElement * ecalTpgRctLeadingEmPhi_
Definition: L1TCompare.h:101
void L1TCompare::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 164 of file L1TCompare.cc.

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

165 {
166 
167  nev_ = 0;
168 
169  // get hold of back-end interface
170  DQMStore *dbe = 0;
171  dbe = Service < DQMStore > ().operator->();
172 
173  if (dbe) {
174  dbe->setCurrentFolder("L1T/Compare");
175  dbe->rmdir("L1T/Compare");
176  }
177 
178 
179  if (dbe) {
180  dbe->setCurrentFolder("L1T/Compare");
181 
182  // -------------------------------------------
183  // RCT-GCT
184  // -------------------------------------------
185  // Isolated
186  rctGctLeadingIsoEmRank_ = dbe->book2D("rctGctLeadingIsoEmRank",
187  "RCT-GCT: rank", R6BINS, R6MIN, R6MAX,
188  R6BINS, R6MIN, R6MAX);
189  rctGctLeadingIsoEmRank_->setAxisTitle(std::string("gct"), 1);
190  rctGctLeadingIsoEmRank_->setAxisTitle(std::string("rct"), 2);
191  rctGctLeadingIsoEmEta_ = dbe->book2D("rctGctLeadingIsoEmEta",
192  "RCT-GCT: #eta", ETABINS, ETAMIN, ETAMAX,
193  ETABINS, ETAMIN, ETAMAX);
194  rctGctLeadingIsoEmEta_->setAxisTitle(std::string("gct"), 1);
195  rctGctLeadingIsoEmEta_->setAxisTitle(std::string("rct"), 2);
196 
197  rctGctLeadingIsoEmPhi_ = dbe->book2D("rctGctLeadingIsoEmPhi",
198  "RCT-GCT: #phi", PHIBINS, PHIMIN, PHIMAX,
199  PHIBINS, PHIMIN, PHIMAX);
200  rctGctLeadingIsoEmPhi_->setAxisTitle(std::string("gct"), 1);
201  rctGctLeadingIsoEmPhi_->setAxisTitle(std::string("rct"), 2);
202  // non-Isolated
203  rctGctLeadingNonIsoEmRank_ = dbe->book2D("rctGctLeadingNonIsoEmRank",
204  "RCT-GCT: rank", R6BINS, R6MIN, R6MAX,
205  R6BINS, R6MIN, R6MAX);
206  rctGctLeadingNonIsoEmRank_->setAxisTitle(std::string("gct"), 1);
207  rctGctLeadingNonIsoEmRank_->setAxisTitle(std::string("rct"), 2);
208 
209  rctGctLeadingNonIsoEmEta_ = dbe->book2D("rctGctLeadingNonIsoEmEta",
210  "RCT-GCT: #eta", ETABINS, ETAMIN, ETAMAX,
211  ETABINS, ETAMIN, ETAMAX);
212  rctGctLeadingNonIsoEmEta_->setAxisTitle(std::string("gct"), 1);
213  rctGctLeadingNonIsoEmEta_->setAxisTitle(std::string("rct"), 2);
214 
215  rctGctLeadingNonIsoEmPhi_ = dbe->book2D("rctGctLeadingNonIsoEmPhi",
216  "RCT-GCT: #phi", PHIBINS, PHIMIN, PHIMAX,
217  PHIBINS, PHIMIN, PHIMAX);
218  rctGctLeadingNonIsoEmPhi_->setAxisTitle(std::string("gct"), 1);
219  rctGctLeadingNonIsoEmPhi_->setAxisTitle(std::string("rct"), 2);
220  // -------------------------------------------
221  // ECAL TPG - RCT
222  // -------------------------------------------
223  ecalTpgRctLeadingEmRank_ = dbe->book2D("ecalTpgRctLeadingEmRank",
224  "ECAL TPG-RCT: rank",
225  R6BINS, R6MIN, R6MAX,
226  R6BINS, R6MIN, R6MAX);
227  ecalTpgRctLeadingEmRank_->setAxisTitle(std::string("rct"), 1);
228  ecalTpgRctLeadingEmRank_->setAxisTitle(std::string("ecal tp"), 2);
229 
230  ecalTpgRctLeadingEmEta_ = dbe->book2D("ecalTpgRctLeadingEmEta",
231  "ECAL TPG-RCT: #eta",
232  15, -0.5, 14.5,
234  ecalTpgRctLeadingEmEta_->setAxisTitle(std::string("rct"), 1);
235  ecalTpgRctLeadingEmEta_->setAxisTitle(std::string("ecal tp"), 2);
236  ecalTpgRctLeadingEmEta2_ = dbe->book2D("ecalTpgRctLeadingEmEta2",
237  "ECAL TPG-RCT: #eta (2)",
238  13, -6.5, 6.5,
240  ecalTpgRctLeadingEmEta2_->setAxisTitle(std::string("rct"), 1);
241  ecalTpgRctLeadingEmEta2_->setAxisTitle(std::string("ecal tp"), 2);
242  ecalTpgRctLeadingEmPhi_ = dbe->book2D("ecalTpgRctLeadingEmPhi",
243  "ECAL TPG-RCT: #phi",
246  ecalTpgRctLeadingEmPhi_->setAxisTitle(std::string("rct"), 1);
247  ecalTpgRctLeadingEmPhi_->setAxisTitle(std::string("ecal tp"), 2);
248  }
249 
250 }
DQMStore * dbe
Definition: L1TCompare.h:86
const unsigned int R6BINS
Definition: L1TCompare.cc:92
#define PHIMAX
MonitorElement * rctGctLeadingIsoEmRank_
Definition: L1TCompare.h:92
const float TPETAMIN
Definition: L1TCompare.cc:114
void rmdir(const std::string &fullpath)
Definition: DQMStore.cc:2530
MonitorElement * rctGctLeadingIsoEmEta_
Definition: L1TCompare.h:90
MonitorElement * ecalTpgRctLeadingEmEta2_
Definition: L1TCompare.h:100
const unsigned int TPPHIBINS
Definition: L1TCompare.cc:109
MonitorElement * ecalTpgRctLeadingEmRank_
Definition: L1TCompare.h:102
#define ETAMAX
const float TPETAMAX
Definition: L1TCompare.cc:115
const unsigned int TPETABINS
Definition: L1TCompare.cc:113
MonitorElement * rctGctLeadingNonIsoEmEta_
Definition: L1TCompare.h:94
#define ETAMIN
const float R6MAX
Definition: L1TCompare.cc:94
#define PHIMIN
const float TPPHIMIN
Definition: L1TCompare.cc:110
const float R6MIN
Definition: L1TCompare.cc:93
const float TPPHIMAX
Definition: L1TCompare.cc:111
MonitorElement * rctGctLeadingIsoEmPhi_
Definition: L1TCompare.h:91
#define ETABINS
MonitorElement * ecalTpgRctLeadingEmEta_
Definition: L1TCompare.h:99
MonitorElement * rctGctLeadingNonIsoEmPhi_
Definition: L1TCompare.h:95
#define PHIBINS
MonitorElement * rctGctLeadingNonIsoEmRank_
Definition: L1TCompare.h:96
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:845
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)
Definition: DQMStore.cc:429
MonitorElement * ecalTpgRctLeadingEmPhi_
Definition: L1TCompare.h:101
void L1TCompare::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 253 of file L1TCompare.cc.

References gather_cfg::cout, dbe, nev_, outputFile_, DQMStore::save(), and verbose().

254 {
255  if (verbose())
256  std::cout << "L1TCompare: end job...." << std::endl;
257  LogInfo("EndJob") << "analyzed " << nev_ << " events";
258 
259  if (outputFile_.size() != 0 && dbe)
260  dbe->save(outputFile_);
261 
262  return;
263 }
DQMStore * dbe
Definition: L1TCompare.h:86
bool verbose() const
Definition: L1TCompare.h:109
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")
Definition: DQMStore.cc:2113
std::string outputFile_
Definition: L1TCompare.h:107
tuple cout
Definition: gather_cfg.py:121
bool L1TCompare::verbose ( ) const
inlineprivate

Definition at line 109 of file L1TCompare.h.

References verbose_.

Referenced by analyze(), endJob(), and L1TCompare().

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

Member Data Documentation

DQMStore* L1TCompare::dbe
private

Definition at line 86 of file L1TCompare.h.

Referenced by beginJob(), endJob(), and L1TCompare().

MonitorElement* L1TCompare::ecalTpgRctLeadingEmEta2_
private

Definition at line 100 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

MonitorElement* L1TCompare::ecalTpgRctLeadingEmEta_
private

Definition at line 99 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

MonitorElement* L1TCompare::ecalTpgRctLeadingEmPhi_
private

Definition at line 101 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

MonitorElement* L1TCompare::ecalTpgRctLeadingEmRank_
private

Definition at line 102 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

edm::InputTag L1TCompare::ecalTpgSource_
private

Definition at line 115 of file L1TCompare.h.

Referenced by analyze().

edm::InputTag L1TCompare::gctSource_
private

Definition at line 114 of file L1TCompare.h.

Referenced by analyze().

ofstream L1TCompare::logFile_
private

Definition at line 111 of file L1TCompare.h.

bool L1TCompare::monitorDaemon_
private

Definition at line 109 of file L1TCompare.h.

int L1TCompare::nev_
private

Definition at line 106 of file L1TCompare.h.

Referenced by analyze(), beginJob(), and endJob().

std::string L1TCompare::outputFile_
private

Definition at line 107 of file L1TCompare.h.

Referenced by endJob(), and L1TCompare().

MonitorElement* L1TCompare::rctGctLeadingIsoEmEta_
private

Definition at line 90 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

MonitorElement* L1TCompare::rctGctLeadingIsoEmPhi_
private

Definition at line 91 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

MonitorElement* L1TCompare::rctGctLeadingIsoEmRank_
private

Definition at line 92 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

MonitorElement* L1TCompare::rctGctLeadingNonIsoEmEta_
private

Definition at line 94 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

MonitorElement* L1TCompare::rctGctLeadingNonIsoEmPhi_
private

Definition at line 95 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

MonitorElement* L1TCompare::rctGctLeadingNonIsoEmRank_
private

Definition at line 96 of file L1TCompare.h.

Referenced by analyze(), and beginJob().

edm::InputTag L1TCompare::rctSource_
private

Definition at line 113 of file L1TCompare.h.

Referenced by analyze().

bool L1TCompare::verbose_
private

Definition at line 108 of file L1TCompare.h.

Referenced by L1TCompare(), and verbose().