/[PAMELA software]/trieste/pamVMC/include/PamVMCGeoID.h
ViewVC logotype

Contents of /trieste/pamVMC/include/PamVMCGeoID.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Mar 4 12:51:13 2009 UTC (15 years, 9 months ago) by pamelats
Branch point for: MAIN, pamVMC
File MIME type: text/plain
Initial revision

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

  ViewVC Help
Powered by ViewVC 1.1.23