CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
XMLIdealMagneticFieldGeometryESProducer Class Reference
Inheritance diagram for XMLIdealMagneticFieldGeometryESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

typedef std::unique_ptr< DDCompactViewReturnType
 
- 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
 

Public Member Functions

ReturnType produce (const IdealMagneticFieldRecord &)
 
 XMLIdealMagneticFieldGeometryESProducer (const edm::ParameterSet &)
 
 ~XMLIdealMagneticFieldGeometryESProducer () override
 
- 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)
 

Private Attributes

std::string label_
 
DDI::Store< DDName, DDI::LogicalPart * > lpStore_
 
DDI::Store< DDName, DDI::Material * > matStore_
 
std::string rootDDName_
 
DDI::Store< DDName, DDRotationMatrix * > rotStore_
 
DDI::Store< DDName, DDI::Solid * > solidStore_
 
DDI::Store< DDName, DDI::Specific * > specStore_
 

Additional Inherited Members

- 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 25 of file XMLIdealMagneticFieldGeometryESProducer.cc.

Member Typedef Documentation

Definition at line 31 of file XMLIdealMagneticFieldGeometryESProducer.cc.

Constructor & Destructor Documentation

XMLIdealMagneticFieldGeometryESProducer::XMLIdealMagneticFieldGeometryESProducer ( const edm::ParameterSet iConfig)

Definition at line 46 of file XMLIdealMagneticFieldGeometryESProducer.cc.

References edm::ESProducer::setWhatProduced().

47  : rootDDName_(iConfig.getParameter<std::string>( "rootDDName" )),
48  label_(iConfig.getParameter<std::string>( "label" ))
49 {
50  setWhatProduced( this );
51 }
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
XMLIdealMagneticFieldGeometryESProducer::~XMLIdealMagneticFieldGeometryESProducer ( void  )
override

Definition at line 54 of file XMLIdealMagneticFieldGeometryESProducer.cc.

55 {}

Member Function Documentation

XMLIdealMagneticFieldGeometryESProducer::ReturnType XMLIdealMagneticFieldGeometryESProducer::produce ( const IdealMagneticFieldRecord iRecord)

Definition at line 58 of file XMLIdealMagneticFieldGeometryESProducer.cc.

References DDLParser::clearFiles(), DEFINE_FWK_EVENTSETUP_MODULE, DDLParser::getDDLSAX2FileHandler(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), DDI::Singleton< I >::instance(), label_, DDLParser::parse(), createfilelist::parser, rootDDName_, and DDLSAX2Handler::setUserNS().

59 {
60  using namespace edm::es;
61 
63  iRecord.getRecord<MFGeometryFileRcd>().get( label_, gdd );
64 
65  DDName ddName(rootDDName_);
66  DDLogicalPart rootNode(ddName);
67  DDRootDef::instance().set(rootNode);
68  ReturnType returnValue(new DDCompactView(rootNode));
69  DDLParser parser(*returnValue);
70  parser.getDDLSAX2FileHandler()->setUserNS(true);
71  parser.clearFiles();
72 
73  std::unique_ptr<std::vector<unsigned char> > tb = (*gdd).getUncompressedBlob();
74 
75  parser.parse(*tb, tb->size());
76 
77  returnValue->lockdown();
78 
79  return returnValue ;
80 }
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
type of data representation of DDCompactView
Definition: DDCompactView.h:90
static value_type & instance()
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:92
DDLParser is the main class of Detector Description Language Parser.
Definition: DDLParser.h:62

Member Data Documentation

std::string XMLIdealMagneticFieldGeometryESProducer::label_
private
DDI::Store<DDName, DDI::LogicalPart*> XMLIdealMagneticFieldGeometryESProducer::lpStore_
private

Definition at line 41 of file XMLIdealMagneticFieldGeometryESProducer.cc.

DDI::Store<DDName, DDI::Material*> XMLIdealMagneticFieldGeometryESProducer::matStore_
private

Definition at line 39 of file XMLIdealMagneticFieldGeometryESProducer.cc.

std::string XMLIdealMagneticFieldGeometryESProducer::rootDDName_
private

Definition at line 36 of file XMLIdealMagneticFieldGeometryESProducer.cc.

Referenced by produce().

DDI::Store<DDName, DDRotationMatrix*> XMLIdealMagneticFieldGeometryESProducer::rotStore_
private

Definition at line 43 of file XMLIdealMagneticFieldGeometryESProducer.cc.

DDI::Store<DDName, DDI::Solid*> XMLIdealMagneticFieldGeometryESProducer::solidStore_
private

Definition at line 40 of file XMLIdealMagneticFieldGeometryESProducer.cc.

DDI::Store<DDName, DDI::Specific*> XMLIdealMagneticFieldGeometryESProducer::specStore_
private

Definition at line 42 of file XMLIdealMagneticFieldGeometryESProducer.cc.