CMS 3D CMS Logo

Public Member Functions | Private Attributes

DummyCondObjPrinter< TObject, TRecord > Class Template Reference

#include <DummyCondObjPrinter.h>

Inheritance diagram for DummyCondObjPrinter< TObject, TRecord >:
edm::EDAnalyzer

List of all members.

Public Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &es)
 DummyCondObjPrinter (const edm::ParameterSet &iConfig)
 ~DummyCondObjPrinter ()

Private Attributes

unsigned long long cacheID
edm::ParameterSet iConfig_

Detailed Description

template<typename TObject, typename TRecord>
class DummyCondObjPrinter< TObject, TRecord >

Definition at line 17 of file DummyCondObjPrinter.h.


Constructor & Destructor Documentation

template<typename TObject , typename TRecord >
DummyCondObjPrinter< TObject, TRecord >::DummyCondObjPrinter ( const edm::ParameterSet iConfig) [explicit]

Definition at line 32 of file DummyCondObjPrinter.h.

References mergeVDriftHistosByStation::name.

                                                                                       :iConfig_(iConfig),cacheID(0){
  edm::LogInfo("DummyCondObjPrinter") << "DummyCondObjPrinter constructor for typename " << typeid(TObject).name() << " and record " << typeid(TRecord).name() << std::endl;
}
template<typename TObject , typename TRecord >
DummyCondObjPrinter< TObject, TRecord >::~DummyCondObjPrinter ( )

Definition at line 38 of file DummyCondObjPrinter.h.

                                                          {
 edm::LogInfo("DummyCondObjPrinter") << "DummyCondObjPrinter::~DummyCondObjPrinter()" << std::endl;
}

Member Function Documentation

template<typename TObject , typename TRecord >
void DummyCondObjPrinter< TObject, TRecord >::analyze ( const edm::Event e,
const edm::EventSetup es 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 43 of file DummyCondObjPrinter.h.

References edm::EventSetup::get().

                                                                                           {

  if( cacheID == es.get<TRecord>().cacheIdentifier())
    return;
  
  cacheID = es.get<TRecord>().cacheIdentifier();

  edm::ESHandle<TObject> esobj;
  es.get<TRecord>().get( esobj );
  std::stringstream sSummary, sDebug;
  esobj->printSummary(sSummary);
  esobj->printDebug(sDebug);

  edm::LogInfo("DummyCondObjPrinter") << "\nPrintSummary \n" << sSummary.str()  << std::endl;
  edm::LogWarning("DummyCondObjPrinter") << "\nPrintDebug \n" << sDebug.str()  << std::endl;
}

Member Data Documentation

template<typename TObject , typename TRecord >
unsigned long long DummyCondObjPrinter< TObject, TRecord >::cacheID [private]

Definition at line 28 of file DummyCondObjPrinter.h.

template<typename TObject , typename TRecord >
edm::ParameterSet DummyCondObjPrinter< TObject, TRecord >::iConfig_ [private]

Definition at line 27 of file DummyCondObjPrinter.h.