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

Contents of /PamVMC_update/src/PamVMCGeoIDMgr.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Oct 15 15:51:43 2013 UTC (11 years, 1 month ago) by formato
Branch: MAIN, rel
CVS Tags: reltag, HEAD
Changes since 1.1: +0 -0 lines
PamVMC update

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="TOP1";
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 return (pGeoID*) fdmap(name);
51 }

  ViewVC Help
Powered by ViewVC 1.1.23