/[PAMELA software]/gp2root/pPhitMgr.cpp
ViewVC logotype

Contents of /gp2root/pPhitMgr.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Oct 22 08:27:02 2006 UTC (18 years, 1 month ago) by cafagna
Branch: MAIN
CVS Tags: v0r9, v0r10, HEAD
Changes since 1.1: +3 -0 lines
Error occurred while calculating annotation data.
Stable version, lot of changes, ROOT support included, persistency not yet activated

1 #include <string>
2 #include <iostream>
3 #include "pPhitMgr.h"
4 #include "pCalHit.h"
5 #include "pTofHit.h"
6 #include "pCasHit.h"
7 #include "pCatHit.h"
8
9 using std::string;
10 using std::cout;
11 using std::endl;
12
13 pPhitMgr * pPhitMgr::_phitmgr = 0;
14
15
16 pPhitMgr * pPhitMgr::Get(){
17 if(_phitmgr==0) {
18 _phitmgr = new pPhitMgr();
19 }
20 return _phitmgr;
21 }
22
23 pHit* pPhitMgr::GetpHit(const string &s, const char *c)
24 {
25 if(s=="CAT") return new pCatHit(c);
26 if(s=="CAL") return new pCalHit(c);
27 if(s=="TOF") return new pTofHit(c);
28 if(s=="CAS") return new pCasHit(c);
29 return 0;
30 }
31
32

  ViewVC Help
Powered by ViewVC 1.1.23