Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 13:02:56

0001 // -*- C++ -*-
0002 //
0003 // Package:    EcalTBHodoscopeGeometryEP
0004 // Class:      EcalTBHodoscopeGeometryEP
0005 //
0006 /**\class EcalTBHodoscopeGeometryEP    
0007 
0008  Description: <one line class summary>
0009 
0010  Implementation:
0011      <Notes on implementation>
0012 */
0013 //
0014 
0015 //
0016 //
0017 
0018 #include "Geometry/EcalTestBeam/plugins/EcalTBHodoscopeGeometryEP.h"
0019 
0020 //
0021 // constants, enums and typedefs
0022 //
0023 
0024 //
0025 // static data member definitions
0026 //
0027 
0028 //
0029 // constructors and destructor
0030 //
0031 EcalTBHodoscopeGeometryEP::EcalTBHodoscopeGeometryEP(const edm::ParameterSet& iConfig)
0032     : cpvToken_{setWhatProduced(this, "EcalLaserPnDiode").consumes<DDCompactView>(edm::ESInputTag{})} {}
0033 
0034 //
0035 // member functions
0036 //
0037 
0038 // ------------ method called to produce the data  ------------
0039 EcalTBHodoscopeGeometryEP::ReturnType EcalTBHodoscopeGeometryEP::produce(const IdealGeometryRecord& iRecord) {
0040   edm::ESTransientHandle<DDCompactView> cpv = iRecord.getTransientHandle(cpvToken_);
0041 
0042   LogDebug("EcalTBHodoscopeGeometryEP") << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry";
0043   return std::unique_ptr<CaloSubdetectorGeometry>(loader_.load(&(*cpv)));
0044 }