CMS 3D CMS Logo

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  return std::unique_ptr<CaloSubdetectorGeometry>(loader_->load());
32 }
33 
34 
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
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)