CMS 3D CMS Logo

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

#include <ESDataCertificationTask.h>

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

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
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 endJob (void) override
 
void reset (void)
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Private Attributes

DQMStoredqmStore_
 
MonitorElementmeESDataCertificationSummary_
 
MonitorElementmeESDataCertificationSummaryMap_
 
bool mergeRuns_
 
std::string prefixME_
 

Additional Inherited Members

- 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 wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 

Detailed Description

Definition at line 9 of file ESDataCertificationTask.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 12 of file ESDataCertificationTask.h.

◆ MonitorElement

Definition at line 11 of file ESDataCertificationTask.h.

Constructor & Destructor Documentation

◆ ESDataCertificationTask()

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

Definition at line 25 of file ESDataCertificationTask.cc.

25  {
26  dqmStore_ = Service<DQMStore>().operator->();
27 
28  prefixME_ = ps.getUntrackedParameter<string>("prefixME", "");
29 
30  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false);
31 
34 }

References edm::ParameterSet::getUntrackedParameter().

◆ ~ESDataCertificationTask()

ESDataCertificationTask::~ESDataCertificationTask ( )
override

Definition at line 36 of file ESDataCertificationTask.cc.

36 {}

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 70 of file ESDataCertificationTask.cc.

70 {}

◆ beginJob()

void ESDataCertificationTask::beginJob ( void  )
overrideprotectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 38 of file ESDataCertificationTask.cc.

38  {
39  char histo[200];
40 
41  if (dqmStore_) {
42  dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo");
43 
44  sprintf(histo, "CertificationSummary");
47 
48  sprintf(histo, "CertificationSummaryMap");
49  meESDataCertificationSummaryMap_ = dqmStore_->book2D(histo, histo, 40, 0., 40., 40, 0., 40.);
52  }
53 }

References timingPdfMaker::histo.

◆ beginLuminosityBlock()

void ESDataCertificationTask::beginLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 57 of file ESDataCertificationTask.cc.

58  {
59  this->reset();
60 }

References reset().

◆ endJob()

void ESDataCertificationTask::endJob ( void  )
overrideprotectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 55 of file ESDataCertificationTask.cc.

55 {}

◆ reset()

void ESDataCertificationTask::reset ( void  )
protected

Member Data Documentation

◆ dqmStore_

DQMStore* ESDataCertificationTask::dqmStore_
private

Definition at line 25 of file ESDataCertificationTask.h.

◆ meESDataCertificationSummary_

MonitorElement* ESDataCertificationTask::meESDataCertificationSummary_
private

Definition at line 31 of file ESDataCertificationTask.h.

◆ meESDataCertificationSummaryMap_

MonitorElement* ESDataCertificationTask::meESDataCertificationSummaryMap_
private

Definition at line 32 of file ESDataCertificationTask.h.

◆ mergeRuns_

bool ESDataCertificationTask::mergeRuns_
private

Definition at line 29 of file ESDataCertificationTask.h.

◆ prefixME_

std::string ESDataCertificationTask::prefixME_
private

Definition at line 27 of file ESDataCertificationTask.h.

dqm::implementation::IBooker::bookFloat
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
Definition: DQMStore.h:80
ESDataCertificationTask::meESDataCertificationSummaryMap_
MonitorElement * meESDataCertificationSummaryMap_
Definition: ESDataCertificationTask.h:32
timingPdfMaker.histo
histo
Definition: timingPdfMaker.py:279
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
ESDataCertificationTask::reset
void reset(void)
Definition: ESDataCertificationTask.cc:62
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
dqm::impl::MonitorElement::Reset
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
Definition: MonitorElement.cc:354
dqm::implementation::DQMStore::setCurrentFolder
void setCurrentFolder(std::string const &fullpath) override
Definition: DQMStore.h:569
ESDataCertificationTask::meESDataCertificationSummary_
MonitorElement * meESDataCertificationSummary_
Definition: ESDataCertificationTask.h:31
edm::Service
Definition: Service.h:30
ESDataCertificationTask::dqmStore_
DQMStore * dqmStore_
Definition: ESDataCertificationTask.h:25
dqm::implementation::IBooker::book2D
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:177
ESDataCertificationTask::prefixME_
std::string prefixME_
Definition: ESDataCertificationTask.h:27
dqm::impl::MonitorElement::setAxisTitle
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Definition: MonitorElement.cc:800
ESDataCertificationTask::mergeRuns_
bool mergeRuns_
Definition: ESDataCertificationTask.h:29