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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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::get(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), edm::ESHandleBase::isValid(), SiStripFecCabling::print(), SiStripDetCabling::print(), SiStripRegionCabling::print(), printDetCabling_, printFecCabling_, printRegionCabling_, edm::ESHandle< T >::product(), and edm::EventSetup::tryToGet().

Referenced by ~SiStripFedCablingReader().

26  {
27 
28  auto const fedRec = setup.tryToGet<SiStripFedCablingRcd>();
29  auto const fecRec = setup.tryToGet<SiStripFecCablingRcd>();
30  auto const detRec = setup.tryToGet<SiStripDetCablingRcd>();
31  auto const regRec = setup.tryToGet<SiStripRegionCablingRcd>();
32 
34  if(fedRec){
35  edm::LogVerbatim("SiStripFedCablingReader")
36  << "[SiStripFedCablingReader::" << __func__ << "]"
37  << " Retrieving FED cabling...";
38  fedRec->get( fed );
39  }
40 
42  if(fecRec){
43  edm::LogVerbatim("SiStripFedCablingReader")
44  << "[SiStripFedCablingReader::" << __func__ << "]"
45  << " Retrieving FEC cabling...";
46  fecRec->get( fec );
47  }
48 
50  if(detRec){
51  edm::LogVerbatim("SiStripFedCablingReader")
52  << "[SiStripFedCablingReader::" << __func__ << "]"
53  << " Retrieving DET cabling...";
54  detRec->get( det );
55  }
56 
58  if(regRec){
59  edm::LogVerbatim("SiStripFedCablingReader")
60  << "[SiStripFedCablingReader::" << __func__ << "]"
61  << " Retrieving REGION cabling...";
62  regRec->get( region );
63  }
64 
65  if ( !fed.isValid() ) {
66  edm::LogError("SiStripFedCablingReader")
67  << " Invalid handle to FED cabling object: ";
68  return;
69  }
70 
71  {
72  std::stringstream ss;
73  ss << "[SiStripFedCablingReader::" << __func__ << "]"
74  << " VERBOSE DEBUG" << std::endl;
75  if(fedRec) {
77  setup.get<TrackerTopologyRcd>().get(tTopo);
78  fed->print(ss, tTopo.product());
79  }
80  ss << std::endl;
81  if ( fecRec && printFecCabling_ && fec.isValid() ) { fec->print( ss ); }
82  ss << std::endl;
83  if ( detRec && printDetCabling_ && det.isValid() ) { det->print( ss ); }
84  ss << std::endl;
85  if ( regRec && printRegionCabling_ && region.isValid() ) { region->print( ss ); }
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 
110 }
void print(std::stringstream &) const
std::optional< T > tryToGet() const
Definition: EventSetup.h:92
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
void print(std::stringstream &) const
T get() const
Definition: EventSetup.h:71
bool isValid() const
Definition: ESHandle.h:44
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().