CMS 3D CMS Logo

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

#include <DQM/TrackingMonitorCluster/interface/TrackingOfflineDQM.h>

Inheritance diagram for TrackingOfflineDQM:
DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 TrackingOfflineDQM (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~TrackingOfflineDQM () override
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginJob () override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &) override
 
virtual void dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &)
 
 DQMEDHarvester ()
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
virtual void dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &)
 
void endJob () final
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &es) final
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) 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
 
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
 
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)
 

Private Member Functions

void beginJob () override
 BeginJob. More...
 
void beginRun (edm::Run const &run, edm::EventSetup const &eSetup) override
 BeginRun. More...
 
void dqmEndJob (DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_) override
 Endjob. More...
 
void dqmEndLuminosityBlock (DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup) override
 End Luminosity Block. More...
 
bool openInputFile ()
 

Private Attributes

TrackingActionExecutoractionExecutor_
 
bool allpixelFEDsFound_
 
edm::ParameterSet configPar_
 
int globalStatusFilling_
 
std::string inputFileName_
 
std::string outputFileName_
 
bool trackerFEDsFound_
 
bool usedWithEDMtoMEConverter_
 

Additional Inherited Members

- Public Types inherited from DQMEDHarvester
typedef dqm::harvesting::DQMStore DQMStore
 
typedef dqm::harvesting::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- 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>
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<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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)
 
- Protected Attributes inherited from DQMEDHarvester
DQMStoredqmstore_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Description: DQM class to perform Summary creation Quality Test on a merged Root file after CAF processing Usage: <usage>

Definition at line 42 of file TrackingOfflineDQM.h.

Constructor & Destructor Documentation

◆ TrackingOfflineDQM()

TrackingOfflineDQM::TrackingOfflineDQM ( const edm::ParameterSet ps)

Constructor.

Construct object.

Parameters
roPARAMETER_SETRegular Parameter Set that represent read configuration file

Definition at line 56 of file TrackingOfflineDQM.cc.

56  : configPar_(pSet) {
57  // Action Executor
59 
60  usedWithEDMtoMEConverter_ = configPar_.getUntrackedParameter<bool>("UsedWithEDMtoMEConverter", false);
63  globalStatusFilling_ = configPar_.getUntrackedParameter<int>("GlobalStatusFilling", 1);
64 }

References actionExecutor_, configPar_, edm::ParameterSet::getUntrackedParameter(), globalStatusFilling_, inputFileName_, outputFileName_, AlCaHLTBitMon_QueryRunRegistry::string, and usedWithEDMtoMEConverter_.

◆ ~TrackingOfflineDQM()

TrackingOfflineDQM::~TrackingOfflineDQM ( )
override

Destructor.

Definition at line 70 of file TrackingOfflineDQM.cc.

70 {}

Member Function Documentation

◆ beginJob()

void TrackingOfflineDQM::beginJob ( void  )
overrideprivatevirtual

BeginJob.

Executed at the begining of application.

Parameters
eSetupEvent Setup object

Reimplemented from edm::one::EDProducerBase.

Definition at line 78 of file TrackingOfflineDQM.cc.

78 { edm::LogInfo("BeginJobDone") << "TrackingOfflineDQM::beginJob done"; }

◆ beginRun()

void TrackingOfflineDQM::beginRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
overrideprivate

BeginRun.

Executed at the begining a Run.

Parameters
runRun object
eSetupEvent Setup object with Geometry, Magnetic Field, etc.

Definition at line 88 of file TrackingOfflineDQM.cc.

88  {
89  edm::LogInfo("BeginRun") << "TrackingOfflineDQM:: Begining of Run";
90 
91  int nFEDs = 0;
92  int nPixelFEDs = 0;
93 
94  if (auto runInfoRec = eSetup.tryToGet<RunInfoRcd>()) {
96  runInfoRec->get(sumFED);
97 
98  if (sumFED.isValid()) {
99  const int siStripFedIdMin = FEDNumbering::MINSiStripFEDID;
100  const int siStripFedIdMax = FEDNumbering::MAXSiStripFEDID;
101  const int siPixelFedIdMin = FEDNumbering::MINSiPixelFEDID;
102  const int siPixelFedIdMax = FEDNumbering::MAXSiPixelFEDID;
103 
104  std::vector<int> FedsInIds = sumFED->m_fed_in;
105  for (auto fedID : FedsInIds) {
106  if (fedID >= siPixelFedIdMin && fedID <= siPixelFedIdMax) {
107  ++nPixelFEDs;
108  ++nFEDs;
109  }
110  if (fedID >= siStripFedIdMin && fedID <= siStripFedIdMax)
111  ++nFEDs;
112  }
113  }
114  }
115  const int siPixelFedN = (FEDNumbering::MAXSiPixelFEDID - FEDNumbering::MINSiPixelFEDID + 1);
116  allpixelFEDsFound_ = (nPixelFEDs == siPixelFedN);
117  trackerFEDsFound_ = (nFEDs > 0);
118 }

References allpixelFEDsFound_, edm::ESHandleBase::isValid(), RunInfo::m_fed_in, FEDNumbering::MAXSiPixelFEDID, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiPixelFEDID, FEDNumbering::MINSiStripFEDID, trackerFEDsFound_, and edm::EventSetup::tryToGet().

◆ dqmEndJob()

void TrackingOfflineDQM::dqmEndJob ( DQMStore::IBooker ibooker_,
DQMStore::IGetter igetter_ 
)
overrideprivatevirtual

Endjob.

End Run.

Implements DQMEDHarvester.

Definition at line 147 of file TrackingOfflineDQM.cc.

147  {
148  edm::LogInfo("TrackingOfflineDQM") << "TrackingOfflineDQM::dqmEndJob";
149 
150  if (globalStatusFilling_ > 0) {
151  actionExecutor_->createGlobalStatus(ibooker_, igetter_);
152 
153  if (!trackerFEDsFound_) {
155  return;
156  } else {
157  actionExecutor_->fillGlobalStatus(ibooker_, igetter_);
158  }
159  }
160 }

References actionExecutor_, TrackingActionExecutor::createGlobalStatus(), TrackingActionExecutor::fillDummyGlobalStatus(), TrackingActionExecutor::fillGlobalStatus(), globalStatusFilling_, and trackerFEDsFound_.

◆ dqmEndLuminosityBlock()

void TrackingOfflineDQM::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker_,
DQMStore::IGetter igetter_,
edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  iSetup 
)
overrideprivatevirtual

End Luminosity Block.

End Lumi.

Reimplemented from DQMEDHarvester.

Definition at line 126 of file TrackingOfflineDQM.cc.

129  {
130  edm::LogInfo("TrackingOfflineDQM") << "TrackingOfflineDQM::dqmBeginLuminosityBlock";
131 
132  if (globalStatusFilling_ > 0) {
133  actionExecutor_->createLSStatus(ibooker_, igetter_);
134 
135  if (trackerFEDsFound_)
136  actionExecutor_->fillStatusAtLumi(ibooker_, igetter_);
137  else
139  }
140 }

References actionExecutor_, TrackingActionExecutor::createLSStatus(), TrackingActionExecutor::fillDummyLSStatus(), TrackingActionExecutor::fillStatusAtLumi(), globalStatusFilling_, and trackerFEDsFound_.

◆ openInputFile()

bool TrackingOfflineDQM::openInputFile ( )
private

Member Data Documentation

◆ actionExecutor_

TrackingActionExecutor* TrackingOfflineDQM::actionExecutor_
private

Definition at line 69 of file TrackingOfflineDQM.h.

Referenced by dqmEndJob(), dqmEndLuminosityBlock(), and TrackingOfflineDQM().

◆ allpixelFEDsFound_

bool TrackingOfflineDQM::allpixelFEDsFound_
private

Definition at line 76 of file TrackingOfflineDQM.h.

Referenced by beginRun().

◆ configPar_

edm::ParameterSet TrackingOfflineDQM::configPar_
private

Definition at line 78 of file TrackingOfflineDQM.h.

Referenced by TrackingOfflineDQM().

◆ globalStatusFilling_

int TrackingOfflineDQM::globalStatusFilling_
private

Definition at line 73 of file TrackingOfflineDQM.h.

Referenced by dqmEndJob(), dqmEndLuminosityBlock(), and TrackingOfflineDQM().

◆ inputFileName_

std::string TrackingOfflineDQM::inputFileName_
private

Definition at line 71 of file TrackingOfflineDQM.h.

Referenced by TrackingOfflineDQM().

◆ outputFileName_

std::string TrackingOfflineDQM::outputFileName_
private

Definition at line 72 of file TrackingOfflineDQM.h.

Referenced by TrackingOfflineDQM().

◆ trackerFEDsFound_

bool TrackingOfflineDQM::trackerFEDsFound_
private

Definition at line 75 of file TrackingOfflineDQM.h.

Referenced by beginRun(), dqmEndJob(), and dqmEndLuminosityBlock().

◆ usedWithEDMtoMEConverter_

bool TrackingOfflineDQM::usedWithEDMtoMEConverter_
private

Definition at line 74 of file TrackingOfflineDQM.h.

Referenced by TrackingOfflineDQM().

TrackingActionExecutor::fillDummyLSStatus
void fillDummyLSStatus()
Definition: TrackingActionExecutor.cc:57
TrackingOfflineDQM::configPar_
edm::ParameterSet configPar_
Definition: TrackingOfflineDQM.h:78
edm::LogInfo
Definition: MessageLogger.h:254
TrackingActionExecutor::createGlobalStatus
void createGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition: TrackingActionExecutor.cc:40
TrackingOfflineDQM::inputFileName_
std::string inputFileName_
Definition: TrackingOfflineDQM.h:71
RunInfo::m_fed_in
std::vector< int > m_fed_in
Definition: RunInfo.h:25
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
TrackingOfflineDQM::globalStatusFilling_
int globalStatusFilling_
Definition: TrackingOfflineDQM.h:73
TrackingActionExecutor::fillDummyGlobalStatus
void fillDummyGlobalStatus()
Definition: TrackingActionExecutor.cc:55
TrackingOfflineDQM::actionExecutor_
TrackingActionExecutor * actionExecutor_
Definition: TrackingOfflineDQM.h:69
TrackingOfflineDQM::allpixelFEDsFound_
bool allpixelFEDsFound_
Definition: TrackingOfflineDQM.h:76
TrackingOfflineDQM::usedWithEDMtoMEConverter_
bool usedWithEDMtoMEConverter_
Definition: TrackingOfflineDQM.h:74
FEDNumbering::MAXSiPixelFEDID
Definition: FEDNumbering.h:28
edm::ESHandle
Definition: DTSurvey.h:22
TrackingActionExecutor::createLSStatus
void createLSStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition: TrackingActionExecutor.cc:46
RunInfoRcd
Definition: RunSummaryRcd.h:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TrackingActionExecutor::fillStatusAtLumi
void fillStatusAtLumi(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition: TrackingActionExecutor.cc:68
FEDNumbering::MAXSiStripFEDID
Definition: FEDNumbering.h:30
edm::ESHandleBase::isValid
bool isValid() const
Definition: ESHandle.h:44
FEDNumbering::MINSiPixelFEDID
Definition: FEDNumbering.h:27
TrackingOfflineDQM::trackerFEDsFound_
bool trackerFEDsFound_
Definition: TrackingOfflineDQM.h:75
TrackingActionExecutor::fillGlobalStatus
void fillGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition: TrackingActionExecutor.cc:62
TrackingOfflineDQM::outputFileName_
std::string outputFileName_
Definition: TrackingOfflineDQM.h:72
TrackingActionExecutor
Definition: TrackingActionExecutor.h:24
FEDNumbering::MINSiStripFEDID
Definition: FEDNumbering.h:29