CMS 3D CMS Logo

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

#include <GlobalTrackingGeometryESProducer.h>

Inheritance diagram for GlobalTrackingGeometryESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 GlobalTrackingGeometryESProducer (const edm::ParameterSet &p)
 Constructor. More...
 
std::unique_ptr< GlobalTrackingGeometryproduce (const GlobalTrackingGeometryRecord &record)
 Produce GlobalTrackingGeometry. More...
 
 ~GlobalTrackingGeometryESProducer () override
 Destructor. More...
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
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

edm::ESGetToken< CSCGeometry, MuonGeometryRecordcscToken_
 
edm::ESGetToken< DTGeometry, MuonGeometryRecorddtToken_
 
edm::ESGetToken< GEMGeometry, MuonGeometryRecordgemToken_
 
edm::ESGetToken< ME0Geometry, MuonGeometryRecordme0Token_
 
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecordmtdToken_
 
edm::ESGetToken< RPCGeometry, MuonGeometryRecordrpcToken_
 
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordtrackerToken_
 

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={})
 
void usesResources (std::vector< std::string > const &)
 
- 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

Definition at line 30 of file GlobalTrackingGeometryESProducer.h.

Constructor & Destructor Documentation

◆ GlobalTrackingGeometryESProducer()

GlobalTrackingGeometryESProducer::GlobalTrackingGeometryESProducer ( const edm::ParameterSet p)

◆ ~GlobalTrackingGeometryESProducer()

GlobalTrackingGeometryESProducer::~GlobalTrackingGeometryESProducer ( )
override

Destructor.

Definition at line 33 of file GlobalTrackingGeometryESProducer.cc.

33 {}

Member Function Documentation

◆ produce()

std::unique_ptr< GlobalTrackingGeometry > GlobalTrackingGeometryESProducer::produce ( const GlobalTrackingGeometryRecord record)

Produce GlobalTrackingGeometry.

Definition at line 35 of file GlobalTrackingGeometryESProducer.cc.

36  {
37  TrackerGeometry const* tk = nullptr;
38  MTDGeometry const* mtd = nullptr;
39  DTGeometry const* dt = nullptr;
40  CSCGeometry const* csc = nullptr;
41  RPCGeometry const* rpc = nullptr;
42  GEMGeometry const* gem = nullptr;
43  ME0Geometry const* me0 = nullptr;
44 
45  if (auto tkRecord = record.tryToGetRecord<TrackerDigiGeometryRecord>()) {
46  if (auto tkH = tkRecord->getHandle(trackerToken_)) {
47  tk = tkH.product();
48  } else {
49  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No Tracker geometry is available.";
50  }
51  } else {
52  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No TrackerDigiGeometryRecord is available.";
53  }
54 
55  if (auto mtdRecord = record.tryToGetRecord<MTDDigiGeometryRecord>()) {
56  if (auto mtdH = mtdRecord->getHandle(mtdToken_)) {
57  mtd = mtdH.product();
58  } else {
59  LogInfo("GeometryGlobalTrackingGeometryBuilder") << "No MTD geometry is available.";
60  }
61  } else {
62  LogInfo("GeometryGlobalTrackingGeometryBuilder") << "No MTDDigiGeometryRecord is available.";
63  }
64 
65  if (auto muonRecord = record.tryToGetRecord<MuonGeometryRecord>()) {
66  if (auto dtH = muonRecord->getHandle(dtToken_)) {
67  dt = dtH.product();
68  } else {
69  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No DT geometry is available.";
70  }
71 
72  if (auto cscH = muonRecord->getHandle(cscToken_)) {
73  csc = cscH.product();
74  } else {
75  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No CSC geometry is available.";
76  }
77 
78  if (auto rpcH = muonRecord->getHandle(rpcToken_)) {
79  rpc = rpcH.product();
80  } else {
81  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No RPC geometry is available.";
82  }
83 
84  if (auto gemH = muonRecord->getHandle(gemToken_)) {
85  gem = gemH.product();
86  } else {
87  LogInfo("GeometryGlobalTrackingGeometryBuilder") << "No GEM geometry is available.";
88  }
89 
90  if (auto me0H = muonRecord->getHandle(me0Token_)) {
91  me0 = me0H.product();
92  } else {
93  LogInfo("GeometryGlobalTrackingGeometryBuilder") << "No ME0 geometry is available.";
94  }
95 
96  } else {
97  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No MuonGeometryRecord is available.";
98  }
99 
101  return std::unique_ptr<GlobalTrackingGeometry>(builder.build(tk, mtd, dt, csc, rpc, gem, me0));
102 }

References GlobalTrackingGeometryBuilder::build(), dt, mixOne_premix_on_sim_cfi::me0, AlCaHarvesting_cff::record, and omtf::DataWord64::rpc.

Member Data Documentation

◆ cscToken_

edm::ESGetToken<CSCGeometry, MuonGeometryRecord> GlobalTrackingGeometryESProducer::cscToken_
private

Definition at line 45 of file GlobalTrackingGeometryESProducer.h.

◆ dtToken_

edm::ESGetToken<DTGeometry, MuonGeometryRecord> GlobalTrackingGeometryESProducer::dtToken_
private

Definition at line 44 of file GlobalTrackingGeometryESProducer.h.

◆ gemToken_

edm::ESGetToken<GEMGeometry, MuonGeometryRecord> GlobalTrackingGeometryESProducer::gemToken_
private

Definition at line 47 of file GlobalTrackingGeometryESProducer.h.

◆ me0Token_

edm::ESGetToken<ME0Geometry, MuonGeometryRecord> GlobalTrackingGeometryESProducer::me0Token_
private

Definition at line 48 of file GlobalTrackingGeometryESProducer.h.

◆ mtdToken_

edm::ESGetToken<MTDGeometry, MTDDigiGeometryRecord> GlobalTrackingGeometryESProducer::mtdToken_
private

Definition at line 43 of file GlobalTrackingGeometryESProducer.h.

◆ rpcToken_

edm::ESGetToken<RPCGeometry, MuonGeometryRecord> GlobalTrackingGeometryESProducer::rpcToken_
private

Definition at line 46 of file GlobalTrackingGeometryESProducer.h.

◆ trackerToken_

edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> GlobalTrackingGeometryESProducer::trackerToken_
private

Definition at line 42 of file GlobalTrackingGeometryESProducer.h.

MTDDigiGeometryRecord
Definition: MTDDigiGeometryRecord.h:15
DTGeometry
Definition: DTGeometry.h:28
edm::ESInputTag
Definition: ESInputTag.h:87
GlobalTrackingGeometryESProducer::trackerToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerToken_
Definition: GlobalTrackingGeometryESProducer.h:42
ME0Geometry
Definition: ME0Geometry.h:12
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
cc
CSCGeometry
Definition: CSCGeometry.h:24
dt
float dt
Definition: AMPTWrapper.h:136
GlobalTrackingGeometryBuilder
Definition: GlobalTrackingGeometryBuilder.h:22
csc
Definition: L1Track.h:19
GlobalTrackingGeometryESProducer::dtToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtToken_
Definition: GlobalTrackingGeometryESProducer.h:44
TrackerDigiGeometryRecord
Definition: TrackerDigiGeometryRecord.h:16
mixOne_premix_on_sim_cfi.me0
me0
Definition: mixOne_premix_on_sim_cfi.py:309
GlobalTrackingGeometryESProducer::rpcToken_
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcToken_
Definition: GlobalTrackingGeometryESProducer.h:46
AlCaHarvesting_cff.record
record
Definition: AlCaHarvesting_cff.py:42
gem
Definition: AMC13Event.h:6
MTDGeometry
Definition: MTDGeometry.h:14
GlobalTrackingGeometryESProducer::cscToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscToken_
Definition: GlobalTrackingGeometryESProducer.h:45
GlobalTrackingGeometryESProducer::me0Token_
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > me0Token_
Definition: GlobalTrackingGeometryESProducer.h:48
GEMGeometry
Definition: GEMGeometry.h:24
RPCGeometry
Definition: RPCGeometry.h:20
mtd_digitizer
Definition: MTDDigitizer.h:34
GlobalTrackingGeometryESProducer::gemToken_
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemToken_
Definition: GlobalTrackingGeometryESProducer.h:47
omtf::DataWord64::rpc
Definition: OmtfDataWord64.h:16
MuonGeometryRecord
Definition: MuonGeometryRecord.h:34
GlobalTrackingGeometryESProducer::mtdToken_
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > mtdToken_
Definition: GlobalTrackingGeometryESProducer.h:43
GlobalTrackingGeometryBuilder::build
GlobalTrackingGeometry * build(const TrackerGeometry *tk, const MTDGeometry *mtd, const DTGeometry *dt, const CSCGeometry *csc, const RPCGeometry *rpc, const GEMGeometry *gem, const ME0Geometry *me0)
Build the geometry.
Definition: GlobalTrackingGeometryBuilder.cc:23
TrackerGeometry
Definition: TrackerGeometry.h:14