00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "TkrRecon/SiRecObjs.h"
00013
00014
00015 void SiRecObjs::ini()
00016
00017 {
00018 m_GFgammaList.clear();
00019 m_GFparticleList.clear();
00020 }
00021
00022 void SiRecObjs::clear()
00023
00024 {
00025 int ngam= m_GFgammaList.size();
00026 for (int igam = 0; igam < ngam; igam++)
00027 delete m_GFgammaList[igam];
00028
00029 int npar= m_GFparticleList.size();
00030 for (int ipar = 0; ipar < npar; ipar++)
00031 delete m_GFparticleList[ipar];
00032
00033 m_GFparticleList.clear();
00034 m_GFgammaList.clear();
00035 }
00036
00037 void SiRecObjs::draw(gui::DisplayRep& v)
00038
00039 {
00040 if (numGammas()>0) {
00041 for (int ig=0; ig < numGammas(); ig++) m_GFgammaList[ig]->draw(v);
00042 }
00043 if (numParticles()>0) {
00044 for (int ip=0; ip < numParticles(); ip++) m_GFparticleList[ip]->draw(v);
00045 }
00046 }
00047
00048 void SiRecObjs::writeOut(MsgStream& log) const
00049
00050 {
00051 if (numGammas() <=0 && numParticles() <=0) return;
00052
00053
00054 log << MSG::DEBUG << " --- SiRecObs ---- " << endreq;
00055
00056 if (numGammas()>0)
00057 {
00058 log << MSG::DEBUG << " ----------------- " << endreq;
00059 log << MSG::DEBUG << " num Gammas = " << numGammas() << endreq;
00060 for (int ig=0; ig < numGammas(); ig++)
00061 {
00062 m_GFgammaList[ig]->writeOut(log);
00063 }
00064 }
00065
00066 if (numParticles()>0)
00067 {
00068 log << MSG::DEBUG << " ----------------- " << endreq;
00069 log << MSG::DEBUG << " num Particles = " << numParticles() << endreq;
00070 for (int ip=0; ip < numParticles(); ip++)
00071 {
00072 m_GFparticleList[ip]->writeOut(log);
00073 }
00074 }
00075 }
00076
00077