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
 
 ESProducer (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
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (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
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
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 TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&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)

Constructor.

Definition at line 22 of file GlobalTrackingGeometryESProducer.cc.

References gpuPixelDoublets::cc.

22  {
23  auto cc = setWhatProduced(this);
31 }
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > me0Token_
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:165
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemToken_
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > mtdToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerToken_
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcToken_

◆ ~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.

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

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 }
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > me0Token_
float dt
Definition: AMPTWrapper.h:136
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemToken_
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > mtdToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerToken_
Definition: L1Track.h:19
Log< level::Info, false > LogInfo
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcToken_
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.
Log< level::Warning, false > LogWarning

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.