//*-- Author :    Ole Hansen   18 April 2001

//////////////////////////////////////////////////////////////////////////
//
// THaParticleInfo
//
// Properties of a particle
//
//////////////////////////////////////////////////////////////////////////

#include "THaParticleInfo.h"
#include <iostream>

using namespace std;

//_____________________________________________________________________________
THaParticleInfo::THaParticleInfo()
{
  // Default constructor
}

//_____________________________________________________________________________
THaParticleInfo::THaParticleInfo( const THaParticleInfo& rhs ) : TNamed(rhs)
{
  // Copy ctor

  fMass    = rhs.fMass;
  fCharge  = rhs.fCharge;
}

//_____________________________________________________________________________
THaParticleInfo& THaParticleInfo::operator=(const THaParticleInfo& rhs )
{
  // Assignment operator

  if( this != &rhs ) {
    TNamed::operator=(rhs);
    fMass    = rhs.fMass;
    fCharge  = rhs.fCharge;
  }
  return *this;
}

//_____________________________________________________________________________
void THaParticleInfo::Print( Option_t* opt ) const
{
  // Print particle info

  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.