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

Contents of /gp2root/pPhitMgr.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed Apr 19 23:35:57 2006 UTC (18 years, 7 months ago) by pamela
Branch: v1r0
CVS Tags: start
Changes since 1.1: +0 -0 lines
First release

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 }

  ViewVC Help
Powered by ViewVC 1.1.23