1 |
#ifndef PAMVMCGEOROTMGR_H |
2 |
#define PAMVMCGEOROTMGR_H |
3 |
#include <iostream> |
4 |
|
5 |
#include <TGeoMatrix.h> |
6 |
#include "TString.h" |
7 |
#include "TObjString.h" |
8 |
#include "TMap.h" |
9 |
|
10 |
using std::cout; |
11 |
using std::endl; |
12 |
|
13 |
class PamVMCGeoRotMgr: public TObject { |
14 |
|
15 |
private: |
16 |
|
17 |
static PamVMCGeoRotMgr * fgeorot; |
18 |
TMap fdmap; |
19 |
|
20 |
protected: |
21 |
PamVMCGeoRotMgr(); |
22 |
|
23 |
public: |
24 |
|
25 |
~PamVMCGeoRotMgr(){ fdmap.DeleteAll(); } |
26 |
|
27 |
static PamVMCGeoRotMgr * Instance(); |
28 |
TGeoRotation* GetRot(const char *name); |
29 |
void AddRot(const char *name, TGeoRotation *rot); |
30 |
|
31 |
void Print( const Option_t* ="") const { |
32 |
cout << "PamVMCGeoRotMgr, list of pGeoRot stored " << endl; |
33 |
fdmap.Print(); |
34 |
} |
35 |
|
36 |
}; |
37 |
|
38 |
#endif |