#include <EmcRecGeoSvc.h>
Definition at line 28 of file EmcRecGeoSvc.h.
◆ EmcRecGeoSvc()
EmcRecGeoSvc::EmcRecGeoSvc |
( |
const std::string & | name, |
|
|
ISvcLocator * | svcloc ) |
Definition at line 17 of file EmcRecGeoSvc.cxx.
17 : base_class(name, svcloc)
18{
19 fGdml = true;
20
21
22 declareProperty("Gdml",fGdml);
23
24 if(fGdml) {
26 }
27}
◆ ~EmcRecGeoSvc()
EmcRecGeoSvc::~EmcRecGeoSvc |
( |
| ) |
|
Definition at line 29 of file EmcRecGeoSvc.cxx.
30{
31 if(fGdml) {
32 if(fROOTGeo) delete fROOTGeo;
33 }
34}
◆ finalize()
StatusCode EmcRecGeoSvc::finalize |
( |
| ) |
|
|
virtual |
Definition at line 61 of file EmcRecGeoSvc.cxx.
61 {
62 MsgStream log(messageService(), name());
63 log << MSG::INFO << name() << ": End of Run" << endreq;
64 return StatusCode::SUCCESS;
65}
◆ 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()
Definition at line 98 of file EmcRecGeoSvc.cxx.
98 {
99 if(fGdml) {
101 } else {
103
106 } else {
108 }
109
110 return center/cm;
111 }
112}
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()
Definition at line 114 of file EmcRecGeoSvc.cxx.
114 {
115 if(fGdml) {
117 } else {
119
122 } else {
124 }
125
126 return frontCenter/cm;
127 }
128}
HepPoint3D GetCFrontCenter(const Identifier &id) const
HepPoint3D GetCFrontCenter(const Identifier &id) const
HepPoint3D GetCFrontCenter(const Identifier &id) const
◆ GetCrystal()
Definition at line 67 of file EmcRecGeoSvc.cxx.
67 {
68 if(fGdml) {
70 } else {
72
75 } else {
77 }
78
79 return cry;
80 }
81
82}
EmcRecCrystal GetCrystal(const Identifier &id) const
EmcRecCrystal GetCrystal(const Identifier &id) const
EmcRecCrystal GetCrystal(const Identifier &id) const
◆ GetCrystalPoint()
Definition at line 84 of file EmcRecGeoSvc.cxx.
84 {
86 if(fGdml) {
88 } else {
91 } else {
93 }
94 }
96}
HepPoint3D Get(int index) const
◆ initialize()
StatusCode EmcRecGeoSvc::initialize |
( |
| ) |
|
|
virtual |
Definition at line 46 of file EmcRecGeoSvc.cxx.
46 {
47 MsgStream log(messageService(), name());
48 log << MSG::INFO << name() << ": Start of run initialisation" << endreq;
49
50 StatusCode sc = Service::initialize();
51 if ( sc.isFailure() ) return sc;
52
53
54 if(fGdml) {
56 }
57 return StatusCode::SUCCESS;
58}
The documentation for this class was generated from the following files: