1 #ifndef CalibTracker_SiStripESProducer_DummyCondObjPrinter_h
2 #define CalibTracker_SiStripESProducer_DummyCondObjPrinter_h
16 template <
typename TObject,
typename TRecord>
28 template <
typename TObject,
typename TRecord>
30 : iConfig_(iConfig), cacheID(0) {
31 edm::LogInfo(
"DummyCondObjPrinter") <<
"DummyCondObjPrinter constructor for typename " <<
typeid(TObject).
name()
32 <<
" and record " <<
typeid(TRecord).
name() << std::endl;
35 template <
typename TObject,
typename TRecord>
37 edm::LogInfo(
"DummyCondObjPrinter") <<
"DummyCondObjPrinter::~DummyCondObjPrinter()" << std::endl;
40 template <
typename TObject,
typename TRecord>
42 if (cacheID == es.
get<TRecord>().cacheIdentifier())
45 cacheID = es.
get<TRecord>().cacheIdentifier();
48 es.
get<TRecord>().
get(esobj);
51 std::stringstream sSummary, sDebug;
52 esobj->printSummary(sSummary, tTopo.
product());
53 esobj->printDebug(sDebug, tTopo.
product());
57 edm::LogPrint(
"DummyCondObjContentPrinter") <<
"\nPrintSummary \n" << sSummary.str() << std::endl;
58 edm::LogVerbatim(
"DummyCondObjContentPrinter") <<
"\nPrintDebug \n" << sDebug.str() << std::endl;