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;
Log< level::Info, true > LogVerbatim
edm::ParameterSet iConfig_
edm::ESGetToken< TObject, TRecord > token_
void analyze(const edm::Event &e, const edm::EventSetup &es) override
edm::ESWatcher< TRecord > watcher_
~DummyCondObjPrinter() override
bool getData(T &iHolder) const
Log< level::Warning, true > LogPrint
Log< level::Info, false > LogInfo
DummyCondObjPrinter(const edm::ParameterSet &iConfig)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_