#include <EmcRecGeoSvc.h>
Definition at line 28 of file EmcRecGeoSvc.h.
◆ EmcRecGeoSvc()
EmcRecGeoSvc::EmcRecGeoSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcloc |
|
) |
| |
Definition at line 15 of file EmcRecGeoSvc.cxx.
15 : Service(name, svcloc)
16{
17 fGdml = true;
18
19
20 declareProperty("Gdml",fGdml);
21
22 if(fGdml) {
24 }
25}
◆ ~EmcRecGeoSvc()
EmcRecGeoSvc::~EmcRecGeoSvc |
( |
| ) |
|
Definition at line 27 of file EmcRecGeoSvc.cxx.
28{
29 if(fGdml) {
30 if(fROOTGeo) delete fROOTGeo;
31 }
32}
◆ finalize()
StatusCode EmcRecGeoSvc::finalize |
( |
| ) |
|
|
virtual |
Definition at line 59 of file EmcRecGeoSvc.cxx.
59 {
60 MsgStream log(messageService(), name());
61 log << MSG::INFO << name() << ": End of Run" << endreq;
62 return StatusCode::SUCCESS;
63}
◆ GetBarrelh1()
double EmcRecGeoSvc::GetBarrelh1 |
( |
| ) |
const |
|
virtual |
◆ GetBarrelh2()
double EmcRecGeoSvc::GetBarrelh2 |
( |
| ) |
const |
|
virtual |
◆ GetBarrelh3()
double EmcRecGeoSvc::GetBarrelh3 |
( |
| ) |
const |
|
virtual |
◆ GetBarrelL()
double EmcRecGeoSvc::GetBarrelL |
( |
| ) |
const |
|
virtual |
◆ GetBarrelNPhiMax()
int EmcRecGeoSvc::GetBarrelNPhiMax |
( |
| ) |
const |
|
virtual |
◆ GetBarrelNThetaMax()
int EmcRecGeoSvc::GetBarrelNThetaMax |
( |
| ) |
const |
|
virtual |
◆ GetBarrelOffset1()
double EmcRecGeoSvc::GetBarrelOffset1 |
( |
| ) |
const |
|
virtual |
◆ GetBarrelOffset2()
double EmcRecGeoSvc::GetBarrelOffset2 |
( |
| ) |
const |
|
virtual |
◆ GetBarrelR()
double EmcRecGeoSvc::GetBarrelR |
( |
| ) |
const |
|
virtual |
◆ GetCCenter()
Implements IEmcRecGeoSvc.
Definition at line 96 of file EmcRecGeoSvc.cxx.
96 {
97 if(fGdml) {
99 } else {
101
104 } else {
106 }
107
108 return center/cm;
109 }
110}
static bool is_barrel(const Identifier &id)
Test for barrel.
HepPoint3D GetCCenter(const Identifier &id) const
HepPoint3D GetCCenter(const Identifier &id) const
HepPoint3D GetCCenter(const Identifier &id) const
◆ GetCFrontCenter()
Implements IEmcRecGeoSvc.
Definition at line 112 of file EmcRecGeoSvc.cxx.
112 {
113 if(fGdml) {
115 } else {
117
120 } else {
122 }
123
124 return frontCenter/cm;
125 }
126}
HepPoint3D GetCFrontCenter(const Identifier &id) const
HepPoint3D GetCFrontCenter(const Identifier &id) const
HepPoint3D GetCFrontCenter(const Identifier &id) const
◆ GetCrystal()
Implements IEmcRecGeoSvc.
Definition at line 65 of file EmcRecGeoSvc.cxx.
65 {
66 if(fGdml) {
68 } else {
70
73 } else {
75 }
76
77 return cry;
78 }
79
80}
EmcRecCrystal GetCrystal(const Identifier &id) const
EmcRecCrystal GetCrystal(const Identifier &id) const
EmcRecCrystal GetCrystal(const Identifier &id) const
◆ GetCrystalPoint()
Implements IEmcRecGeoSvc.
Definition at line 82 of file EmcRecGeoSvc.cxx.
82 {
84 if(fGdml) {
86 } else {
89 } else {
91 }
92 }
94}
HepPoint3D Get(int index) const
◆ initialize()
StatusCode EmcRecGeoSvc::initialize |
( |
| ) |
|
|
virtual |
Definition at line 44 of file EmcRecGeoSvc.cxx.
44 {
45 MsgStream log(messageService(), name());
46 log << MSG::INFO << name() << ": Start of run initialisation" << endreq;
47
48 StatusCode sc = Service::initialize();
49 if ( sc.isFailure() ) return sc;
50
51
52 if(fGdml) {
54 }
55 return StatusCode::SUCCESS;
56}
◆ queryInterface()
StatusCode EmcRecGeoSvc::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvUnknown |
|
) |
| |
|
virtual |
Definition at line 34 of file EmcRecGeoSvc.cxx.
34 {
35
36 if ( IID_IEmcRecGeoSvc.versionMatch(riid) ) {
38 } else {
39 return Service::queryInterface(riid, ppvInterface) ;
40 }
41 return StatusCode::SUCCESS;
42}
The documentation for this class was generated from the following files: