CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorHardcodeGeometryEP.cc
Go to the documentation of this file.
4 
5 
7 {
8  //the following line is needed to tell the framework what
9  // data is being produced
11 
12  loader_=0;
13 }
14 
15 
17 {
18  if (loader_) delete loader_;
19 }
20 
21 
22 //
23 // member functions
24 //
25 
26 // ------------ method called to produce the data ------------
29 {
31  std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load()) ;
32 
33  return pCaloSubdetectorGeometry ;
34 }
35 
36 
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< CaloSubdetectorGeometry > ReturnType
CastorHardcodeGeometryEP(const edm::ParameterSet &)
ReturnType produce(const CastorGeometryRecord &)
static std::string producerTag()
CastorHardcodeGeometryLoader * loader_
virtual std::auto_ptr< CaloSubdetectorGeometry > load(DetId::Detector det, int subdet)