test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
SiStripFedCablingReader Class Reference

#include <SiStripFedCablingReader.h>

Inheritance diagram for SiStripFedCablingReader:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 
void beginRun (const edm::Run &, const edm::EventSetup &)
 
 SiStripFedCablingReader (const edm::ParameterSet &)
 
 ~SiStripFedCablingReader ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

bool printDetCabling_
 
bool printFecCabling_
 
bool printRegionCabling_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 9 of file SiStripFedCablingReader.h.

Constructor & Destructor Documentation

SiStripFedCablingReader::SiStripFedCablingReader ( const edm::ParameterSet pset)

Definition at line 17 of file SiStripFedCablingReader.cc.

17  :
18  printFecCabling_( pset.getUntrackedParameter<bool>("PrintFecCabling",false) ),
19  printDetCabling_( pset.getUntrackedParameter<bool>("PrintDetCabling",false) ),
20  printRegionCabling_( pset.getUntrackedParameter<bool>("PrintRegionCabling",false) )
21 {;}
T getUntrackedParameter(std::string const &, T const &) const
SiStripFedCablingReader::~SiStripFedCablingReader ( )
inline

Definition at line 15 of file SiStripFedCablingReader.h.

15 {;}

Member Function Documentation

void SiStripFedCablingReader::analyze ( const edm::Event ,
const edm::EventSetup  
)
inlinevirtual

Implements edm::EDAnalyzer.

Definition at line 19 of file SiStripFedCablingReader.h.

19 {;}
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_, printRegionCabling_, HLT_25ns10e33_v2_cff::region, and contentValuesCheck::ss.

26  {
27 
32 
33  bool FedRcdfound=setup.find(FedRecordKey) != 0?true:false;
34  bool FecRcdfound=setup.find(FecRecordKey) != 0?true:false;
35  bool DetRcdfound=setup.find(DetRecordKey) != 0?true:false;
36  bool RegRcdfound=setup.find(RegRecordKey) != 0?true:false;
37 
39  if(FedRcdfound){
40  edm::LogVerbatim("SiStripFedCablingReader")
41  << "[SiStripFedCablingReader::" << __func__ << "]"
42  << " Retrieving FED cabling...";
43  setup.get<SiStripFedCablingRcd>().get( fed );
44  }
45 
47  if(FecRcdfound){
48  edm::LogVerbatim("SiStripFedCablingReader")
49  << "[SiStripFedCablingReader::" << __func__ << "]"
50  << " Retrieving FEC cabling...";
51  setup.get<SiStripFecCablingRcd>().get( fec );
52  }
53 
55  if(DetRcdfound){
56  edm::LogVerbatim("SiStripFedCablingReader")
57  << "[SiStripFedCablingReader::" << __func__ << "]"
58  << " Retrieving DET cabling...";
59  setup.get<SiStripDetCablingRcd>().get( det );
60  }
61 
63  if(RegRcdfound){
64  edm::LogVerbatim("SiStripFedCablingReader")
65  << "[SiStripFedCablingReader::" << __func__ << "]"
66  << " Retrieving REGION cabling...";
67  setup.get<SiStripRegionCablingRcd>().get( region );
68  }
69 
70  if ( !fed.isValid() ) {
71  edm::LogError("SiStripFedCablingReader")
72  << " Invalid handle to FED cabling object: ";
73  return;
74  }
75 
76  {
77  std::stringstream ss;
78  ss << "[SiStripFedCablingReader::" << __func__ << "]"
79  << " VERBOSE DEBUG" << std::endl;
80  if(FedRcdfound)fed->print( ss );
81  ss << std::endl;
82  if ( FecRcdfound && printFecCabling_ && fec.isValid() ) { fec->print( ss ); }
83  ss << std::endl;
84  if ( DetRcdfound && printDetCabling_ && det.isValid() ) { det->print( ss ); }
85  ss << std::endl;
86  if ( RegRcdfound && printRegionCabling_ && region.isValid() ) { region->print( ss ); }
87  ss << std::endl;
88  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
89  }
90 
91  if(FedRcdfound){
92  std::stringstream ss;
93  ss << "[SiStripFedCablingReader::" << __func__ << "]"
94  << " TERSE DEBUG" << std::endl;
95  fed->terse( ss );
96  ss << std::endl;
97  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
98  }
99 
100  if(FedRcdfound){
101  std::stringstream ss;
102  ss << "[SiStripFedCablingReader::" << __func__ << "]"
103  << " SUMMARY DEBUG" << std::endl;
104  fed->summary( ss );
105  ss << std::endl;
106  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
107  }
108 
109 }
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
Definition: EventSetup.cc:91
const T & get() const
Definition: EventSetup.h:56
bool isValid() const
Definition: ESHandle.h:47
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:125

Member Data Documentation

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().