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
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcddetCablingToken_
 
edm::ESGetToken< SiStripFecCabling, SiStripFecCablingRcdfecCablingToken_
 
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcdfedCablingToken_
 
bool printDetCabling_
 
bool printFecCabling_
 
bool printRegionCabling_
 
edm::ESGetToken< SiStripRegionCabling, SiStripRegionCablingRcdregionCablingToken_
 
edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtTopoToken_
 

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 wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
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 = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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 18 of file SiStripFedCablingReader.h.

Constructor & Destructor Documentation

◆ SiStripFedCablingReader()

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

Definition at line 13 of file SiStripFedCablingReader.cc.

14  : printFecCabling_(pset.getUntrackedParameter<bool>("PrintFecCabling", false)),
15  printDetCabling_(pset.getUntrackedParameter<bool>("PrintDetCabling", false)),
16  printRegionCabling_(pset.getUntrackedParameter<bool>("PrintRegionCabling", false)),
17  fedCablingToken_(esConsumes<edm::Transition::BeginRun>()),
18  fecCablingToken_(esConsumes<edm::Transition::BeginRun>()),
19  detCablingToken_(esConsumes<edm::Transition::BeginRun>()),
20  regionCablingToken_(esConsumes<edm::Transition::BeginRun>()),
21  tTopoToken_(esConsumes<edm::Transition::BeginRun>()) {}

◆ ~SiStripFedCablingReader()

SiStripFedCablingReader::~SiStripFedCablingReader ( )
inlineoverride

Definition at line 22 of file SiStripFedCablingReader.h.

22 { ; }

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 26 of file SiStripFedCablingReader.h.

26 { ; }

◆ beginRun()

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

Reimplemented from edm::EDAnalyzer.

Definition at line 25 of file SiStripFedCablingReader.cc.

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

References detCablingToken_, fecCablingToken_, fedCablingToken_, edm::ESHandleBase::isValid(), SiStripFecCabling::print(), SiStripDetCabling::print(), printDetCabling_, printFecCabling_, printRegionCabling_, HLT_FULL_cff::region, regionCablingToken_, singleTopDQM_cfi::setup, contentValuesCheck::ss, and tTopoToken_.

Member Data Documentation

◆ detCablingToken_

edm::ESGetToken<SiStripDetCabling, SiStripDetCablingRcd> SiStripFedCablingReader::detCablingToken_
private

Definition at line 34 of file SiStripFedCablingReader.h.

Referenced by beginRun().

◆ fecCablingToken_

edm::ESGetToken<SiStripFecCabling, SiStripFecCablingRcd> SiStripFedCablingReader::fecCablingToken_
private

Definition at line 33 of file SiStripFedCablingReader.h.

Referenced by beginRun().

◆ fedCablingToken_

edm::ESGetToken<SiStripFedCabling, SiStripFedCablingRcd> SiStripFedCablingReader::fedCablingToken_
private

Definition at line 32 of file SiStripFedCablingReader.h.

Referenced by beginRun().

◆ printDetCabling_

bool SiStripFedCablingReader::printDetCabling_
private

Definition at line 30 of file SiStripFedCablingReader.h.

Referenced by beginRun().

◆ printFecCabling_

bool SiStripFedCablingReader::printFecCabling_
private

Definition at line 29 of file SiStripFedCablingReader.h.

Referenced by beginRun().

◆ printRegionCabling_

bool SiStripFedCablingReader::printRegionCabling_
private

Definition at line 31 of file SiStripFedCablingReader.h.

Referenced by beginRun().

◆ regionCablingToken_

edm::ESGetToken<SiStripRegionCabling, SiStripRegionCablingRcd> SiStripFedCablingReader::regionCablingToken_
private

Definition at line 35 of file SiStripFedCablingReader.h.

Referenced by beginRun().

◆ tTopoToken_

edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> SiStripFedCablingReader::tTopoToken_
private

Definition at line 36 of file SiStripFedCablingReader.h.

Referenced by beginRun().

SiStripFedCablingReader::printFecCabling_
bool printFecCabling_
Definition: SiStripFedCablingReader.h:29
SiStripFedCablingReader::regionCablingToken_
edm::ESGetToken< SiStripRegionCabling, SiStripRegionCablingRcd > regionCablingToken_
Definition: SiStripFedCablingReader.h:35
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
SiStripFedCablingReader::fecCablingToken_
edm::ESGetToken< SiStripFecCabling, SiStripFecCablingRcd > fecCablingToken_
Definition: SiStripFedCablingReader.h:33
edm::ESHandle
Definition: DTSurvey.h:22
SiStripDetCablingRcd
Definition: SiStripDependentRecords.h:19
SiStripFecCablingRcd
Definition: SiStripDependentRecords.h:15
SiStripFedCablingReader::detCablingToken_
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
Definition: SiStripFedCablingReader.h:34
SiStripFedCablingReader::fedCablingToken_
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
Definition: SiStripFedCablingReader.h:32
SiStripFedCablingReader::printRegionCabling_
bool printRegionCabling_
Definition: SiStripFedCablingReader.h:31
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88286
SiStripFedCablingReader::printDetCabling_
bool printDetCabling_
Definition: SiStripFedCablingReader.h:30
SiStripDetCabling::print
void print(std::stringstream &) const
Definition: SiStripDetCabling.cc:386
SiStripRegionCablingRcd
Definition: SiStripDependentRecords.h:23
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
edm::ESHandleBase::isValid
bool isValid() const
Definition: ESHandle.h:44
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
SiStripFedCablingReader::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripFedCablingReader.h:36