Public Member Functions | Private Member Functions | Private Attributes

WCSimRecoEvent Class Reference

#include "WCSimRecoEvent.hh"

List of all members.

Public Member Functions

 WCSimRecoEvent ()
 ~WCSimRecoEvent ()
void Reset ()
void SetHeader (Int_t run, Int_t event, Int_t trigger)
Int_t GetRun ()
Int_t GetEvent ()
Int_t GetTrigger ()
void AddDigit (WCSimRecoDigit *digit)
void AddFilterDigit (WCSimRecoDigit *digit)
void AddRing (WCSimRecoRing *track)
WCSimRecoDigitGetDigit (Int_t n)
Int_t GetNDigits ()
WCSimRecoDigitGetFilterDigit (Int_t n)
Int_t GetNFilterDigits ()
WCSimRecoRingGetRing (Int_t n)
Int_t GetNRings ()
WCSimRecoRingGetPrimaryRing ()
void SetVertex (Double_t x, Double_t y, Double_t z, Double_t t)
void SetDirection (Double_t px, Double_t py, Double_t pz)
void SetConeAngle (Double_t angle)
void SetTrackLength (Double_t length)
void SetVtxFOM (Double_t fom, Int_t nsteps, Bool_t pass)
void SetVtxStatus (Int_t status)
WCSimRecoVertexGetVertex ()
Double_t GetVtxX ()
Double_t GetVtxY ()
Double_t GetVtxZ ()
Double_t GetVtxTime ()
Double_t GetDirX ()
Double_t GetDirY ()
Double_t GetDirZ ()
Double_t GetConeAngle ()
Double_t GetTrackLength ()
Double_t GetVtxFOM ()
Int_t GetVtxIterations ()
Bool_t GetVtxPass ()
Int_t GetVtxStatus ()
Bool_t FoundVertex ()
Bool_t FoundDirection ()
Bool_t FoundRings ()
void SetFilterDone ()
Bool_t IsFilterDone ()
void SetVertexFinderDone ()
Bool_t IsVertexFinderDone ()
void SetRingFinderDone ()
Bool_t IsRingFinderDone ()
std::vector< WCSimRecoDigit * > * GetDigitList ()
std::vector< WCSimRecoDigit * > * GetFilterDigitList ()
std::vector< WCSimRecoRing * > * GetRingList ()
void PrintDigitList (const char *filename)
void PrintFilterDigitList (const char *filename)
void PrintEvent ()

Private Member Functions

void ClearDigits ()
void ClearFilterDigits ()
void ClearRings ()

Private Attributes

Int_t fRunNum
Int_t fEventNum
Int_t fTriggerNum
std::vector< WCSimRecoDigit * > * fDigitList
std::vector< WCSimRecoDigit * > * fFilterDigitList
std::vector< WCSimRecoRing * > * fRingList
WCSimRecoVertexfVertex
Bool_t fIsFilterDone
Bool_t fIsVertexFinderDone
Bool_t fIsRingFinderDone

Detailed Description

Definition at line 12 of file WCSimRecoEvent.hh.


Constructor & Destructor Documentation

WCSimRecoEvent::WCSimRecoEvent (  ) 
WCSimRecoEvent::~WCSimRecoEvent (  ) 

Member Function Documentation

void WCSimRecoEvent::AddDigit ( WCSimRecoDigit digit  ) 

Definition at line 69 of file WCSimRecoEvent.cc.

References fDigitList.

Referenced by WCSimInterface::BuildRecoEvent().

{
  fDigitList->push_back(digit);
}

void WCSimRecoEvent::AddFilterDigit ( WCSimRecoDigit digit  ) 

Definition at line 74 of file WCSimRecoEvent.cc.

References fFilterDigitList.

Referenced by WCSimRecoAB::RunFilter().

{
  fFilterDigitList->push_back(digit);
}

void WCSimRecoEvent::AddRing ( WCSimRecoRing track  ) 

Definition at line 79 of file WCSimRecoEvent.cc.

References fRingList.

Referenced by WCSimRecoAB::RunRecoRings().

{
  fRingList->push_back(ring);
}

void WCSimRecoEvent::ClearDigits (  )  [private]

Definition at line 84 of file WCSimRecoEvent.cc.

References fDigitList.

Referenced by Reset().

{
  fDigitList->clear();
}

void WCSimRecoEvent::ClearFilterDigits (  )  [private]

Definition at line 89 of file WCSimRecoEvent.cc.

References fFilterDigitList.

Referenced by Reset().

{
  fFilterDigitList->clear();
}

void WCSimRecoEvent::ClearRings (  )  [private]

Definition at line 94 of file WCSimRecoEvent.cc.

References fRingList.

Referenced by Reset().

{
  fRingList->clear();
}

Bool_t WCSimRecoEvent::FoundDirection (  ) 
Bool_t WCSimRecoEvent::FoundRings (  ) 

Definition at line 249 of file WCSimRecoEvent.cc.

References fRingList.

Referenced by WCSimRecoNtuple::WriteVariables().

{
  if( fRingList->size()>0 ) return 1;
  else return 0;
}

Bool_t WCSimRecoEvent::FoundVertex (  ) 
Double_t WCSimRecoEvent::GetConeAngle (  ) 

Definition at line 209 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetConeAngle().

Referenced by WCSimRecoNtuple::WriteVariables().

{
  return fVertex->GetConeAngle();
}

WCSimRecoDigit * WCSimRecoEvent::GetDigit ( Int_t  n  ) 
std::vector<WCSimRecoDigit*>* WCSimRecoEvent::GetDigitList (  )  [inline]

Definition at line 82 of file WCSimRecoEvent.hh.

References fDigitList.

Referenced by WCSimVertexGeometry::LoadEvent(), and WCSimRecoAB::RunFilter().

{ return fDigitList; }

Double_t WCSimRecoEvent::GetDirX (  ) 

Definition at line 194 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetDirX().

Referenced by WCSimDisplayAB::DrawRecoEvent(), and WCSimRecoNtuple::WriteVariables().

{
  return fVertex->GetDirX();
}

Double_t WCSimRecoEvent::GetDirY (  ) 

Definition at line 199 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetDirY().

Referenced by WCSimDisplayAB::DrawRecoEvent(), and WCSimRecoNtuple::WriteVariables().

{
  return fVertex->GetDirY();
}

Double_t WCSimRecoEvent::GetDirZ (  ) 

Definition at line 204 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetDirZ().

Referenced by WCSimDisplayAB::DrawRecoEvent(), and WCSimRecoNtuple::WriteVariables().

{
  return fVertex->GetDirZ();
}

Int_t WCSimRecoEvent::GetEvent (  )  [inline]
WCSimRecoDigit * WCSimRecoEvent::GetFilterDigit ( Int_t  n  ) 
std::vector<WCSimRecoDigit*>* WCSimRecoEvent::GetFilterDigitList (  )  [inline]
Int_t WCSimRecoEvent::GetNDigits (  ) 
Int_t WCSimRecoEvent::GetNFilterDigits (  ) 
Int_t WCSimRecoEvent::GetNRings (  ) 

Definition at line 124 of file WCSimRecoEvent.cc.

References fRingList.

Referenced by WCSimDisplayAB::DrawRecoEvent(), and WCSimRecoNtuple::WriteVariables().

{
  return fRingList->size();
}

WCSimRecoRing * WCSimRecoEvent::GetPrimaryRing (  ) 

Definition at line 129 of file WCSimRecoEvent.cc.

References fRingList.

Referenced by WCSimRecoNtuple::WriteVariables().

{
  if( fRingList->size()>0 ){
    return (WCSimRecoRing*)(fRingList->at(0));
  }
  else{
    return 0;
  }
}

WCSimRecoRing * WCSimRecoEvent::GetRing ( Int_t  n  ) 

Definition at line 119 of file WCSimRecoEvent.cc.

References fRingList.

Referenced by WCSimDisplayAB::DrawRecoEvent().

{
  return (WCSimRecoRing*)(fRingList->at(n));
}

std::vector<WCSimRecoRing*>* WCSimRecoEvent::GetRingList (  )  [inline]

Definition at line 84 of file WCSimRecoEvent.hh.

References fRingList.

{ return fRingList; }

Int_t WCSimRecoEvent::GetRun (  )  [inline]
Double_t WCSimRecoEvent::GetTrackLength (  ) 

Definition at line 214 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetTrackLength().

Referenced by WCSimRecoNtuple::WriteVariables().

{
  return fVertex->GetTrackLength();
}

Int_t WCSimRecoEvent::GetTrigger (  )  [inline]
WCSimRecoVertex * WCSimRecoEvent::GetVertex (  ) 
Double_t WCSimRecoEvent::GetVtxFOM (  ) 

Definition at line 219 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetFOM().

Referenced by WCSimRecoNtuple::WriteVariables().

{ 
  return fVertex->GetFOM(); 
}

Int_t WCSimRecoEvent::GetVtxIterations (  ) 

Definition at line 224 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetIterations().

Referenced by WCSimRecoNtuple::WriteVariables().

{
  return fVertex->GetIterations();
}

Bool_t WCSimRecoEvent::GetVtxPass (  ) 

Definition at line 229 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetPass().

Referenced by WCSimRecoNtuple::WriteVariables().

{
  return fVertex->GetPass();
}

Int_t WCSimRecoEvent::GetVtxStatus (  ) 

Definition at line 234 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetStatus().

Referenced by WCSimRecoNtuple::WriteVariables().

{
  return fVertex->GetStatus();
}

Double_t WCSimRecoEvent::GetVtxTime (  ) 

Definition at line 189 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetTime().

Referenced by WCSimRecoNtuple::WriteVariables().

{ 
  return fVertex->GetTime(); 
}

Double_t WCSimRecoEvent::GetVtxX (  ) 

Definition at line 174 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetX().

Referenced by WCSimDisplayAB::DrawRecoEvent(), and WCSimRecoNtuple::WriteVariables().

{ 
  return fVertex->GetX(); 
}

Double_t WCSimRecoEvent::GetVtxY (  ) 

Definition at line 179 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetY().

Referenced by WCSimDisplayAB::DrawRecoEvent(), and WCSimRecoNtuple::WriteVariables().

{ 
  return fVertex->GetY(); 
}

Double_t WCSimRecoEvent::GetVtxZ (  ) 

Definition at line 184 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::GetZ().

Referenced by WCSimDisplayAB::DrawRecoEvent(), and WCSimRecoNtuple::WriteVariables().

{ 
  return fVertex->GetZ(); 
}

Bool_t WCSimRecoEvent::IsFilterDone (  )  [inline]

Definition at line 74 of file WCSimRecoEvent.hh.

References fIsFilterDone.

Referenced by WCSimRecoAB::RunRecoVertex().

{ return fIsFilterDone; }

Bool_t WCSimRecoEvent::IsRingFinderDone (  )  [inline]

Definition at line 80 of file WCSimRecoEvent.hh.

References fIsRingFinderDone.

{ return fIsRingFinderDone; }

Bool_t WCSimRecoEvent::IsVertexFinderDone (  )  [inline]

Definition at line 77 of file WCSimRecoEvent.hh.

References fIsVertexFinderDone.

Referenced by WCSimRecoAB::RunRecoRings().

{ return fIsVertexFinderDone; }

void WCSimRecoEvent::PrintDigitList ( const char *  filename  ) 

Definition at line 255 of file WCSimRecoEvent.cc.

References GetDigit(), GetNDigits(), WCSimRecoDigit::GetQPEs(), WCSimRecoDigit::GetTime(), WCSimRecoDigit::GetX(), WCSimRecoDigit::GetY(), and WCSimRecoDigit::GetZ().

{
  ofstream output(filename);

  for( Int_t i=0; i<this->GetNDigits(); i++ ){
    WCSimRecoDigit* myDigit = (WCSimRecoDigit*)(this->GetDigit(i));
    output << myDigit->GetX() << " " << myDigit->GetY() << " " << myDigit->GetZ() << " " << myDigit->GetTime() << " " << myDigit->GetQPEs() << std::endl; 
  }

  output.close();
}

void WCSimRecoEvent::PrintEvent (  ) 

Definition at line 279 of file WCSimRecoEvent.cc.

References fVertex, WCSimRecoVertex::GetDirX(), WCSimRecoVertex::GetDirY(), WCSimRecoVertex::GetDirZ(), WCSimRecoVertex::GetFOM(), WCSimRecoVertex::GetTime(), WCSimRecoVertex::GetX(), WCSimRecoVertex::GetY(), and WCSimRecoVertex::GetZ().

{
  std::cout << " *** WCSimRecoEvent::PrintEvent() *** " << std::endl
            << " * VtxX = " << fVertex->GetX() << std::endl
            << " * VtxY = " << fVertex->GetY() << std::endl
            << " * VtxZ = " << fVertex->GetZ() << std::endl
            << " * VtxTime = = " << fVertex->GetTime() << std::endl
            << " * DirX = " << fVertex->GetDirX() << std::endl
            << " * DirY = " << fVertex->GetDirY() << std::endl
            << " * DirZ = " << fVertex->GetDirZ() << std::endl
            << " * VtxFoM = " << fVertex->GetFOM() << std::endl
            << " ************************************ " << std::endl;

  return;
}

void WCSimRecoEvent::PrintFilterDigitList ( const char *  filename  ) 

Definition at line 267 of file WCSimRecoEvent.cc.

References GetFilterDigit(), GetNFilterDigits(), WCSimRecoDigit::GetQPEs(), WCSimRecoDigit::GetTime(), WCSimRecoDigit::GetX(), WCSimRecoDigit::GetY(), and WCSimRecoDigit::GetZ().

{
  ofstream output(filename);

  for( Int_t i=0; i<this->GetNFilterDigits(); i++ ){
    WCSimRecoDigit* myDigit = (WCSimRecoDigit*)(this->GetFilterDigit(i));
    output << myDigit->GetX() << " " << myDigit->GetY() << " " << myDigit->GetZ() << " " << myDigit->GetTime() << " " << myDigit->GetQPEs() << std::endl;
  }

  output.close();
}

void WCSimRecoEvent::Reset (  ) 
void WCSimRecoEvent::SetConeAngle ( Double_t  angle  ) 

Definition at line 149 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::SetConeAngle().

Referenced by WCSimRecoAB::RunRecoVertex().

{
  fVertex->SetConeAngle(angle);
}

void WCSimRecoEvent::SetDirection ( Double_t  px,
Double_t  py,
Double_t  pz 
)

Definition at line 144 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::SetDirection().

Referenced by WCSimRecoAB::RunRecoVertex().

{
  fVertex->SetDirection(px,py,pz);  
}  

void WCSimRecoEvent::SetFilterDone (  )  [inline]

Definition at line 73 of file WCSimRecoEvent.hh.

References fIsFilterDone.

Referenced by WCSimRecoAB::RunFilter().

{ fIsFilterDone = 1; }

void WCSimRecoEvent::SetHeader ( Int_t  run,
Int_t  event,
Int_t  trigger 
)

Definition at line 62 of file WCSimRecoEvent.cc.

References fEventNum, fRunNum, and fTriggerNum.

Referenced by WCSimInterface::BuildRecoEvent().

{
  fRunNum = run;
  fEventNum = event;
  fTriggerNum = trigger;
}

void WCSimRecoEvent::SetRingFinderDone (  )  [inline]

Definition at line 79 of file WCSimRecoEvent.hh.

References fIsRingFinderDone.

Referenced by WCSimRecoAB::RunRecoRings().

void WCSimRecoEvent::SetTrackLength ( Double_t  length  ) 

Definition at line 154 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::SetTrackLength().

Referenced by WCSimRecoAB::RunRecoVertex().

{
  fVertex->SetTrackLength(length);
}

void WCSimRecoEvent::SetVertex ( Double_t  x,
Double_t  y,
Double_t  z,
Double_t  t 
)

Definition at line 139 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::SetVertex().

Referenced by WCSimRecoAB::RunRecoVertex().

{
  fVertex->SetVertex(x,y,z,t);
}

void WCSimRecoEvent::SetVertexFinderDone (  )  [inline]

Definition at line 76 of file WCSimRecoEvent.hh.

References fIsVertexFinderDone.

Referenced by WCSimRecoAB::RunRecoVertex().

void WCSimRecoEvent::SetVtxFOM ( Double_t  fom,
Int_t  nsteps,
Bool_t  pass 
)

Definition at line 159 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::SetFOM().

Referenced by WCSimRecoAB::RunRecoVertex().

{
  fVertex->SetFOM(fom,nsteps,pass);
}

void WCSimRecoEvent::SetVtxStatus ( Int_t  status  ) 

Definition at line 164 of file WCSimRecoEvent.cc.

References fVertex, and WCSimRecoVertex::SetStatus().

Referenced by WCSimRecoAB::RunRecoVertex().

{
  fVertex->SetStatus(status);
}


Member Data Documentation

std::vector<WCSimRecoDigit*>* WCSimRecoEvent::fDigitList [private]
Int_t WCSimRecoEvent::fEventNum [private]

Definition at line 98 of file WCSimRecoEvent.hh.

Referenced by GetEvent(), Reset(), and SetHeader().

Definition at line 107 of file WCSimRecoEvent.hh.

Referenced by IsFilterDone(), Reset(), and SetFilterDone().

Definition at line 109 of file WCSimRecoEvent.hh.

Referenced by IsRingFinderDone(), Reset(), and SetRingFinderDone().

Definition at line 108 of file WCSimRecoEvent.hh.

Referenced by IsVertexFinderDone(), Reset(), and SetVertexFinderDone().

std::vector<WCSimRecoRing*>* WCSimRecoEvent::fRingList [private]
Int_t WCSimRecoEvent::fRunNum [private]

Definition at line 97 of file WCSimRecoEvent.hh.

Referenced by GetRun(), Reset(), and SetHeader().

Int_t WCSimRecoEvent::fTriggerNum [private]

Definition at line 99 of file WCSimRecoEvent.hh.

Referenced by GetTrigger(), Reset(), and SetHeader().


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