Public Member Functions | Private Attributes

WCSimTrueEvent Class Reference

#include "WCSimTrueEvent.hh"

List of all members.

Public Member Functions

 WCSimTrueEvent ()
 ~WCSimTrueEvent ()
void SetHeader (Int_t ipdg, Double_t g4vx, Double_t g4vy, Double_t g4vz, Double_t g4ex, Double_t g4ey, Double_t g4ez, Double_t vx, Double_t vy, Double_t vz, Double_t ex, Double_t ey, Double_t ez, Double_t px, Double_t py, Double_t pz, Double_t trkE, Double_t trkP)
Int_t GetPDG ()
Double_t GetG4VtxX ()
Double_t GetG4VtxY ()
Double_t GetG4VtxZ ()
Double_t GetG4EndX ()
Double_t GetG4EndY ()
Double_t GetG4EndZ ()
Double_t GetVtxX ()
Double_t GetVtxY ()
Double_t GetVtxZ ()
Double_t GetEndX ()
Double_t GetEndY ()
Double_t GetEndZ ()
Double_t GetDirX ()
Double_t GetDirY ()
Double_t GetDirZ ()
Double_t GetLength ()
Double_t GetMomentum ()
Double_t GetEnergy ()
Int_t GetNTracks ()
WCSimTrueTrackGetTrack (Int_t itrack)
void AddTrack (WCSimTrueTrack *track)
void ClearTracks ()
void Reset ()
void PrintEvent ()

Private Attributes

Int_t fIpdg
Double_t fTrkP
Double_t fTrkE
Double_t fG4VtxX
Double_t fG4VtxY
Double_t fG4VtxZ
Double_t fG4EndX
Double_t fG4EndY
Double_t fG4EndZ
Double_t fVtxX
Double_t fVtxY
Double_t fVtxZ
Double_t fEndX
Double_t fEndY
Double_t fEndZ
Double_t fDirX
Double_t fDirY
Double_t fDirZ
Double_t fLength
std::vector< WCSimTrueTrack * > * fTrackList

Detailed Description

Definition at line 10 of file WCSimTrueEvent.hh.


Constructor & Destructor Documentation

WCSimTrueEvent::WCSimTrueEvent (  ) 
WCSimTrueEvent::~WCSimTrueEvent (  ) 

Definition at line 16 of file WCSimTrueEvent.cc.

References fTrackList.

{
  delete fTrackList;
}


Member Function Documentation

void WCSimTrueEvent::AddTrack ( WCSimTrueTrack track  ) 

Definition at line 103 of file WCSimTrueEvent.cc.

References fTrackList.

Referenced by WCSimInterface::BuildTrueEvent().

{
  fTrackList->push_back(myTrack);
}

void WCSimTrueEvent::ClearTracks (  ) 

Definition at line 108 of file WCSimTrueEvent.cc.

References fTrackList.

Referenced by Reset().

{
  fTrackList->clear();
}

Double_t WCSimTrueEvent::GetDirX (  )  [inline]
Double_t WCSimTrueEvent::GetDirY (  )  [inline]
Double_t WCSimTrueEvent::GetDirZ (  )  [inline]
Double_t WCSimTrueEvent::GetEndX (  )  [inline]

Definition at line 38 of file WCSimTrueEvent.hh.

References fEndX.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fEndX; }

Double_t WCSimTrueEvent::GetEndY (  )  [inline]

Definition at line 39 of file WCSimTrueEvent.hh.

References fEndY.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fEndY; }

Double_t WCSimTrueEvent::GetEndZ (  )  [inline]

Definition at line 40 of file WCSimTrueEvent.hh.

References fEndZ.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fEndZ; } 

Double_t WCSimTrueEvent::GetEnergy (  )  [inline]

Definition at line 49 of file WCSimTrueEvent.hh.

References fTrkE.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fTrkE; }

Double_t WCSimTrueEvent::GetG4EndX (  )  [inline]

Definition at line 30 of file WCSimTrueEvent.hh.

References fG4EndX.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fG4EndX; }

Double_t WCSimTrueEvent::GetG4EndY (  )  [inline]

Definition at line 31 of file WCSimTrueEvent.hh.

References fG4EndY.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fG4EndY; }

Double_t WCSimTrueEvent::GetG4EndZ (  )  [inline]

Definition at line 32 of file WCSimTrueEvent.hh.

References fG4EndZ.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fG4EndZ; }

Double_t WCSimTrueEvent::GetG4VtxX (  )  [inline]

Definition at line 26 of file WCSimTrueEvent.hh.

References fG4VtxX.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fG4VtxX; }

Double_t WCSimTrueEvent::GetG4VtxY (  )  [inline]

Definition at line 27 of file WCSimTrueEvent.hh.

References fG4VtxY.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fG4VtxY; }

Double_t WCSimTrueEvent::GetG4VtxZ (  )  [inline]

Definition at line 28 of file WCSimTrueEvent.hh.

References fG4VtxZ.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fG4VtxZ; }

Double_t WCSimTrueEvent::GetLength (  )  [inline]

Definition at line 46 of file WCSimTrueEvent.hh.

References fLength.

Referenced by WCSimVertexNtuple::WriteVariables(), and WCSimRecoNtuple::WriteVariables().

{ return fLength; }

Double_t WCSimTrueEvent::GetMomentum (  )  [inline]

Definition at line 48 of file WCSimTrueEvent.hh.

References fTrkP.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fTrkP; }

Int_t WCSimTrueEvent::GetNTracks (  ) 
Int_t WCSimTrueEvent::GetPDG (  )  [inline]

Definition at line 24 of file WCSimTrueEvent.hh.

References fIpdg.

Referenced by WCSimRecoNtuple::WriteVariables().

{ return fIpdg; }

WCSimTrueTrack * WCSimTrueEvent::GetTrack ( Int_t  itrack  ) 

Definition at line 98 of file WCSimTrueEvent.cc.

References fTrackList.

Referenced by WCSimDisplayAB::DrawTrueEvent().

{
  return (WCSimTrueTrack*)(fTrackList->at(itrack));
}

Double_t WCSimTrueEvent::GetVtxX (  )  [inline]
Double_t WCSimTrueEvent::GetVtxY (  )  [inline]
Double_t WCSimTrueEvent::GetVtxZ (  )  [inline]
void WCSimTrueEvent::PrintEvent (  ) 

Definition at line 113 of file WCSimTrueEvent.cc.

References fDirX, fDirY, fDirZ, fEndX, fEndY, fEndZ, fG4EndX, fG4EndY, fG4EndZ, fG4VtxX, fG4VtxY, fG4VtxZ, fIpdg, fLength, fTrkE, fTrkP, fVtxX, fVtxY, and fVtxZ.

{
  std::cout << " *** WCSimTrueEvent::PrintEvent() *** " << std::endl
            << " * Ipdg = " << fIpdg << std::endl
            << " * G4VtxX = " << fG4VtxX << std::endl
            << " * G4VtxY = " << fG4VtxY << std::endl
            << " * G4VtxZ = " << fG4VtxZ << std::endl
            << " * G4EndX = " << fG4EndX << std::endl
            << " * G4EndY = " << fG4EndY << std::endl
            << " * G4EndZ = " << fG4EndZ << std::endl
            << " * VtxX = " << fVtxX << std::endl
            << " * VtxY = " << fVtxY << std::endl
            << " * VtxZ = " << fVtxZ << std::endl
            << " * EndX = " << fEndX << std::endl
            << " * EndY = " << fEndY << std::endl
            << " * EndZ = " << fEndZ << std::endl
            << " * DirX = " << fDirX << std::endl
            << " * DirY = " << fDirY << std::endl
            << " * DirZ = " << fDirZ << std::endl
            << " * TrkE = " << fTrkP << std::endl
            << " * TrkP = " << fTrkE << std::endl
            << " * Length = " << fLength << std::endl
            << " *********************************** " << std::endl;

  return;
}

void WCSimTrueEvent::Reset (  ) 

Definition at line 59 of file WCSimTrueEvent.cc.

References ClearTracks(), fDirX, fDirY, fDirZ, fEndX, fEndY, fEndZ, fG4EndX, fG4EndY, fG4EndZ, fG4VtxX, fG4VtxY, fG4VtxZ, fIpdg, fLength, fTrkE, fTrkP, fVtxX, fVtxY, and fVtxZ.

Referenced by WCSimInterface::ResetTrueEvent().

{
  fIpdg = 0;

  fG4VtxX = -99999.9;
  fG4VtxY = -99999.9;
  fG4VtxZ = -99999.9;

  fG4EndX = -99999.9;
  fG4EndY = -99999.9;
  fG4EndZ = -99999.9;

  fVtxX = -99999.9;
  fVtxY = -99999.9;
  fVtxZ = -99999.9;    

  fEndX = -99999.9;
  fEndY = -99999.9;
  fEndZ = -99999.9;  

  fDirX = 0.0;
  fDirY = 0.0;
  fDirZ = 0.0;

  fTrkE = 0.0;
  fTrkP = 0.0;

  fLength = 0.0;

  this->ClearTracks();
 
  return;
}

void WCSimTrueEvent::SetHeader ( Int_t  ipdg,
Double_t  g4vx,
Double_t  g4vy,
Double_t  g4vz,
Double_t  g4ex,
Double_t  g4ey,
Double_t  g4ez,
Double_t  vx,
Double_t  vy,
Double_t  vz,
Double_t  ex,
Double_t  ey,
Double_t  ez,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  trkE,
Double_t  trkP 
)

Definition at line 21 of file WCSimTrueEvent.cc.

References fDirX, fDirY, fDirZ, fEndX, fEndY, fEndZ, fG4EndX, fG4EndY, fG4EndZ, fG4VtxX, fG4VtxY, fG4VtxZ, fIpdg, fLength, fTrkE, fTrkP, fVtxX, fVtxY, and fVtxZ.

Referenced by WCSimInterface::BuildTrueEvent().

{
  fIpdg = ipdg;

  fG4VtxX = g4vx;
  fG4VtxY = g4vy;
  fG4VtxZ = g4vz;

  fG4EndX = g4ex;
  fG4EndY = g4ey;
  fG4EndZ = g4ez;

  fVtxX = vx;
  fVtxY = vy;
  fVtxZ = vz;    

  fEndX = ex;
  fEndY = ey;
  fEndZ = ez;  

  fDirX = px;
  fDirY = py;
  fDirZ = pz;

  fTrkE = trkE;
  fTrkP = trkP;

  fLength = sqrt( (fEndX-fVtxX)*(fEndX-fVtxX)
                 +(fEndY-fVtxY)*(fEndY-fVtxY)
                 +(fEndZ-fVtxZ)*(fEndZ-fVtxZ) );
}


Member Data Documentation

Double_t WCSimTrueEvent::fDirX [private]

Definition at line 84 of file WCSimTrueEvent.hh.

Referenced by GetDirX(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fDirY [private]

Definition at line 85 of file WCSimTrueEvent.hh.

Referenced by GetDirY(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fDirZ [private]

Definition at line 86 of file WCSimTrueEvent.hh.

Referenced by GetDirZ(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fEndX [private]

Definition at line 80 of file WCSimTrueEvent.hh.

Referenced by GetEndX(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fEndY [private]

Definition at line 81 of file WCSimTrueEvent.hh.

Referenced by GetEndY(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fEndZ [private]

Definition at line 82 of file WCSimTrueEvent.hh.

Referenced by GetEndZ(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fG4EndX [private]

Definition at line 72 of file WCSimTrueEvent.hh.

Referenced by GetG4EndX(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fG4EndY [private]

Definition at line 73 of file WCSimTrueEvent.hh.

Referenced by GetG4EndY(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fG4EndZ [private]

Definition at line 74 of file WCSimTrueEvent.hh.

Referenced by GetG4EndZ(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fG4VtxX [private]

Definition at line 68 of file WCSimTrueEvent.hh.

Referenced by GetG4VtxX(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fG4VtxY [private]

Definition at line 69 of file WCSimTrueEvent.hh.

Referenced by GetG4VtxY(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fG4VtxZ [private]

Definition at line 70 of file WCSimTrueEvent.hh.

Referenced by GetG4VtxZ(), PrintEvent(), Reset(), and SetHeader().

Int_t WCSimTrueEvent::fIpdg [private]

Definition at line 63 of file WCSimTrueEvent.hh.

Referenced by GetPDG(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fLength [private]

Definition at line 88 of file WCSimTrueEvent.hh.

Referenced by GetLength(), PrintEvent(), Reset(), and SetHeader().

std::vector<WCSimTrueTrack*>* WCSimTrueEvent::fTrackList [private]

Definition at line 90 of file WCSimTrueEvent.hh.

Referenced by AddTrack(), ClearTracks(), GetNTracks(), GetTrack(), and ~WCSimTrueEvent().

Double_t WCSimTrueEvent::fTrkE [private]

Definition at line 66 of file WCSimTrueEvent.hh.

Referenced by GetEnergy(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fTrkP [private]

Definition at line 65 of file WCSimTrueEvent.hh.

Referenced by GetMomentum(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fVtxX [private]

Definition at line 76 of file WCSimTrueEvent.hh.

Referenced by GetVtxX(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fVtxY [private]

Definition at line 77 of file WCSimTrueEvent.hh.

Referenced by GetVtxY(), PrintEvent(), Reset(), and SetHeader().

Double_t WCSimTrueEvent::fVtxZ [private]

Definition at line 78 of file WCSimTrueEvent.hh.

Referenced by GetVtxZ(), PrintEvent(), Reset(), and SetHeader().


The documentation for this class was generated from the following files: