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

Annotation of /PamVMC_update/include/PamVMCGeoID.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Tue Oct 15 15:52:29 2013 UTC (11 years, 1 month ago) by formato
Branch: MAIN, rel
CVS Tags: reltag, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
PamVMC update

1 formato 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