using namespace std;
#include "hgeantparticleinfo.h"
#include <iostream>
#include <iomanip>
ClassImp(HGeantParticleInfo)
HGeantParticleInfo::HGeantParticleInfo()
{
reset();
}
HGeantParticleInfo::HGeantParticleInfo(const HGeantParticleInfo& source) {
}
HGeantParticleInfo& HGeantParticleInfo::operator=(const HGeantParticleInfo& source)
{
reset();
if (this != &source)
{
geantTrackNr = source.geantTrackNr;
for (Int_t i=0;i<TRACKS;i++)
{
tracks[i]=source.tracks[i];
corrCode[i]=source.corrCode[i];
}
}
return *this;
}
HGeantParticleInfo::~HGeantParticleInfo()
{
}
void HGeantParticleInfo::dumpToStdout()
{
cout<<"***** HGEANTPARTICLEINFO *************************"<<endl;
cout<<"GEANT track number "<<geantTrackNr<<endl;
cout<<"***** recon. Track:\t\t";
for (Int_t i=0;i<TRACKS;i++) {if (tracks[i]!=-1) cout<<tracks[i]<<"\t";}
cout<<endl;
cout<<"***** corrCode:\t\t\t";
for (Int_t i=0;i<TRACKS;i++) {if (corrCode[i]!=-1) cout<<corrCode[i]<<"\t";}
cout<<endl;
}
void HGeantParticleInfo::reset()
{
for(Int_t i=0 ; i<TRACKS; i++)
{
tracks[i]= -1 ;
corrCode[i]= -1 ;
}
}
Int_t HGeantParticleInfo::getTrackNr()
{
Int_t j = 0;
for(Int_t i =0; i<TRACKS; i++)
{
if(tracks[i]>0) j++;
}
return j;
}
Last change: Sat May 22 12:56:01 2010
Last generated: 2010-05-22 12:56
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.