CMS 3D CMS Logo

List of all members | Public Member Functions
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::shared_ptr< GlobalTrackingGeometryproduce (const GlobalTrackingGeometryRecord &record)
 Produce GlobalTrackingGeometry. More...
 
 ~GlobalTrackingGeometryESProducer () override
 Destructor. More...
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) override
 overrides DataProxyProvider method More...
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- 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 () noexcept(false)
 

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< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- 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::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override
 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 &)
 

Detailed Description

Definition at line 20 of file GlobalTrackingGeometryESProducer.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 20 of file GlobalTrackingGeometryESProducer.cc.

20  {
21  setWhatProduced(this);
22 }
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
GlobalTrackingGeometryESProducer::~GlobalTrackingGeometryESProducer ( )
override

Destructor.

Definition at line 24 of file GlobalTrackingGeometryESProducer.cc.

24 {}

Member Function Documentation

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

Produce GlobalTrackingGeometry.

Definition at line 27 of file GlobalTrackingGeometryESProducer.cc.

References GlobalTrackingGeometryBuilder::build(), DEFINE_FWK_EVENTSETUP_MODULE, dt, MillePedeFileConverter_cfg::e, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), edm::ESHandleBase::isValid(), mixOne_premix_on_sim_cfi::me0, edm::ESHandle< T >::product(), and omtf::DataWord64::rpc.

27  {
28 
29  TrackerGeometry const* tk = nullptr;
30  DTGeometry const* dt = nullptr;
31  CSCGeometry const* csc = nullptr;
32  RPCGeometry const* rpc = nullptr;
33  GEMGeometry const* gem = nullptr;
34  ME0Geometry const* me0 = nullptr;
35 
36  try {
38  record.getRecord<TrackerDigiGeometryRecord>().get(tkH);
39  if(tkH.isValid()) {
40  tk = tkH.product();
41  } else {
42  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No Tracker geometry is available.";
43  }
45  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No TrackerDigiGeometryRecord is available.";
46  }
47 
48 
49  try {
51  record.getRecord<MuonGeometryRecord>().get(dtH);
52  if(dtH.isValid()) {
53  dt = dtH.product();
54  } else {
55  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No DT geometry is available.";
56  }
57 
59  record.getRecord<MuonGeometryRecord>().get(cscH);
60  if(cscH.isValid()) {
61  csc = cscH.product();
62  } else {
63  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No CSC geometry is available.";
64  }
65 
67  record.getRecord<MuonGeometryRecord>().get(rpcH);
68  if(rpcH.isValid()) {
69  rpc = rpcH.product();
70  } else {
71  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No RPC geometry is available.";
72  }
73 
75  record.getRecord<MuonGeometryRecord>().get(gemH);
76  if(gemH.isValid()) {
77  gem = gemH.product();
78  } else {
79  LogInfo("GeometryGlobalTrackingGeometryBuilder") << "No GEM geometry is available.";
80  }
81 
83  record.getRecord<MuonGeometryRecord>().get(me0H);
84  if(me0H.isValid()) {
85  me0 = me0H.product();
86  } else {
87  LogInfo("GeometryGlobalTrackingGeometryBuilder") << "No ME0 geometry is available.";
88  }
89 
91  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No MuonGeometryRecord is available.";
92  }
93 
95  return std::shared_ptr<GlobalTrackingGeometry>(builder.build(tk, dt, csc, rpc, gem, me0));
96 }
float dt
Definition: AMPTWrapper.h:126
A class for AMC data.
Definition: AMC13Event.h:6
Definition: L1Track.h:19
bool isValid() const
Definition: ESHandle.h:47
T const * product() const
Definition: ESHandle.h:86
GlobalTrackingGeometry * build(const TrackerGeometry *tk, const DTGeometry *dt, const CSCGeometry *csc, const RPCGeometry *rpc, const GEMGeometry *gem, const ME0Geometry *me0)
Build the geometry.