|
void | beginJob () override |
|
void | endJob () override |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &, const edm::EventSetup &) override |
|
void | endRunProduce (edm::Run &, const edm::EventSetup &) override |
|
std::shared_ptr< meedm::Void > | globalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override |
|
std::shared_ptr< meedm::Void > | globalBeginRun (edm::Run const &, const edm::EventSetup &) const override |
|
void | globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
void | globalEndRun (edm::Run const &, const edm::EventSetup &) override |
|
| MEtoEDMConverter (const edm::ParameterSet &) |
|
void | produce (edm::Event &, const edm::EventSetup &) override |
|
template<class T > |
void | putData (DQMStore::IGetter &g, T &iPutTo, bool iLumiOnly, uint32_t run, uint32_t lumi) |
|
| ~MEtoEDMConverter () override |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () 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 |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
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 |
|
std::vector< ConsumesInfo > | consumesInfo () 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 |
|
EDConsumerBase & | operator= (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) |
|
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
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 () |
|
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) |
|
Class to take dqm monitor elements and convert into a ROOT dataformat stored in Run tree of edm file
- Author
- M. Strang SUNY-Buffalo
Definition at line 59 of file MEtoEDMConverter.h.
template<class T >
void MEtoEDMConverter::putData |
( |
DQMStore::IGetter & |
g, |
|
|
T & |
iPutTo, |
|
|
bool |
iLumiOnly, |
|
|
uint32_t |
run, |
|
|
uint32_t |
lumi |
|
) |
| |
Definition at line 113 of file MEtoEDMConverter.cc.
114 std::string MsgLoggerCat =
"MEtoEDMConverter_putData";
117 edm::LogInfo(MsgLoggerCat) <<
"\nStoring MEtoEDM dataformat histograms.";
120 std::vector<MonitorElement*>::iterator mmi, mme;
121 std::vector<MonitorElement*>
items(iGetter.getAllContents(
path,
run,
lumi));
123 unsigned int n1F = 0;
124 unsigned int n1S = 0;
125 unsigned int n1D = 0;
126 unsigned int n2F = 0;
127 unsigned int n2S = 0;
128 unsigned int n2D = 0;
129 unsigned int n3F = 0;
130 unsigned int nProf = 0;
131 unsigned int nProf2 = 0;
132 unsigned int nDouble = 0;
133 unsigned int nInt64 = 0;
134 unsigned int nString = 0;
136 for (mmi =
items.begin(), mme =
items.end(); mmi != mme; ++mmi) {
141 if (iLumiOnly && !
me->getLumiFlag())
143 if (!iLumiOnly &&
me->getLumiFlag())
146 switch (
me->kind()) {
196 edm::LogError(MsgLoggerCat) <<
"ERROR: The DQM object '" <<
me->getFullname()
197 <<
"' is neither a ROOT object nor a recognised "
198 <<
"simple object.\n";
204 std::unique_ptr<MEtoEDM<double> > pOutDouble(
new MEtoEDM<double>(nDouble));
205 std::unique_ptr<MEtoEDM<TString> > pOutString(
new MEtoEDM<TString>(nString));
206 std::unique_ptr<MEtoEDM<TH1F> > pOut1(
new MEtoEDM<TH1F>(n1F));
207 std::unique_ptr<MEtoEDM<TH1S> > pOut1s(
new MEtoEDM<TH1S>(n1S));
208 std::unique_ptr<MEtoEDM<TH1D> > pOut1d(
new MEtoEDM<TH1D>(n1D));
209 std::unique_ptr<MEtoEDM<TH2F> > pOut2(
new MEtoEDM<TH2F>(n2F));
210 std::unique_ptr<MEtoEDM<TH2S> > pOut2s(
new MEtoEDM<TH2S>(n2S));
211 std::unique_ptr<MEtoEDM<TH2D> > pOut2d(
new MEtoEDM<TH2D>(n2D));
212 std::unique_ptr<MEtoEDM<TH3F> > pOut3(
new MEtoEDM<TH3F>(n3F));
216 for (mmi =
items.begin(), mme =
items.end(); mmi != mme; ++mmi) {
222 assert(iLumiOnly ==
me->getLumiFlag());
225 switch (
me->kind()) {
227 pOutInt->putMEtoEdmObject(
me->getFullname(),
me->getIntValue());
231 pOutDouble->putMEtoEdmObject(
me->getFullname(),
me->getFloatValue());
235 pOutString->putMEtoEdmObject(
me->getFullname(),
me->getStringValue());
239 pOut1->putMEtoEdmObject(
me->getFullname(), *
me->getTH1F());
243 pOut1s->putMEtoEdmObject(
me->getFullname(), *
me->getTH1S());
247 pOut1d->putMEtoEdmObject(
me->getFullname(), *
me->getTH1D());
251 pOut2->putMEtoEdmObject(
me->getFullname(), *
me->getTH2F());
255 pOut2s->putMEtoEdmObject(
me->getFullname(), *
me->getTH2S());
259 pOut2d->putMEtoEdmObject(
me->getFullname(), *
me->getTH2D());
263 pOut3->putMEtoEdmObject(
me->getFullname(), *
me->getTH3F());
267 pOutProf->putMEtoEdmObject(
me->getFullname(), *
me->getTProfile());
271 pOutProf2->putMEtoEdmObject(
me->getFullname(), *
me->getTProfile2D());
275 edm::LogError(MsgLoggerCat) <<
"ERROR: The DQM object '" <<
me->getFullname()
276 <<
"' is neither a ROOT object nor a recognised "
277 <<
"simple object.\n";
286 sName =
fName +
"Lumi";
288 sName =
fName +
"Run";
293 iPutTo.put(
std::move(pOutDouble), sName);
294 iPutTo.put(
std::move(pOutString), sName);
References cms::cuda::assert(), fName, dqm::implementation::IGetter::getAllContents(), MonitorElementData::INT, mps_monitormerge::items, hlt_dqm_clientPB-live_cfg::me, eostools::move(), path, MonitorElementData::REAL, writedatasetfile::run, MonitorElementData::STRING, AlCaHLTBitMon_QueryRunRegistry::string, MonitorElementData::TH1D, MonitorElementData::TH1F, MonitorElementData::TH1S, MonitorElementData::TH2D, MonitorElementData::TH2F, MonitorElementData::TH2S, MonitorElementData::TH3F, MonitorElementData::TPROFILE, MonitorElementData::TPROFILE2D, and verbosity.
Referenced by endLuminosityBlockProduce(), and endRunProduce().