| 11 |
#include "pPdetMgr.h" |
#include "pPdetMgr.h" |
| 12 |
#include "pPheaMgr.h" |
#include "pPheaMgr.h" |
| 13 |
|
|
| 14 |
|
//#ifndef __GNUC__ |
| 15 |
|
#include "TObject.h" |
| 16 |
|
//#endif |
| 17 |
|
|
| 18 |
using std::string; |
using std::string; |
| 19 |
|
|
| 20 |
class pEvent { |
//#ifndef __GNUC__ |
| 21 |
|
class pEvent: public TObject { |
| 22 |
|
// #else |
| 23 |
|
// class pEvent { |
| 24 |
|
// #endif |
| 25 |
public: |
public: |
| 26 |
|
|
| 27 |
pEvent( ){ |
pEvent( ){ |
| 28 |
_pphitmgr = pPhitMgr::Get(); |
_pphitmgr = pPhitMgr::Get(); |
| 29 |
_ppdetmgr = pPdetMgr::Get(); |
_ppdetmgr = pPdetMgr::Get(); |
| 30 |
_ppheamgr = pPheaMgr::Get(); |
_ppheamgr = pPheaMgr::Get(); |
| 31 |
|
_pheader=0; |
| 32 |
|
|
| 33 |
} |
} |
| 34 |
|
|
| 35 |
void AddDetector(const string &name, pDetector *pd){ |
void AddDetector(const string &name, pDetector *pd){ |
| 37 |
} |
} |
| 38 |
|
|
| 39 |
void AddDetector(const string &name){ |
void AddDetector(const string &name){ |
| 40 |
_pdetmap[name]=_ppdetmgr->GetpDet(name); |
pDetector *temp=_ppdetmgr->GetpDet(name); |
| 41 |
|
if(temp!=0) _pdetmap[name]=temp; |
| 42 |
|
|
| 43 |
} |
} |
| 44 |
|
|
| 45 |
void AddHit(const string &name, const char *c){ |
void AddHit(const string &name, const char *c){ |
| 63 |
|
|
| 64 |
|
|
| 65 |
void Print(){ |
void Print(){ |
| 66 |
_pheader->Print(); |
if(_pheader!=0) _pheader->Print(); |
| 67 |
for(pDetMap::iterator i=_pdetmap.begin(); i!=_pdetmap.end();++i){ |
for(pDetMap::iterator i=_pdetmap.begin(); i!=_pdetmap.end();++i){ |
| 68 |
(*i->second).Print(); |
(*i->second).Print(); |
| 69 |
} |
} |
| 70 |
} |
} |
| 71 |
|
|
| 72 |
|
//#ifndef __GNUC__ |
| 73 |
|
ClassDef(pEvent,1); |
| 74 |
|
//#endif |
| 75 |
|
|
| 76 |
private: |
private: |
|
|
|
| 77 |
pDetMap _pdetmap; |
pDetMap _pdetmap; |
| 78 |
pHeader *_pheader; |
pHeader *_pheader; |
| 79 |
pPhitMgr *_pphitmgr; |
pPhitMgr *_pphitmgr; //! |
| 80 |
pPdetMgr *_ppdetmgr; |
pPdetMgr *_ppdetmgr; //! |
| 81 |
pPheaMgr *_ppheamgr; |
pPheaMgr *_ppheamgr; //! |
| 82 |
|
|
| 83 |
}; |
}; |
| 84 |
|
|
| 85 |
#endif //PEVENT_H |
#endif //PEVENT_H |
| 86 |
|
|