#include "THaParticleInfo.h"
#include <iostream>
using namespace std;
THaParticleInfo::THaParticleInfo()
{
}
THaParticleInfo::THaParticleInfo( const THaParticleInfo& rhs ) : TNamed(rhs)
{
fMass = rhs.fMass;
fCharge = rhs.fCharge;
}
THaParticleInfo& THaParticleInfo::operator=(const THaParticleInfo& rhs )
{
if( this != &rhs ) {
TNamed::operator=(rhs);
fMass = rhs.fMass;
fCharge = rhs.fCharge;
}
return *this;
}
void THaParticleInfo::Print( Option_t* opt ) const
{
TNamed::Print( opt );
cout << "Mass: " << fMass << endl;
cout << "Charge: " << fCharge << endl;
}
ClassImp(THaParticleInfo)
Last change: Sat Nov 7 21:26:49 2009
Last generated: 2009-11-07 21:26
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.