1 |
#ifndef PAMVMCGEOID_H |
2 |
#define PAMVMCGEOID_H |
3 |
#include "TString.h" |
4 |
#include "PamVMCGeoIDMgr.h" |
5 |
|
6 |
|
7 |
class PamVMCGeoID : public TObject { |
8 |
|
9 |
protected: |
10 |
|
11 |
TString fvolname; |
12 |
pGeoID *fgid; |
13 |
|
14 |
public: |
15 |
|
16 |
PamVMCGeoID(): fvolname("none"), fgid(0) {}; |
17 |
PamVMCGeoID(const char *vname): |
18 |
fvolname(vname) { |
19 |
fgid=PamVMCGeoIDMgr::Instance()->GetGeoID(fvolname.Data()); |
20 |
} |
21 |
|
22 |
|
23 |
virtual ~PamVMCGeoID(){}; |
24 |
|
25 |
virtual Bool_t FillVolID() { return fgid->FillVolID();} |
26 |
virtual Int_t GetID() { return fgid->GetID();} |
27 |
void SetVolName(const char *vname) {fvolname=vname;} |
28 |
const char *GetVolName() { return fvolname.Data();} |
29 |
|
30 |
Int_t GetVolOffset() { return fgid->fvoffset;} |
31 |
|
32 |
void Print(const Option_t* ="") const { |
33 |
// Will see .... // |
34 |
fgid->Print(); |
35 |
}; |
36 |
|
37 |
}; |
38 |
|
39 |
#endif //PAMVMCGEOID_H |