CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
Phase2TrackerCablingCfgESSource Class Reference

#include <Phase2TrackerCablingCfgESSource.h>

Inheritance diagram for Phase2TrackerCablingCfgESSource:
Phase2TrackerCablingESProducer edm::EventSetupRecordIntervalFinder edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 Phase2TrackerCablingCfgESSource (const edm::ParameterSet &)
 
 ~Phase2TrackerCablingCfgESSource () override
 
- Public Member Functions inherited from Phase2TrackerCablingESProducer
 Phase2TrackerCablingESProducer (const edm::ParameterSet &)
 
virtual std::unique_ptr< Phase2TrackerCablingproduce (const Phase2TrackerCablingRcd &)
 
 ~Phase2TrackerCablingESProducer () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) override
 overrides DataProxyProvider method More...
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
const eventsetup::ComponentDescriptiondescriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
std::set< eventsetup::EventSetupRecordKeyfindingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder () noexcept(false)
 

Protected Member Functions

void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &key, const edm::IOVSyncValue &iov_sync, edm::ValidityInterval &iov_validity) override
 
- Protected Member Functions inherited from edm::ESProducer
 ESProducer (const ESProducer &)=delete
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 
- Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder
template<class T >
void findingRecord ()
 
void findingRecordWithKey (const eventsetup::EventSetupRecordKey &)
 

Private Member Functions

Phase2TrackerCablingmake (const Phase2TrackerCablingRcd &) override
 

Private Attributes

edm::ParameterSet pset_
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 11 of file Phase2TrackerCablingCfgESSource.h.

Constructor & Destructor Documentation

Phase2TrackerCablingCfgESSource::Phase2TrackerCablingCfgESSource ( const edm::ParameterSet pset)
explicit

Definition at line 15 of file Phase2TrackerCablingCfgESSource.cc.

16  : Phase2TrackerCablingESProducer( pset ), pset_(pset)
17 {
18  findingRecord<Phase2TrackerCablingRcd>();
19  edm::LogVerbatim("Phase2TrackerCabling")
20  << "[Phase2TrackerCablingCfgESSource::" << __func__ << "]"
21  << " Constructing object...";
22 }
Phase2TrackerCablingESProducer(const edm::ParameterSet &)
Phase2TrackerCablingCfgESSource::~Phase2TrackerCablingCfgESSource ( )
override

Definition at line 26 of file Phase2TrackerCablingCfgESSource.cc.

26  {
27  edm::LogVerbatim("Phase2TrackerCabling")
28  << "[Phase2TrackerCablingCfgESSource::" << __func__ << "]"
29  << " Destructing object...";
30 }

Member Function Documentation

Phase2TrackerCabling * Phase2TrackerCablingCfgESSource::make ( const Phase2TrackerCablingRcd )
overrideprivatevirtual

Implements Phase2TrackerCablingESProducer.

Definition at line 34 of file Phase2TrackerCablingCfgESSource.cc.

References edm::ParameterSet::getParameterSetVector(), Phase2TrackerModule::PS, pset_, Phase2TrackerModule::SS, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by setIntervalFor().

34  {
35  edm::LogVerbatim("Phase2TrackerCabling")
36  << "[Phase2TrackerCablingCfgESSource::" << __func__ << "]"
37  << " Building FED cabling map from cfg.";
38 
39  std::vector<Phase2TrackerModule> conns;
40 
41  // iterate through the parameterset and create corresponding Phase2TrackerModule
42  std::vector<edm::ParameterSet> modules = pset_.getParameterSetVector("modules");
43  uint32_t detid,gbtid,fedid,fedch,powerGroup,coolingLoop;
44  for(std::vector<edm::ParameterSet>::const_iterator it = modules.begin();it<modules.end();++it) {
45  detid = it->getParameter<uint32_t>("detid");
46  gbtid = it->getParameter<uint32_t>("gbtid");
47  fedid = it->getParameter<uint32_t>("fedid");
48  fedch = it->getParameter<uint32_t>("fedch");
49  powerGroup = it->getParameter<uint32_t>("powerGroup");
50  coolingLoop = it->getParameter<uint32_t>("coolingLoop");
52  conns.push_back(Phase2TrackerModule(type,detid,gbtid,fedid,fedch,powerGroup,coolingLoop));
53  }
54 
55  // return the cabling
56  Phase2TrackerCabling* cabling = new Phase2TrackerCabling( conns );
57  return cabling;
58 
59 }
type
Definition: HCALResponse.h:21
VParameterSet const & getParameterSetVector(std::string const &name) const
void Phase2TrackerCablingCfgESSource::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey key,
const edm::IOVSyncValue iov_sync,
edm::ValidityInterval iov_validity 
)
inlineoverrideprotectedvirtual

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 20 of file Phase2TrackerCablingCfgESSource.h.

References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), infinity, and make().

22  {
23  edm::ValidityInterval infinity( iov_sync.beginOfTime(), iov_sync.endOfTime() );
24  iov_validity = infinity;
25  }
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
const double infinity

Member Data Documentation

edm::ParameterSet Phase2TrackerCablingCfgESSource::pset_
private

Definition at line 33 of file Phase2TrackerCablingCfgESSource.h.

Referenced by make().