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 ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
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 &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 9 of file SiStripFedCablingReader.h.

Constructor & Destructor Documentation

◆ SiStripFedCablingReader()

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

Definition at line 17 of file SiStripFedCablingReader.cc.

18  : printFecCabling_(pset.getUntrackedParameter<bool>("PrintFecCabling", false)),
19  printDetCabling_(pset.getUntrackedParameter<bool>("PrintDetCabling", false)),
20  printRegionCabling_(pset.getUntrackedParameter<bool>("PrintRegionCabling", false)) {
21  ;
22 }

◆ ~SiStripFedCablingReader()

SiStripFedCablingReader::~SiStripFedCablingReader ( )
inlineoverride

Definition at line 13 of file SiStripFedCablingReader.h.

13 { ; }

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 17 of file SiStripFedCablingReader.h.

17 { ; }

◆ beginRun()

void SiStripFedCablingReader::beginRun ( const edm::Run run,
const edm::EventSetup setup 
)
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 26 of file SiStripFedCablingReader.cc.

26  {
27  auto const fedRec = setup.tryToGet<SiStripFedCablingRcd>();
28  auto const fecRec = setup.tryToGet<SiStripFecCablingRcd>();
29  auto const detRec = setup.tryToGet<SiStripDetCablingRcd>();
30  auto const regRec = setup.tryToGet<SiStripRegionCablingRcd>();
31 
33  if (fedRec) {
34  edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]"
35  << " Retrieving FED cabling...";
36  fedRec->get(fed);
37  }
38 
40  if (fecRec) {
41  edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]"
42  << " Retrieving FEC cabling...";
43  fecRec->get(fec);
44  }
45 
47  if (detRec) {
48  edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]"
49  << " Retrieving DET cabling...";
50  detRec->get(det);
51  }
52 
54  if (regRec) {
55  edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]"
56  << " Retrieving REGION cabling...";
57  regRec->get(region);
58  }
59 
60  if (!fed.isValid()) {
61  edm::LogError("SiStripFedCablingReader") << " Invalid handle to FED cabling object: ";
62  return;
63  }
64 
65  {
66  std::stringstream ss;
67  ss << "[SiStripFedCablingReader::" << __func__ << "]"
68  << " VERBOSE DEBUG" << std::endl;
69  if (fedRec) {
71  setup.get<TrackerTopologyRcd>().get(tTopo);
72  fed->print(ss, tTopo.product());
73  }
74  ss << std::endl;
75  if (fecRec && printFecCabling_ && fec.isValid()) {
76  fec->print(ss);
77  }
78  ss << std::endl;
79  if (detRec && printDetCabling_ && det.isValid()) {
80  det->print(ss);
81  }
82  ss << std::endl;
83  if (regRec && printRegionCabling_ && region.isValid()) {
84  region->print(ss);
85  }
86  ss << std::endl;
87  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
88  }
89 
90  if (fedRec) {
91  std::stringstream ss;
92  ss << "[SiStripFedCablingReader::" << __func__ << "]"
93  << " TERSE DEBUG" << std::endl;
94  fed->terse(ss);
95  ss << std::endl;
96  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
97  }
98 
99  if (fedRec) {
100  std::stringstream ss;
101  ss << "[SiStripFedCablingReader::" << __func__ << "]"
102  << " SUMMARY DEBUG" << std::endl;
104  setup.get<TrackerTopologyRcd>().get(tTopo);
105  fed->summary(ss, tTopo.product());
106  ss << std::endl;
107  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
108  }
109 }

References edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), get, edm::ESHandleBase::isValid(), SiStripFecCabling::print(), SiStripDetCabling::print(), printDetCabling_, printFecCabling_, printRegionCabling_, edm::ESHandle< T >::product(), HLT_2018_cff::region, singleTopDQM_cfi::setup, and contentValuesCheck::ss.

Member Data Documentation

◆ printDetCabling_

bool SiStripFedCablingReader::printDetCabling_
private

Definition at line 21 of file SiStripFedCablingReader.h.

Referenced by beginRun().

◆ printFecCabling_

bool SiStripFedCablingReader::printFecCabling_
private

Definition at line 20 of file SiStripFedCablingReader.h.

Referenced by beginRun().

◆ printRegionCabling_

bool SiStripFedCablingReader::printRegionCabling_
private

Definition at line 22 of file SiStripFedCablingReader.h.

Referenced by beginRun().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
SiStripFedCablingReader::printFecCabling_
bool printFecCabling_
Definition: SiStripFedCablingReader.h:20
SiStripFecCabling::print
void print(std::stringstream &) const
Definition: SiStripFecCabling.cc:334
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
SiStripFedCablingRcd
Definition: SiStripCondDataRecords.h:22
edm::ESHandle< SiStripFedCabling >
SiStripDetCablingRcd
Definition: SiStripDependentRecords.h:19
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:112
SiStripFecCablingRcd
Definition: SiStripDependentRecords.h:15
edm::LogError
Definition: MessageLogger.h:183
SiStripFedCablingReader::printRegionCabling_
bool printRegionCabling_
Definition: SiStripFedCablingReader.h:22
SiStripFedCablingReader::printDetCabling_
bool printDetCabling_
Definition: SiStripFedCablingReader.h:21
edm::LogVerbatim
Definition: MessageLogger.h:297
SiStripDetCabling::print
void print(std::stringstream &) const
Definition: SiStripDetCabling.cc:386
SiStripRegionCablingRcd
Definition: SiStripDependentRecords.h:23
get
#define get
edm::ESHandleBase::isValid
bool isValid() const
Definition: ESHandle.h:44
HLT_2018_cff.region
region
Definition: HLT_2018_cff.py:81479
edm::eventsetup::EventSetupRecordImplementation::get
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
Definition: EventSetupRecordImplementation.h:74
TrackerTopologyRcd
Definition: TrackerTopologyRcd.h:10
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27