BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
TofGeomSvc.h
Go to the documentation of this file.
1// $Id: TofGeomSvc.h,v 1.5 2011/02/18 04:19:03 maqm Exp $ // -*-c++-*-
2// header file for a class called "TofGeomSvc"
3#ifndef TOFGEOMSVC_H
4#define TOFGEOMSVC_H
5
6#include <vector>
7#include <iostream>
8
9//#include "DBBesGeoBarTOF/DB2BesGeoBarTOF.h"
10//#include "DBBesGeoEndTOF/DB2BesGeoEndTOF.h"
11
12#include "TofGeomSvc/BTofGeo.h"
13#include "TofGeomSvc/ETofGeo.h"
14
15#include "GaudiKernel/Service.h"
16#include "GaudiKernel/IInterface.h"
18using namespace std;
19
20class TofGeomSvc : public Service, virtual public ITofGeomSvc
21{
22 public:
23 // Constructors and destructors
24 TofGeomSvc( const std::string& name, ISvcLocator* svcloc );
26
27 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
28 virtual StatusCode initialize ( );
29 virtual StatusCode finalize ( );
30
31 // Access by others
32 BTofGeo* BTof(unsigned id) const;
33 ETofGeo* ETof(unsigned id) const;
34 const double getBPhiMax(unsigned id);
35 const double getBPhiMin(unsigned id);
36 const double getEPhiMax(unsigned id);
37 const double getEPhiMin(unsigned id);
38 void Dump();
39
40 // private method
41 private:
42 // void Fill();
43
44 // private data members
45 private:
46 vector<BTofGeo*> fBTofGeo;
47 vector<ETofGeo*> fETofGeo;
48};
49
50#endif /* TOF_REC_GEO_H */
51
52
Definition: BTofGeo.h:4
Definition: ETofGeo.h:4
ETofGeo * ETof(unsigned id) const
Definition: TofGeomSvc.cxx:172
const double getBPhiMin(unsigned id)
Definition: TofGeomSvc.cxx:148
void Dump()
Definition: TofGeomSvc.cxx:115
virtual StatusCode initialize()
Definition: TofGeomSvc.cxx:21
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
Definition: TofGeomSvc.cxx:11
const double getEPhiMax(unsigned id)
Definition: TofGeomSvc.cxx:154
BTofGeo * BTof(unsigned id) const
Definition: TofGeomSvc.cxx:166
virtual StatusCode finalize()
Definition: TofGeomSvc.cxx:33
const double getEPhiMin(unsigned id)
Definition: TofGeomSvc.cxx:160
const double getBPhiMax(unsigned id)
Definition: TofGeomSvc.cxx:142