test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
- Public Member Functions inherited from Phase2TrackerCablingESProducer
 Phase2TrackerCablingESProducer (const edm::ParameterSet &)
 
virtual std::auto_ptr
< Phase2TrackerCabling
produce (const Phase2TrackerCablingRcd &)
 
virtual ~Phase2TrackerCablingESProducer ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- 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 ()
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
const
eventsetup::ComponentDescription
descriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
std::set
< eventsetup::EventSetupRecordKey
findingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder ()
 

Protected Member Functions

virtual void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &key, const edm::IOVSyncValue &iov_sync, edm::ValidityInterval &iov_validity)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 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

virtual Phase2TrackerCablingmake (const Phase2TrackerCablingRcd &)
 

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
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- 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 16 of file Phase2TrackerCablingCfgESSource.cc.

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

Definition at line 27 of file Phase2TrackerCablingCfgESSource.cc.

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

Member Function Documentation

Phase2TrackerCabling * Phase2TrackerCablingCfgESSource::make ( const Phase2TrackerCablingRcd )
privatevirtual

Implements Phase2TrackerCablingESProducer.

Definition at line 35 of file Phase2TrackerCablingCfgESSource.cc.

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

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

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 20 of file Phase2TrackerCablingCfgESSource.h.

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

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

Member Data Documentation

edm::ParameterSet Phase2TrackerCablingCfgESSource::pset_
private

Definition at line 33 of file Phase2TrackerCablingCfgESSource.h.

Referenced by make().