1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// -*- C++ -*-
//
// Package: EcalTBHodoscopeGeometryEP
// Class: EcalTBHodoscopeGeometryEP
//
/**\class EcalTBHodoscopeGeometryEP
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
//
//
#include "Geometry/EcalTestBeam/plugins/EcalTBHodoscopeGeometryEP.h"
//
// constants, enums and typedefs
//
//
// static data member definitions
//
//
// constructors and destructor
//
EcalTBHodoscopeGeometryEP::EcalTBHodoscopeGeometryEP(const edm::ParameterSet& iConfig)
: cpvToken_{setWhatProduced(this, "EcalLaserPnDiode").consumes<DDCompactView>(edm::ESInputTag{})} {}
//
// member functions
//
// ------------ method called to produce the data ------------
EcalTBHodoscopeGeometryEP::ReturnType EcalTBHodoscopeGeometryEP::produce(const IdealGeometryRecord& iRecord) {
edm::ESTransientHandle<DDCompactView> cpv = iRecord.getTransientHandle(cpvToken_);
LogDebug("EcalTBHodoscopeGeometryEP") << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry";
return std::unique_ptr<CaloSubdetectorGeometry>(loader_.load(&(*cpv)));
}
|