BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
////////////////////////////////////////////////////////////////
//
//	BrParticle
//
//      Class that recieves the output of BrGeneratePid
//      
//
////////////////////////////////////////////////////////////////
//

#include <stdlib.h>
#include <iostream>

//
//  Root includes
//

// Brat includes

#include "BrParticle.h"

ClassImp(BrParticle)

 BrParticle::BrParticle()
{
  // Constructor.
  fMass = 0.;
  fMass2 = 0.;
  fMomentum = 0.;
  fBetaSq = 0.;
  fTof = 0.;
  fCharge = 0;
  fId = 0;
  fRapidity = 0.;
  fPx = 0.;
  fPy = 0;
  fPz = 0;
  fPt = 0;
  fPtot = 0;
}

//
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
//

 BrParticle::BrParticle(Text_t *Name, Char_t *Title)
{
  //--------------------------//
  //  Object constructor   //
  //--------------------------//
  
  cout << "Hello, nothing inside " 
       << Name << " - " << Title << " for the moment!" << endl; 
  fMass = 0.;
  fMass2 = 0.;
  fMomentum = 0.;
  fBetaSq = 0.;
  fTof = 0.;
  fCharge = 0;
  fId = 0;
  fRapidity = 0.;
  fPx = 0.;
  fPy = 0;
  fPz = 0;
  fPt = 0;
  fPtot = 0;
  

}

//
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
//

 void BrParticle::List()
{
  // list the content of this object
  cout << " --- Particle characteristics ---" << endl
       << "n\tmass: " << GetMass() 
       << "n\tmass squared: " << GetMass2() 
       << "n\tmomentum: " << GetMomentum() 
       << "n\tbeta^2: " << GetBetaSq() 
       << "n\ttime of flight: " << GetTof() 
       << "n\tcharge: " << GetCharge() 
       << "n\tID: " << GetId() 
       << "n\tRapidity: " << GetRapidity()
       << "n\tPx: " << GetPx()
       << "n\tPy: " << GetPy()
       << "n\tPz: " << GetPz()
       << "n\tPt: " << GetPt()
       << "n\tPtot: " << GetP()
       << endl;
}

//
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
//


 BrParticle::~BrParticle() 
{
  //destructor
}

//
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
//



This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on by

Validate HTML
Validate CSS