CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SiStripFedCablingReader Class Reference
Inheritance diagram for SiStripFedCablingReader:
edm::one::EDAnalyzer< edm::one::WatchRuns > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginRun (const edm::Run &, const edm::EventSetup &) override
 
void endRun (const edm::Run &, const edm::EventSetup &) override
 
 SiStripFedCablingReader (const edm::ParameterSet &)
 
 ~SiStripFedCablingReader () override=default
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () 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
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > 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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, 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::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 21 of file SiStripFedCablingReader.cc.

Constructor & Destructor Documentation

◆ SiStripFedCablingReader()

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

Definition at line 43 of file SiStripFedCablingReader.cc.

44  : printFecCabling_(pset.getUntrackedParameter<bool>("PrintFecCabling", false)),
45  printDetCabling_(pset.getUntrackedParameter<bool>("PrintDetCabling", false)),
46  printRegionCabling_(pset.getUntrackedParameter<bool>("PrintRegionCabling", false)),
47  fedCablingToken_(esConsumes<edm::Transition::BeginRun>()),
48  fecCablingToken_(esConsumes<edm::Transition::BeginRun>()),
49  detCablingToken_(esConsumes<edm::Transition::BeginRun>()),
50  regionCablingToken_(esConsumes<edm::Transition::BeginRun>()),
51  tTopoToken_(esConsumes<edm::Transition::BeginRun>()) {}
const edm::ESGetToken< SiStripFecCabling, SiStripFecCablingRcd > fecCablingToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
const edm::ESGetToken< SiStripRegionCabling, SiStripRegionCablingRcd > regionCablingToken_
const edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
const edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_

◆ ~SiStripFedCablingReader()

SiStripFedCablingReader::~SiStripFedCablingReader ( )
overridedefault

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 28 of file SiStripFedCablingReader.cc.

28 {};

◆ beginRun()

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

Definition at line 55 of file SiStripFedCablingReader.cc.

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

55  {
56  auto const fedRec = setup.tryToGet<SiStripFedCablingRcd>();
57  auto const fecRec = setup.tryToGet<SiStripFecCablingRcd>();
58  auto const detRec = setup.tryToGet<SiStripDetCablingRcd>();
59  auto const regRec = setup.tryToGet<SiStripRegionCablingRcd>();
60 
62  if (fedRec) {
63  edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]"
64  << " Retrieving FED cabling...";
65  fed = setup.getHandle(fedCablingToken_);
66  }
67 
69  if (fecRec) {
70  edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]"
71  << " Retrieving FEC cabling...";
72  fec = setup.getHandle(fecCablingToken_);
73  }
74 
76  if (detRec) {
77  edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]"
78  << " Retrieving DET cabling...";
79  det = setup.getHandle(detCablingToken_);
80  }
81 
83  if (regRec) {
84  edm::LogVerbatim("SiStripFedCablingReader") << "[SiStripFedCablingReader::" << __func__ << "]"
85  << " Retrieving REGION cabling...";
86  region = setup.getHandle(regionCablingToken_);
87  }
88 
89  if (!fed.isValid()) {
90  edm::LogError("SiStripFedCablingReader") << " Invalid handle to FED cabling object: ";
91  return;
92  }
93 
94  {
95  std::stringstream ss;
96  ss << "[SiStripFedCablingReader::" << __func__ << "]"
97  << " VERBOSE DEBUG" << std::endl;
98  if (fedRec) {
99  fed->print(ss, &setup.getData(tTopoToken_));
100  }
101  ss << std::endl;
102  if (fecRec && printFecCabling_ && fec.isValid()) {
103  fec->print(ss);
104  }
105  ss << std::endl;
106  if (detRec && printDetCabling_ && det.isValid()) {
107  det->print(ss);
108  }
109  ss << std::endl;
110  if (regRec && printRegionCabling_ && region.isValid()) {
111  region->print(ss);
112  }
113  ss << std::endl;
114  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
115  }
116 
117  if (fedRec) {
118  std::stringstream ss;
119  ss << "[SiStripFedCablingReader::" << __func__ << "]"
120  << " TERSE DEBUG" << std::endl;
121  fed->terse(ss);
122  ss << std::endl;
123  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
124  }
125 
126  if (fedRec) {
127  std::stringstream ss;
128  ss << "[SiStripFedCablingReader::" << __func__ << "]"
129  << " SUMMARY DEBUG" << std::endl;
130  fed->summary(ss, &setup.getData(tTopoToken_));
131  ss << std::endl;
132  edm::LogVerbatim("SiStripFedCablingReader") << ss.str();
133  }
134 }
Log< level::Info, true > LogVerbatim
const edm::ESGetToken< SiStripFecCabling, SiStripFecCablingRcd > fecCablingToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
const edm::ESGetToken< SiStripRegionCabling, SiStripRegionCablingRcd > regionCablingToken_
void print(std::stringstream &) const
Log< level::Error, false > LogError
const edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
const edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
void print(std::stringstream &) const
bool isValid() const
Definition: ESHandle.h:44

◆ endRun()

void SiStripFedCablingReader::endRun ( const edm::Run ,
const edm::EventSetup  
)
inlineoverride

Definition at line 27 of file SiStripFedCablingReader.cc.

27 {};

Member Data Documentation

◆ detCablingToken_

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

Definition at line 36 of file SiStripFedCablingReader.cc.

Referenced by beginRun().

◆ fecCablingToken_

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

Definition at line 35 of file SiStripFedCablingReader.cc.

Referenced by beginRun().

◆ fedCablingToken_

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

Definition at line 34 of file SiStripFedCablingReader.cc.

Referenced by beginRun().

◆ printDetCabling_

bool SiStripFedCablingReader::printDetCabling_
private

Definition at line 32 of file SiStripFedCablingReader.cc.

Referenced by beginRun().

◆ printFecCabling_

bool SiStripFedCablingReader::printFecCabling_
private

Definition at line 28 of file SiStripFedCablingReader.cc.

Referenced by beginRun().

◆ printRegionCabling_

bool SiStripFedCablingReader::printRegionCabling_
private

Definition at line 33 of file SiStripFedCablingReader.cc.

Referenced by beginRun().

◆ regionCablingToken_

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

Definition at line 37 of file SiStripFedCablingReader.cc.

Referenced by beginRun().

◆ tTopoToken_

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

Definition at line 38 of file SiStripFedCablingReader.cc.

Referenced by beginRun().