|
|
Go to the documentation of this file. 1 #ifndef CalibTracker_SiStripESProducer_DummyCondObjPrinter_h
2 #define CalibTracker_SiStripESProducer_DummyCondObjPrinter_h
16 template <
typename TObject,
typename TRecord>
30 template <
typename TObject,
typename TRecord>
33 edm::LogInfo(
"DummyCondObjPrinter") <<
"DummyCondObjPrinter constructor for typename " <<
typeid(TObject).
name()
34 <<
" and record " <<
typeid(TRecord).
name() << std::endl;
37 template <
typename TObject,
typename TRecord>
39 edm::LogInfo(
"DummyCondObjPrinter") <<
"DummyCondObjPrinter::~DummyCondObjPrinter()" << std::endl;
42 template <
typename TObject,
typename TRecord>
44 if (!watcher_.check(es))
47 const auto& esobj = es.
getData(token_);
48 const auto tTopo = &es.
getData(tTopoToken_);
49 std::stringstream sSummary, sDebug;
50 esobj.printSummary(sSummary, tTopo);
51 esobj.printDebug(sDebug, tTopo);
55 edm::LogPrint(
"DummyCondObjContentPrinter") <<
"\nPrintSummary \n" << sSummary.str() << std::endl;
56 edm::LogVerbatim(
"DummyCondObjContentPrinter") <<
"\nPrintDebug \n" << sDebug.str() << std::endl;
~DummyCondObjPrinter() override
Log< level::Warning, true > LogPrint
DummyCondObjPrinter(const edm::ParameterSet &iConfig)
Log< level::Info, false > LogInfo
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
edm::ESGetToken< TObject, TRecord > token_
edm::ParameterSet iConfig_
bool getData(T &iHolder) const
edm::ESWatcher< TRecord > watcher_
Log< level::Info, true > LogVerbatim
void analyze(const edm::Event &e, const edm::EventSetup &es) override