CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
ESDataCertificationTask Class Reference

#include <ESDataCertificationTask.h>

Inheritance diagram for ESDataCertificationTask:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 ESDataCertificationTask (const edm::ParameterSet &ps)
 
 ~ESDataCertificationTask () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
void beginJob (void) override
 
void beginLuminosityBlock (const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
 
void cleanup (void)
 
void endJob (void) override
 
void reset (void)
 
- 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 Attributes

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

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 

Detailed Description

Definition at line 11 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 Utilities::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 ( )
override

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 
)
overrideprotected

Definition at line 102 of file ESDataCertificationTask.cc.

References DEFINE_FWK_MODULE.

102  {
103 
104 }
void ESDataCertificationTask::beginJob ( void  )
overrideprotectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 45 of file ESDataCertificationTask.cc.

References trackerHits::histo.

45  {
46 
47  char histo[200];
48 
49  if ( dqmStore_ ) {
50 
51  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
52 
53  sprintf(histo, "CertificationSummary");
54  meESDataCertificationSummary_ = dqmStore_->bookFloat(histo);
56 
57  sprintf(histo, "CertificationSummaryMap");
58  meESDataCertificationSummaryMap_ = dqmStore_->book2D(histo,histo, 40, 0., 40., 40, 0., 40.);
61 
62  }
63 
64 }
MonitorElement * meESDataCertificationSummaryMap_
void Fill(long long x)
MonitorElement * meESDataCertificationSummary_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void ESDataCertificationTask::beginLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
)
overrideprotected

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 88 of file ESDataCertificationTask.cc.

Referenced by esMonitoring.FDJsonServer::handle_close().

88  {
89 
90  if ( dqmStore_ ) {
91 
92  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
93 
95 
97 
98  }
99 
100 }
MonitorElement * meESDataCertificationSummaryMap_
const std::string & getName() const
get name of ME
MonitorElement * meESDataCertificationSummary_
void ESDataCertificationTask::endJob ( void  )
overrideprotectedvirtual

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::reset ( void  )
protected

Definition at line 79 of file ESDataCertificationTask.cc.

79  {
80 
82 
84 
85 }
MonitorElement * meESDataCertificationSummaryMap_
MonitorElement * meESDataCertificationSummary_
void Reset()
reset ME (ie. contents, errors, etc)

Member Data Documentation

DQMStore* ESDataCertificationTask::dqmStore_
private

Definition at line 29 of file ESDataCertificationTask.h.

bool ESDataCertificationTask::enableCleanup_
private

Definition at line 33 of file ESDataCertificationTask.h.

MonitorElement* ESDataCertificationTask::meESDataCertificationSummary_
private

Definition at line 37 of file ESDataCertificationTask.h.

MonitorElement* ESDataCertificationTask::meESDataCertificationSummaryMap_
private

Definition at line 38 of file ESDataCertificationTask.h.

bool ESDataCertificationTask::mergeRuns_
private

Definition at line 35 of file ESDataCertificationTask.h.

std::string ESDataCertificationTask::prefixME_
private

Definition at line 31 of file ESDataCertificationTask.h.