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_=nullptr;
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 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
CastorHardcodeGeometryEP(const edm::ParameterSet &)
ReturnType produce(const CastorGeometryRecord &)
static std::string producerTag()
CastorHardcodeGeometryLoader * loader_
virtual std::unique_ptr< CaloSubdetectorGeometry > load(DetId::Detector det, int subdet)