TMCFastTOF


class description - source file - inheritance tree

class TMCFastTOF : public TObject


    public:
TMCFastTOF TMCFastTOF() TMCFastTOF TMCFastTOF(ntraces_t* traces) TMCFastTOF TMCFastTOF(TMCFastTOF&) virtual void ~TMCFastTOF() Double_t Beta(Int_t hep) TClass* Class() Double_t CTOFmass(Int_t hep) Double_t CTOFmass(Int_t hep, TMCFastOfflineTrack& offtrk) void Fill(ntraces_t* trace) Double_t FTOFmass(Int_t hep) Double_t FTOFmass(Int_t hep, TMCFastOfflineTrack& offtrk) Double_t GetCTOF(Int_t hep) Double_t GetDedx(Int_t i) Double_t GetE(Int_t i) Double_t GetEta(Int_t i, Int_t j) Double_t GetFTOF(Int_t hep) Int_t GetHep(Int_t i) Int_t GetHits(Int_t i) Double_t GetMass(Int_t hep) Int_t GetMaterial(Int_t i) Int_t GetNtraces() Double_t GetP(Int_t i) Double_t GetPath(Int_t i) Int_t GetPlane(Int_t i) Double_t GetPt(Int_t i) Double_t GetPx(Int_t i) Double_t GetPy(Int_t i) Double_t GetPz(Int_t i) Double_t GetQ(Int_t i) Double_t GetR(Int_t i) Double_t GetRadl(Int_t i) Double_t GetTau(Int_t i) Double_t GetTime(Int_t i) Int_t GetType(const Int_t i) Double_t GetX(Int_t i) Double_t GetY(Int_t i) Double_t GetZ(Int_t i) virtual TClass* IsA() void Print(ostream* os) void SetDedx(Int_t i, Double_t x) void SetE(Int_t i, Double_t x) void SetEta(Int_t i, Int_t j, Double_t x) void SetHep(Int_t i, Int_t n) void SetHits(Int_t i, Int_t n) void SetMaterial(Int_t i, Int_t n) void SetNtraces(Int_t n) void SetP(Int_t i, Double_t x) void SetPath(Int_t i, Double_t x) void SetPlane(Int_t i, Int_t n) void SetPt(Int_t i, Double_t x) void SetPx(Int_t i, Double_t x) void SetPy(Int_t i, Double_t x) void SetPz(Int_t i, Double_t x) void SetQ(Int_t i, Double_t x) void SetRadl(Int_t i, Double_t x) void SetTau(Int_t i, Double_t x) void SetTime(Int_t i, Double_t x) void SetType(Int_t i, Int_t n) void SetX(Int_t i, Double_t x) void SetY(Int_t i, Double_t x) void SetZ(Int_t i, Double_t x) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
Int_t fntraces The number of track intersections Int_t fhep[60] Position of track in /HEPEVT/ list Int_t ftype[60] Trace type (see trace_type.inc) Int_t fplane[60] Radial or z plane number Int_t fhit[60] # of hits in hit track list Float_t fpx[60] Track parameters at interaction Float_t fpy[60] Float_t fpz[60] Float_t fE[60] Float_t fx[60] Float_t fy[60] Float_t fz[60] Float_t fpt[60] pt = sqrt(px*px+py*py) Float_t fp[60] momentum Float_t fq[60] charge Float_t feta[60][3] Direction cosines of normal to plane Float_t fpath[60] Total track length up to this hit Float_t ftime[60] Time at which track made hit Float_t ftau[60] Proper flight time to intersection Int_t fmaterial[60] Position in material list Float_t fradl[60] # of radiation lengths in material Float_t fdedx[60] dE/dx of material

Class Description

 TMCFastTOF

 Time-of-flight information obtained
 from the mcfast track tracing

 This class is an object oriented version
 of mcfast trace common block.

 More information see Tracking in MCFast doc at:

/*

http://www-pat.fnal.gov/mcfast.html 
*/




TMCFastTOF(struct ntraces_t *trace)
 Call FIll()


void Fill(struct ntraces_t *trace)
 Fill the object info using
common block information


Double_t GetCTOF(Int_t hep)
 Get time-of-flight for the central region

 The routine first finds the central trace
 for the hep particle and then calculates
 the tof of that trace.

 See GetType() for information about trace types


 tof = (GetTime(i) - GetTime(0));


Double_t Beta(Int_t hep)
 Calculate beta for central
 region particles.
 beta = GetPath(hep) /( GetCTOF(hep)*kSpeedOfLight)


Double_t GetMass(Int_t hep)
 Calculate the mass from the local four-vector
 This is not the smeared mass.

  mass = TMath::Sqrt((GetE(i)*GetE(i)) - (GetP(i)*GetP(i)));
 where GetHep(i)==hep

Double_t CTOFmass(Int_t hep)
 Calculate time-of-flight mass
 Currently there is no smearing!!!!! (but soon should be implemented)

  m = p/(beta*gamma)

  beta = (GetPath(i)/tof)*(1/kSpeedOfLight);
  tof = (GetTime(i) - GetTime(0));


Double_t CTOFmass(Int_t hep, TMCFastOfflineTrack &offtrk)
 Calculate time-of-flight mass
 Currently there is no time smearing!!!!!
 (but soon it should be implemented)

  m = p/(beta*gamma)

 beta = (GetPath(i)/tof)*(1/kSpeedOfLight);
 tof = (GetTime(i) - GetTime(0));


Double_t GetFTOF(Int_t hep)
 Get time-of-flight for the forward region

 The routine first finds the forward trace
 for the hep particle and then calculates
 the tof of that trace.

 See GetType() for information about trace types


 tof = (GetTime(i) - GetTime(0));

Double_t FTOFmass(Int_t hep, TMCFastOfflineTrack &offtrk)
 Calculate time-of-flight mass
 Currently there is no smearing of time!!! (but soon should be implemented)
  m = p/(beta*gamma)
  mass = offtrk.GetHepEvtP(i)*TMath::Sqrt(1/beta*beta - 1.0);

 beta = (GetPath(i)/tof)*(1/kSpeedOfLight);
 tof = (GetTime(i) - GetTime(0));


Double_t FTOFmass(Int_t hep)
 Calculate time-of-flight mass
 Currently there is no smearing of time!!! (but soon should be implemented)
  m = p/(beta*gamma)
  mass = GetP(i)*TMath::Sqrt(1/beta*beta - 1.0);


Double_t GetR(Int_t i)
 return TMath::Sqrt(GetX(i)*GetX(i) + GetY(i)*GetY(i));


~TMCFastTOF()
 Clear()


void Print(ostream *os)
 Prints TMCFastTOF object

 This function is also used
 to  overload  &operator<<

 For example;
 cout << tof_trace;

 where tof_trace is an instance of TMCFastTOF



Inline Functions


         TMCFastTOF TMCFastTOF(ntraces_t* traces)
              Int_t GetNtraces()
              Int_t GetHep(Int_t i)
              Int_t GetType(const Int_t i)
              Int_t GetPlane(Int_t i)
              Int_t GetHits(Int_t i)
           Double_t GetPx(Int_t i)
           Double_t GetPy(Int_t i)
           Double_t GetPz(Int_t i)
           Double_t GetE(Int_t i)
           Double_t GetX(Int_t i)
           Double_t GetY(Int_t i)
           Double_t GetZ(Int_t i)
           Double_t GetPt(Int_t i)
           Double_t GetP(Int_t i)
           Double_t GetQ(Int_t i)
           Double_t GetEta(Int_t i, Int_t j)
           Double_t GetPath(Int_t i)
           Double_t GetTime(Int_t i)
           Double_t GetTau(Int_t i)
              Int_t GetMaterial(Int_t i)
           Double_t GetRadl(Int_t i)
           Double_t GetDedx(Int_t i)
               void SetNtraces(Int_t n)
               void SetHep(Int_t i, Int_t n)
               void SetType(Int_t i, Int_t n)
               void SetPlane(Int_t i, Int_t n)
               void SetHits(Int_t i, Int_t n)
               void SetPx(Int_t i, Double_t x)
               void SetPy(Int_t i, Double_t x)
               void SetPz(Int_t i, Double_t x)
               void SetE(Int_t i, Double_t x)
               void SetX(Int_t i, Double_t x)
               void SetY(Int_t i, Double_t x)
               void SetZ(Int_t i, Double_t x)
               void SetPt(Int_t i, Double_t x)
               void SetP(Int_t i, Double_t x)
               void SetQ(Int_t i, Double_t x)
               void SetEta(Int_t i, Int_t j, Double_t x)
               void SetPath(Int_t i, Double_t x)
               void SetTime(Int_t i, Double_t x)
               void SetTau(Int_t i, Double_t x)
               void SetMaterial(Int_t i, Int_t n)
               void SetRadl(Int_t i, Double_t x)
               void SetDedx(Int_t i, Double_t x)
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
         TMCFastTOF TMCFastTOF(TMCFastTOF&)


Author: Paul Eugenio 2-Nov-98


ROOT page - Class index - Top of the page

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.