|
void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
void | beginJob () override |
|
void | beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) override |
|
void | beginRun (const edm::Run &, const edm::EventSetup &) override |
|
| EDMtoMEConverter (const edm::ParameterSet &) |
|
void | endJob () override |
|
void | endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) override |
|
void | endRun (const edm::Run &, const edm::EventSetup &) override |
|
template<class T > |
void | getData (T &iGetFrom) |
|
void | respondToOpenInputFile (const edm::FileBlock &) override |
|
| ~EDMtoMEConverter () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () 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 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 |
|
EDConsumerBase & | operator= (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) |
|
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 50 of file EDMtoMEConverter.h.
template<class T >
void EDMtoMEConverter::getData |
( |
T & |
iGetFrom | ) |
|
Definition at line 331 of file EDMtoMEConverter.cc.
References constexpr, gather_cfg::cout, dbe, dir, MonitorElement::getFullname(), mps_fire::i, edm::HandleBase::isValid(), name, split, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, tokens_, and verbosity.
Referenced by endLuminosityBlock(), and endRun().
333 constexpr char MsgLoggerCat[] =
"EDMtoMEConverter_getData";
336 edm::LogInfo (MsgLoggerCat) <<
"\nRestoring MonitorElements.";
338 for_each(
tokens_, [&](
const auto& tok) {
341 using MEtoEDM_T =
typename Tokens_T::Product;
343 tok.getData(iGetFrom, metoedm);
350 std::vector<typename MEtoEDM_T::MEtoEDMObject> metoedmobject =
351 metoedm->getMEtoEdmObject();
353 for (
unsigned int i = 0;
i < metoedmobject.size(); ++
i) {
364 for (
unsigned j = 0; j < fulldir.size() - 1; ++j) {
366 if (j != fulldir.size() - 2) dir +=
"/";
370 MonitorElement *me = AddMonitorElement<METype>::call(
dbe, &metoedmobject[
i].
object, dir, name, iGetFrom);
371 maybeSetLumiFlag(me, iGetFrom);
374 for(
const auto&
tag: metoedmobject[
i].tags) {
382 std::vector<std::string> stags;
383 dbe->getAllTags(stags);
384 for (
auto const & stag : stags) {
385 std::cout <<
"Tags: " << stag << std::endl;
std::tuple< Tokens< TH1F >, Tokens< TH1S >, Tokens< TH1D >, Tokens< TH2F >, Tokens< TH2S >, Tokens< TH2D >, Tokens< TH3F >, Tokens< TProfile >, Tokens< TProfile2D >, Tokens< double >, Tokens< int >, Tokens< long long >, Tokens< TString > > tokens_
const std::string getFullname() const
get full name of ME including Pathname