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::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

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
 
ESResolverIndex 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< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () 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::ESProductResolverProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 
- 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::ESProductResolverFactoryProducer
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::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
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 20 of file GlobalTrackingGeometryESProducer.cc.

References gpuPixelDoublets::cc.

20  {
21  auto cc = setWhatProduced(this);
29 }
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > me0Token_
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
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 31 of file GlobalTrackingGeometryESProducer.cc.

31 {}

Member Function Documentation

◆ produce()

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

Produce GlobalTrackingGeometry.

Definition at line 33 of file GlobalTrackingGeometryESProducer.cc.

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

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