CMS 3D CMS Logo

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

#include <ESDataCertificationTask.h>

Inheritance diagram for ESDataCertificationTask:
edm::EDAnalyzer

Public Member Functions

 ESDataCertificationTask (const edm::ParameterSet &ps)
 
virtual ~ESDataCertificationTask ()
 
- 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 beginLuminosityBlock (const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
 
void cleanup (void)
 
void endJob (void)
 
void endLuminosityBlock (const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
 
void reset (void)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Private Attributes

DQMStoredqmStore_
 
bool enableCleanup_
 
MonitorElementmeESDataCertificationSummary_
 
MonitorElementmeESDataCertificationSummaryMap_
 
bool mergeRuns_
 
std::string prefixME_
 

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 8 of file ESDataCertificationTask.h.

Constructor & Destructor Documentation

ESDataCertificationTask::ESDataCertificationTask ( const edm::ParameterSet ps)

Definition at line 26 of file ESDataCertificationTask.cc.

References edm::ParameterSet::getUntrackedParameter(), and cppFunctionSkipper::operator.

26  {
27 
29 
30  prefixME_ = ps.getUntrackedParameter<string>("prefixME", "");
31 
32  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false);
33 
34  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false);
35 
38 
39 }
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meESDataCertificationSummaryMap_
MonitorElement * meESDataCertificationSummary_
ESDataCertificationTask::~ESDataCertificationTask ( )
virtual

Definition at line 41 of file ESDataCertificationTask.cc.

41  {
42 
43 }

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 105 of file ESDataCertificationTask.cc.

105  {
106 
107 }
void ESDataCertificationTask::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 45 of file ESDataCertificationTask.cc.

References interpolateCardsSimple::histo.

45  {
46 
47  char histo[200];
48 
49  if ( dqmStore_ ) {
50 
51  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
52 
53  sprintf(histo, "CertificationSummary");
56 
57  sprintf(histo, "CertificationSummaryMap");
58  meESDataCertificationSummaryMap_ = dqmStore_->book2D(histo,histo, 40, 0., 40., 40, 0., 40.);
61 
62  }
63 
64 }
MonitorElement * meESDataCertificationSummaryMap_
MonitorElement * bookFloat(const char *name)
Book float.
Definition: DQMStore.cc:654
void Fill(long long x)
MonitorElement * meESDataCertificationSummary_
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
void ESDataCertificationTask::beginLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 72 of file ESDataCertificationTask.cc.

References reset().

72  {
73 
74  this->reset();
75 
76 }
void ESDataCertificationTask::cleanup ( void  )
protected

Definition at line 91 of file ESDataCertificationTask.cc.

91  {
92 
93  if ( dqmStore_ ) {
94 
95  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
96 
98 
100 
101  }
102 
103 }
const std::string & getName(void) const
get name of ME
MonitorElement * meESDataCertificationSummaryMap_
MonitorElement * meESDataCertificationSummary_
void removeElement(const std::string &name)
Definition: DQMStore.cc:2572
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
void ESDataCertificationTask::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 66 of file ESDataCertificationTask.cc.

References edm::cleanup().

66  {
67 
68  if ( enableCleanup_ ) this->cleanup();
69 
70 }
void ESDataCertificationTask::endLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 78 of file ESDataCertificationTask.cc.

78  {
79 
80 }
void ESDataCertificationTask::reset ( void  )
protected

Definition at line 82 of file ESDataCertificationTask.cc.

82  {
83 
85 
87 
88 }
MonitorElement * meESDataCertificationSummaryMap_
MonitorElement * meESDataCertificationSummary_
void Reset(void)
reset ME (ie. contents, errors, etc)

Member Data Documentation

DQMStore* ESDataCertificationTask::dqmStore_
private

Definition at line 27 of file ESDataCertificationTask.h.

bool ESDataCertificationTask::enableCleanup_
private

Definition at line 31 of file ESDataCertificationTask.h.

MonitorElement* ESDataCertificationTask::meESDataCertificationSummary_
private

Definition at line 35 of file ESDataCertificationTask.h.

MonitorElement* ESDataCertificationTask::meESDataCertificationSummaryMap_
private

Definition at line 36 of file ESDataCertificationTask.h.

bool ESDataCertificationTask::mergeRuns_
private

Definition at line 33 of file ESDataCertificationTask.h.

std::string ESDataCertificationTask::prefixME_
private

Definition at line 29 of file ESDataCertificationTask.h.