/[PAMELA software]/PamCAL/include/PamVMCGeoID.h
ViewVC logotype

Annotation of /PamCAL/include/PamVMCGeoID.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Nov 12 10:10:18 2007 UTC (17 years ago) by nikolas
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
More basic files added

1 nikolas 1.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