CMS 3D CMS Logo

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 &) override
 
void beginRun (const edm::Run &, const edm::EventSetup &) override
 
 SiStripFedCablingReader (const edm::ParameterSet &)
 
 ~SiStripFedCablingReader () override
 
- 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
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

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

Definition at line 15 of file SiStripFedCablingReader.h.

References beginRun().

15 {;}

Member Function Documentation

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

Definition at line 19 of file SiStripFedCablingReader.h.

19 {;}
void SiStripFedCablingReader::beginRun ( const edm::Run run,
const edm::EventSetup setup 
)
override

Definition at line 25 of file SiStripFedCablingReader.cc.

References edm::EventSetup::find(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), edm::EventSetup::get(), edm::ESHandleBase::isValid(), SiStripFecCabling::print(), SiStripDetCabling::print(), SiStripFedCabling::print(), SiStripRegionCabling::print(), printDetCabling_, printFecCabling_, printRegionCabling_, edm::ESHandle< T >::product(), SiStripFedCabling::summary(), and SiStripFedCabling::terse().

Referenced by ~SiStripFedCablingReader().

26  {
27 
32 
33  bool FedRcdfound=setup.find(FedRecordKey) != nullptr?true:false;
34  bool FecRcdfound=setup.find(FecRecordKey) != nullptr?true:false;
35  bool DetRcdfound=setup.find(DetRecordKey) != nullptr?true:false;
36  bool RegRcdfound=setup.find(RegRecordKey) != nullptr?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) {
82  setup.get<TrackerTopologyRcd>().get(tTopo);
83  fed->print(ss, tTopo.product());
84  }
85  ss << std::endl;
86  if ( FecRcdfound && printFecCabling_ && fec.isValid() ) { fec->print( ss ); }
87  ss << std::endl;
88  if ( DetRcdfound && printDetCabling_ && det.isValid() ) { det->print( ss ); }
89  ss << std::endl;
90  if ( RegRcdfound && printRegionCabling_ && region.isValid() ) { region->print( ss ); }
91  ss << std::endl;
92  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
93  }
94 
95  if(FedRcdfound){
96  std::stringstream ss;
97  ss << "[SiStripFedCablingReader::" << __func__ << "]"
98  << " TERSE DEBUG" << std::endl;
99  fed->terse( ss );
100  ss << std::endl;
101  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
102  }
103 
104  if(FedRcdfound){
105  std::stringstream ss;
106  ss << "[SiStripFedCablingReader::" << __func__ << "]"
107  << " SUMMARY DEBUG" << std::endl;
109  setup.get<TrackerTopologyRcd>().get(tTopo);
110  fed->summary(ss, tTopo.product());
111  ss << std::endl;
112  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
113  }
114 
115 }
void print(std::stringstream &) const
void terse(std::stringstream &) const
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
void print(std::stringstream &ss, const TrackerTopology *trackerTopo) const
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTDEBUG.
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
Definition: EventSetup.cc:91
void print(std::stringstream &) const
const T & get() const
Definition: EventSetup.h:55
void summary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY.
bool isValid() const
Definition: ESHandle.h:47
T const * product() const
Definition: ESHandle.h:86
void print(std::stringstream &) const

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