#include <TofGeomSvc.h>
◆ TofGeomSvc() [1/2]
TofGeomSvc::TofGeomSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcloc |
|
) |
| |
◆ ~TofGeomSvc() [1/2]
TofGeomSvc::~TofGeomSvc |
( |
| ) |
|
Definition at line 39 of file TofGeomSvc.cxx.
39 {
40 for(vector<BTofGeo*>::iterator it1 = fBTofGeo.begin(); it1 != fBTofGeo.end(); it1++) delete *it1;
41 for(vector<ETofGeo*>::iterator it2 = fETofGeo.begin(); it2 != fETofGeo.end(); it2++) delete *it2;
42 fBTofGeo.clear();
43 fETofGeo.clear();
44}
◆ TofGeomSvc() [2/2]
TofGeomSvc::TofGeomSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcloc |
|
) |
| |
◆ ~TofGeomSvc() [2/2]
TofGeomSvc::~TofGeomSvc |
( |
| ) |
|
◆ BTof() [1/2]
BTofGeo * TofGeomSvc::BTof |
( |
unsigned |
id | ) |
const |
|
virtual |
Implements ITofGeomSvc.
Definition at line 166 of file TofGeomSvc.cxx.
166 {
167 if (id < fBTofGeo.size())
168 return fBTofGeo[id];
169 return 0;
170}
◆ BTof() [2/2]
BTofGeo * TofGeomSvc::BTof |
( |
unsigned |
id | ) |
const |
|
virtual |
◆ Dump() [1/2]
void TofGeomSvc::Dump |
( |
| ) |
|
|
virtual |
Implements ITofGeomSvc.
Definition at line 115 of file TofGeomSvc.cxx.
115 {
116 std::cout<<"Now can get the TOF Geometry Service!!"<<std::endl;
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140}
Referenced by main().
◆ Dump() [2/2]
void TofGeomSvc::Dump |
( |
| ) |
|
|
virtual |
◆ ETof() [1/2]
ETofGeo * TofGeomSvc::ETof |
( |
unsigned |
id | ) |
const |
|
virtual |
Implements ITofGeomSvc.
Definition at line 172 of file TofGeomSvc.cxx.
172 {
173 if (id < fETofGeo.size())
174 return fETofGeo[id];
175 return 0;
176}
◆ ETof() [2/2]
ETofGeo * TofGeomSvc::ETof |
( |
unsigned |
id | ) |
const |
|
virtual |
◆ finalize() [1/2]
StatusCode TofGeomSvc::finalize |
( |
| ) |
|
|
virtual |
Definition at line 33 of file TofGeomSvc.cxx.
33 {
34 MsgStream log(messageService(), name());
35 log << MSG::INFO << name() << ": End of Run" << endreq;
36 return StatusCode::SUCCESS;
37}
◆ finalize() [2/2]
virtual StatusCode TofGeomSvc::finalize |
( |
| ) |
|
|
virtual |
◆ getBPhiMax() [1/2]
const double TofGeomSvc::getBPhiMax |
( |
unsigned |
id | ) |
|
|
virtual |
Implements ITofGeomSvc.
Definition at line 142 of file TofGeomSvc.cxx.
142 {
143 if (id < fBTofGeo.size())
144 return fBTofGeo[id]->getPhiMax();
145 return 0;
146}
◆ getBPhiMax() [2/2]
const double TofGeomSvc::getBPhiMax |
( |
unsigned |
id | ) |
|
|
virtual |
◆ getBPhiMin() [1/2]
const double TofGeomSvc::getBPhiMin |
( |
unsigned |
id | ) |
|
|
virtual |
Implements ITofGeomSvc.
Definition at line 148 of file TofGeomSvc.cxx.
148 {
149 if (id < fBTofGeo.size())
150 return fBTofGeo[id]->getPhiMin();
151 return 0;
152}
◆ getBPhiMin() [2/2]
const double TofGeomSvc::getBPhiMin |
( |
unsigned |
id | ) |
|
|
virtual |
◆ getEPhiMax() [1/2]
const double TofGeomSvc::getEPhiMax |
( |
unsigned |
id | ) |
|
|
virtual |
Implements ITofGeomSvc.
Definition at line 154 of file TofGeomSvc.cxx.
154 {
155 if (id < fETofGeo.size())
156 return fETofGeo[id]->getPhiMax();
157 return 0;
158}
◆ getEPhiMax() [2/2]
const double TofGeomSvc::getEPhiMax |
( |
unsigned |
id | ) |
|
|
virtual |
◆ getEPhiMin() [1/2]
const double TofGeomSvc::getEPhiMin |
( |
unsigned |
id | ) |
|
|
virtual |
Implements ITofGeomSvc.
Definition at line 160 of file TofGeomSvc.cxx.
160 {
161 if (id < fETofGeo.size())
162 return fETofGeo[id]->getPhiMin();
163 return 0;
164}
◆ getEPhiMin() [2/2]
const double TofGeomSvc::getEPhiMin |
( |
unsigned |
id | ) |
|
|
virtual |
◆ initialize() [1/2]
StatusCode TofGeomSvc::initialize |
( |
| ) |
|
|
virtual |
Definition at line 21 of file TofGeomSvc.cxx.
21 {
22 MsgStream log(messageService(), name());
23 log << MSG::INFO << name() << ": Start of run initialisation" << endreq;
24
25 StatusCode sc = Service::initialize();
26 if ( sc.isFailure() ) return sc;
27
28
29
30 return StatusCode::SUCCESS;
31}
Referenced by main().
◆ initialize() [2/2]
virtual StatusCode TofGeomSvc::initialize |
( |
| ) |
|
|
virtual |
◆ queryInterface() [1/2]
StatusCode TofGeomSvc::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvUnknown |
|
) |
| |
|
virtual |
Definition at line 11 of file TofGeomSvc.cxx.
11 {
12
13 if ( IID_ITofGeomSvc.versionMatch(riid) ) {
15 } else {
16 return Service::queryInterface(riid, ppvInterface) ;
17 }
18 return StatusCode::SUCCESS;
19}
◆ queryInterface() [2/2]
virtual StatusCode TofGeomSvc::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvUnknown |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: