CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
trackerDTC::ProducerES Class Reference

Class to produce setup of Track Trigger emulators. More...

Inheritance diagram for trackerDTC::ProducerES:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

unique_ptr< Setupproduce (const SetupRcd &setupRcd)
 
 ProducerES (const ParameterSet &iConfig)
 
 ~ProducerES () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename Record >
void updateFromMayConsumes (unsigned int iIndex, const Record &iRecord)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Attributes

ESGetToken< TrackerDetToDTCELinkCablingMap, TrackerDetToDTCELinkCablingMapRcdgetTokenCablingMap_
 
ESGetToken< DDCompactView, IdealGeometryRecordgetTokenGeometryConfiguration_
 
ESGetToken< MagneticField, IdealMagneticFieldRecordgetTokenMagneticField_
 
ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordgetTokenTrackerGeometry_
 
ESGetToken< TrackerTopology, TrackerTopologyRcdgetTokenTrackerTopology_
 
ESGetToken< StubAlgorithm, TTStubAlgorithmRecordgetTokenTTStubAlgorithm_
 
const ParameterSet iConfig_
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &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 EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Class to produce setup of Track Trigger emulators.

Author
Thomas Schuh
Date
2020, Apr

Definition at line 21 of file ProducerES.cc.

Constructor & Destructor Documentation

◆ ProducerES()

trackerDTC::ProducerES::ProducerES ( const ParameterSet iConfig)

◆ ~ProducerES()

trackerDTC::ProducerES::~ProducerES ( )
inlineoverride

Definition at line 24 of file ProducerES.cc.

24 {}

Member Function Documentation

◆ produce()

unique_ptr< Setup > trackerDTC::ProducerES::produce ( const SetupRcd setupRcd)

Definition at line 47 of file ProducerES.cc.

47  {
48  const MagneticField& magneticField = setupRcd.get(getTokenMagneticField_);
49  const TrackerGeometry& trackerGeometry = setupRcd.get(getTokenTrackerGeometry_);
50  const TrackerTopology& trackerTopology = setupRcd.get(getTokenTrackerTopology_);
51  const TrackerDetToDTCELinkCablingMap& cablingMap = setupRcd.get(getTokenCablingMap_);
52  const ESHandle<StubAlgorithm> handleStubAlgorithm = setupRcd.getHandle(getTokenTTStubAlgorithm_);
53  const ESHandle<DDCompactView> handleGeometryConfiguration = setupRcd.getHandle(getTokenGeometryConfiguration_);
54  const ParameterSetID& pSetIdTTStubAlgorithm = handleStubAlgorithm.description()->pid_;
55  const ParameterSetID& pSetIdGeometryConfiguration = handleGeometryConfiguration.description()->pid_;
56  const StubAlgorithmOfficial& stubAlgoritm =
57  *dynamic_cast<const StubAlgorithmOfficial*>(&setupRcd.get(getTokenTTStubAlgorithm_));
58  const ParameterSet& pSetStubAlgorithm = getParameterSet(handleStubAlgorithm.description()->pid_);
59  const ParameterSet& pSetGeometryConfiguration = getParameterSet(handleGeometryConfiguration.description()->pid_);
60  return make_unique<Setup>(iConfig_,
62  trackerGeometry,
63  trackerTopology,
64  cablingMap,
65  stubAlgoritm,
66  pSetStubAlgorithm,
67  pSetGeometryConfiguration,
68  pSetIdTTStubAlgorithm,
69  pSetIdGeometryConfiguration);
70  }

References edm::ESHandleBase::description(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getHandle(), edm::getParameterSet(), getTokenCablingMap_, getTokenGeometryConfiguration_, getTokenMagneticField_, getTokenTrackerGeometry_, getTokenTrackerTopology_, getTokenTTStubAlgorithm_, iConfig_, HLT_2018_cff::magneticField, and edm::eventsetup::ComponentDescription::pid_.

Member Data Documentation

◆ getTokenCablingMap_

ESGetToken<TrackerDetToDTCELinkCablingMap, TrackerDetToDTCELinkCablingMapRcd> trackerDTC::ProducerES::getTokenCablingMap_
private

Definition at line 33 of file ProducerES.cc.

Referenced by produce(), and ProducerES().

◆ getTokenGeometryConfiguration_

ESGetToken<DDCompactView, IdealGeometryRecord> trackerDTC::ProducerES::getTokenGeometryConfiguration_
private

Definition at line 34 of file ProducerES.cc.

Referenced by produce(), and ProducerES().

◆ getTokenMagneticField_

ESGetToken<MagneticField, IdealMagneticFieldRecord> trackerDTC::ProducerES::getTokenMagneticField_
private

Definition at line 30 of file ProducerES.cc.

Referenced by produce(), and ProducerES().

◆ getTokenTrackerGeometry_

ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> trackerDTC::ProducerES::getTokenTrackerGeometry_
private

Definition at line 31 of file ProducerES.cc.

Referenced by produce(), and ProducerES().

◆ getTokenTrackerTopology_

ESGetToken<TrackerTopology, TrackerTopologyRcd> trackerDTC::ProducerES::getTokenTrackerTopology_
private

Definition at line 32 of file ProducerES.cc.

Referenced by produce(), and ProducerES().

◆ getTokenTTStubAlgorithm_

ESGetToken<StubAlgorithm, TTStubAlgorithmRecord> trackerDTC::ProducerES::getTokenTTStubAlgorithm_
private

Definition at line 29 of file ProducerES.cc.

Referenced by produce(), and ProducerES().

◆ iConfig_

const ParameterSet trackerDTC::ProducerES::iConfig_
private

Definition at line 28 of file ProducerES.cc.

Referenced by produce().

TrackerDetToDTCELinkCablingMap
Definition: TrackerDetToDTCELinkCablingMap.h:29
HLT_2018_cff.magneticField
magneticField
Definition: HLT_2018_cff.py:348
TrackerTopology
Definition: TrackerTopology.h:16
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
trackerDTC::ProducerES::getTokenGeometryConfiguration_
ESGetToken< DDCompactView, IdealGeometryRecord > getTokenGeometryConfiguration_
Definition: ProducerES.cc:34
trackerDTC::ProducerES::getTokenTrackerGeometry_
ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > getTokenTrackerGeometry_
Definition: ProducerES.cc:31
trackerDTC::StubAlgorithmOfficial
TTStubAlgorithm_official< Ref_Phase2TrackerDigi_ > StubAlgorithmOfficial
Definition: Setup.h:32
edm::ESHandle
Definition: DTSurvey.h:22
edm::Hash< ParameterSetType >
edm::ParameterSet
Definition: ParameterSet.h:36
trackerDTC::ProducerES::getTokenTrackerTopology_
ESGetToken< TrackerTopology, TrackerTopologyRcd > getTokenTrackerTopology_
Definition: ProducerES.cc:32
edm::ESHandleBase::description
edm::eventsetup::ComponentDescription const * description() const
Definition: ESHandle.cc:9
trackerDTC::ProducerES::iConfig_
const ParameterSet iConfig_
Definition: ProducerES.cc:28
trackerDTC::ProducerES::getTokenCablingMap_
ESGetToken< TrackerDetToDTCELinkCablingMap, TrackerDetToDTCELinkCablingMapRcd > getTokenCablingMap_
Definition: ProducerES.cc:33
trackerDTC::ProducerES::getTokenTTStubAlgorithm_
ESGetToken< StubAlgorithm, TTStubAlgorithmRecord > getTokenTTStubAlgorithm_
Definition: ProducerES.cc:29
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition: ParameterSet.cc:855
trackerDTC::ProducerES::getTokenMagneticField_
ESGetToken< MagneticField, IdealMagneticFieldRecord > getTokenMagneticField_
Definition: ProducerES.cc:30
edm::eventsetup::ComponentDescription::pid_
ParameterSetID pid_
Definition: ComponentDescription.h:37
MagneticField
Definition: MagneticField.h:19
TrackerGeometry
Definition: TrackerGeometry.h:14