/[PAMELA software]/PamCAL/src/PamVMCGeoIDMgr.cxx
ViewVC logotype

Contents of /PamCAL/src/PamVMCGeoIDMgr.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Nov 12 10:10:22 2007 UTC (17 years ago) by nikolas
Branch: MAIN
CVS Tags: HEAD
More basic files added

1 #include "PamVMCGeoIDMgr.h"
2
3 PamVMCGeoIDMgr::PamVMCGeoIDMgr() {
4 TString t;
5 //Calorimeter
6 t="CAST";
7 fdmap.Add(new TObjString(t), new pCalID(3));
8 //Tof
9 t="S11Y";
10 fdmap.Add(new TObjString(t), new pTofID(1));
11 t="S12X";
12 fdmap.Add(new TObjString(t), new pTofID(1));
13 t="S21X";
14 fdmap.Add(new TObjString(t), new pTofID(1));
15 t="S22Y";
16 fdmap.Add(new TObjString(t), new pTofID(1));
17 t="S31Y";
18 fdmap.Add(new TObjString(t), new pTofID(1));
19 t="S32X";
20 fdmap.Add(new TObjString(t), new pTofID(1));
21 //Tracker
22 t="TSPA";
23 fdmap.Add(new TObjString(t), new pTrkID(2));
24 //AC
25 t="C1D1";
26 fdmap.Add(new TObjString(t), new pCardID(1));
27 t="C2D1";
28 fdmap.Add(new TObjString(t), new pCardID(1));
29 t="SID1";
30 fdmap.Add(new TObjString(t), new pCasID(1));
31 t="MGSC";
32 fdmap.Add(new TObjString(t), new pCatID());
33 //S4
34 t="S4";
35 fdmap.Add(new TObjString(t), new pS4ID());
36 //ND
37 t="NDTI";
38 fdmap.Add(new TObjString(t), new pNdID(1));
39 }
40 PamVMCGeoIDMgr * PamVMCGeoIDMgr::fgeoid = 0;
41
42 PamVMCGeoIDMgr * PamVMCGeoIDMgr::Instance(){
43 if(fgeoid == 0) {
44 fgeoid = new PamVMCGeoIDMgr();
45 }
46 return fgeoid;
47 }
48
49 pGeoID * PamVMCGeoIDMgr::GetGeoID(const char *name){
50 // if(name=="CAST") return new pCalID();
51 return (pGeoID*) fdmap(name);
52 }

  ViewVC Help
Powered by ViewVC 1.1.23