#include <SiStripFedCablingReader.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
void | beginRun (const edm::Run &, const edm::EventSetup &) |
SiStripFedCablingReader (const edm::ParameterSet &) | |
~SiStripFedCablingReader () | |
Private Attributes | |
bool | printDetCabling_ |
bool | printFecCabling_ |
bool | printRegionCabling_ |
Definition at line 9 of file SiStripFedCablingReader.h.
SiStripFedCablingReader::SiStripFedCablingReader | ( | const edm::ParameterSet & | pset | ) |
Definition at line 17 of file SiStripFedCablingReader.cc.
: printFecCabling_( pset.getUntrackedParameter<bool>("PrintFecCabling",false) ), printDetCabling_( pset.getUntrackedParameter<bool>("PrintDetCabling",false) ), printRegionCabling_( pset.getUntrackedParameter<bool>("PrintRegionCabling",false) ) {;}
SiStripFedCablingReader::~SiStripFedCablingReader | ( | ) | [inline] |
Definition at line 15 of file SiStripFedCablingReader.h.
{;}
void SiStripFedCablingReader::analyze | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) | [inline, virtual] |
void SiStripFedCablingReader::beginRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 25 of file SiStripFedCablingReader.cc.
References edm::EventSetup::find(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), edm::EventSetup::get(), edm::ESHandleBase::isValid(), printDetCabling_, printFecCabling_, and printRegionCabling_.
{ edm::eventsetup::EventSetupRecordKey FedRecordKey(edm::eventsetup::EventSetupRecordKey::TypeTag::findType("SiStripFedCablingRcd")); edm::eventsetup::EventSetupRecordKey FecRecordKey(edm::eventsetup::EventSetupRecordKey::TypeTag::findType("SiStripFecCablingRcd")); edm::eventsetup::EventSetupRecordKey DetRecordKey(edm::eventsetup::EventSetupRecordKey::TypeTag::findType("SiStripDetCablingRcd")); edm::eventsetup::EventSetupRecordKey RegRecordKey(edm::eventsetup::EventSetupRecordKey::TypeTag::findType("SiStripRegionCablingRcd")); bool FedRcdfound=setup.find(FedRecordKey) != 0?true:false; bool FecRcdfound=setup.find(FecRecordKey) != 0?true:false; bool DetRcdfound=setup.find(DetRecordKey) != 0?true:false; bool RegRcdfound=setup.find(RegRecordKey) != 0?true:false; edm::ESHandle<SiStripFedCabling> fed; if(FedRcdfound){ edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]" << " Retrieving FED cabling..."; setup.get<SiStripFedCablingRcd>().get( fed ); } edm::ESHandle<SiStripFecCabling> fec; if(FecRcdfound){ edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]" << " Retrieving FEC cabling..."; setup.get<SiStripFecCablingRcd>().get( fec ); } edm::ESHandle<SiStripDetCabling> det; if(DetRcdfound){ edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]" << " Retrieving DET cabling..."; setup.get<SiStripDetCablingRcd>().get( det ); } edm::ESHandle<SiStripRegionCabling> region; if(RegRcdfound){ edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]" << " Retrieving REGION cabling..."; setup.get<SiStripRegionCablingRcd>().get( region ); } if ( !fed.isValid() ) { edm::LogError("SiStripFedCablingReader") << " Invalid handle to FED cabling object: "; return; } { std::stringstream ss; ss << "[SiStripFedCablingReader::" << __func__ << "]" << " VERBOSE DEBUG" << std::endl; if(FedRcdfound)fed->print( ss ); ss << std::endl; if ( FecRcdfound && printFecCabling_ && fec.isValid() ) { fec->print( ss ); } ss << std::endl; if ( DetRcdfound && printDetCabling_ && det.isValid() ) { det->print( ss ); } ss << std::endl; if ( RegRcdfound && printRegionCabling_ && region.isValid() ) { region->print( ss ); } ss << std::endl; edm::LogVerbatim("SiStripFedCablingReader") << ss.str(); } if(FedRcdfound){ std::stringstream ss; ss << "[SiStripFedCablingReader::" << __func__ << "]" << " TERSE DEBUG" << std::endl; fed->terse( ss ); ss << std::endl; edm::LogVerbatim("SiStripFedCablingReader") << ss.str(); } if(FedRcdfound){ std::stringstream ss; ss << "[SiStripFedCablingReader::" << __func__ << "]" << " SUMMARY DEBUG" << std::endl; fed->summary( ss ); ss << std::endl; edm::LogVerbatim("SiStripFedCablingReader") << ss.str(); } }
bool SiStripFedCablingReader::printDetCabling_ [private] |
Definition at line 24 of file SiStripFedCablingReader.h.
Referenced by beginRun().
bool SiStripFedCablingReader::printFecCabling_ [private] |
Definition at line 23 of file SiStripFedCablingReader.h.
Referenced by beginRun().
bool SiStripFedCablingReader::printRegionCabling_ [private] |
Definition at line 25 of file SiStripFedCablingReader.h.
Referenced by beginRun().