ShowerCamAtNu Class Reference

#include <ShowerCamAtNu.h>

List of all members.

Public Member Functions

 ShowerCamAtNu (CandSliceHandle *slice)
virtual ~ShowerCamAtNu ()
CandSliceHandleGetCandSliceHandle () const
void AddHit (HitCamAtNu *hit)
HitCamAtNuGetHit (unsigned int i)
HitCamAtNuGetHit (unsigned int i) const
void AddAssocTrack (TrackCamAtNu *track)
unsigned int GetNAssocTrack () const
const TrackCamAtNuGetAssocTrackAt (unsigned int i)
void SetBegVtxFlag (bool flag)
bool GetBegVtxFlag ()
void SetEndVtxFlag (bool flag)
bool GetEndVtxFlag ()
int IsShwAssoc (HitCamAtNu *hit)
int IsDiffuseShwAssoc (HitCamAtNu *hit)
int GetBegPlane () const
int GetEndPlane () const
int GetBegStrip ()
int GetEndStrip ()
void SetReseedFlag (bool flag)
bool GetReseedFlag () const
void SetPartner (ShowerCamAtNu *shw)
ShowerCamAtNuGetPartner () const
unsigned int GetNHits () const

Private Attributes

vector< TrackCamAtNu * > fAssocTrackList
vector< HitCamAtNu * > fHitList
CandSliceHandlefSlice
int fBegPlane
int fEndPlane
double fBegTime
double fEndTime
bool fBegVtxFlag
bool fEndVtxFlag
bool fReseedFlag
ShowerCamAtNufPartner

Detailed Description

Definition at line 20 of file ShowerCamAtNu.h.


Constructor & Destructor Documentation

ShowerCamAtNu::ShowerCamAtNu ( CandSliceHandle slice  ) 

Definition at line 19 of file ShowerCamAtNu.cxx.

00019                                                    :
00020   fSlice(0),
00021   fBegPlane(-1), fEndPlane(-1), 
00022   fBegTime(0.0), fEndTime(0.0),
00023   fBegVtxFlag(0),
00024   fEndVtxFlag(0),
00025   fReseedFlag(0), fPartner(0)
00026 {
00027   fSlice = slice;
00028 }

ShowerCamAtNu::~ShowerCamAtNu (  )  [virtual]

Definition at line 44 of file ShowerCamAtNu.cxx.

00045 {
00046 
00047 }


Member Function Documentation

void ShowerCamAtNu::AddAssocTrack ( TrackCamAtNu track  )  [inline]

Definition at line 35 of file ShowerCamAtNu.h.

References fAssocTrackList.

Referenced by AlgAtmosShowerList::FormVertexShowers().

00035 { fAssocTrackList.push_back(track); return; };

void ShowerCamAtNu::AddHit ( HitCamAtNu hit  ) 

Definition at line 49 of file ShowerCamAtNu.cxx.

References fBegPlane, fBegTime, fEndPlane, fEndTime, fHitList, HitCamAtNu::GetPlane(), and HitCamAtNu::GetTime().

Referenced by AlgAtmosShowerList::Form3DShowers(), and AlgAtmosShowerList::FormVertexShowers().

00050 {
00051   
00052   if(fHitList.size()==0)
00053     {
00054       fBegPlane=hit->GetPlane();
00055       fEndPlane=hit->GetPlane();
00056       fBegTime=hit->GetTime();
00057       fEndTime=hit->GetTime();
00058     }
00059   else
00060     {
00061       if(hit->GetPlane()>fEndPlane) fEndPlane=hit->GetPlane();  
00062       if(hit->GetPlane()<fBegPlane) fBegPlane=hit->GetPlane();
00063       if(hit->GetTime()>fEndTime) fEndTime=hit->GetTime();
00064       if(hit->GetTime()<fBegTime) fBegTime=hit->GetTime();
00065     }
00066   fHitList.push_back(hit);
00067   return;  
00068 }

const TrackCamAtNu* ShowerCamAtNu::GetAssocTrackAt ( unsigned int  i  )  [inline]

Definition at line 37 of file ShowerCamAtNu.h.

References fAssocTrackList.

Referenced by AlgShowerCam::FindShowerVertex().

00037 { if(i<fAssocTrackList.size()) return fAssocTrackList[i]; else return 0; };

int ShowerCamAtNu::GetBegPlane (  )  const [inline]
int ShowerCamAtNu::GetBegStrip (  ) 

Definition at line 70 of file ShowerCamAtNu.cxx.

References fBegPlane, GetHit(), GetNHits(), HitCamAtNu::GetPlane(), and HitCamAtNu::GetStrip().

Referenced by AlgAtmosShowerList::Form3DShowers(), and AlgAtmosShowerList::FormVertexShowers().

00071 {
00072   double tot=0.0,begstrip=0.0;
00073   for(unsigned int i=0;i<this->GetNHits();i++)
00074     {
00075       HitCamAtNu* hit = this->GetHit(i);
00076       if(hit->GetPlane()==fBegPlane)
00077         {
00078           begstrip+=hit->GetStrip(); tot+=1.0;
00079         }
00080     }
00081   if(tot>0) return (int)(begstrip/tot); else return 0;
00082 }

bool ShowerCamAtNu::GetBegVtxFlag (  )  [inline]

Definition at line 40 of file ShowerCamAtNu.h.

References fBegVtxFlag.

Referenced by AlgShowerCam::FindShowerVertex().

00040 { return fBegVtxFlag; };

CandSliceHandle* ShowerCamAtNu::GetCandSliceHandle (  )  const [inline]

Definition at line 29 of file ShowerCamAtNu.h.

References fSlice.

Referenced by AlgShowerCam::RunAlg().

00029 { return fSlice; };

int ShowerCamAtNu::GetEndPlane (  )  const [inline]
int ShowerCamAtNu::GetEndStrip (  ) 

Definition at line 84 of file ShowerCamAtNu.cxx.

References fEndPlane, GetHit(), GetNHits(), HitCamAtNu::GetPlane(), and HitCamAtNu::GetStrip().

Referenced by AlgAtmosShowerList::Form3DShowers(), and AlgAtmosShowerList::FormVertexShowers().

00085 {
00086   double tot=0.0,endstrip=0.0;
00087   for(unsigned int i=0;i<this->GetNHits();i++)
00088     {
00089       HitCamAtNu* hit = this->GetHit(i);
00090       if(hit->GetPlane()==fEndPlane)
00091         {
00092           endstrip+=hit->GetStrip(); tot+=1.0;
00093         }
00094     }
00095   if(tot>0) return (int)(endstrip/tot); else return 0;
00096 }

bool ShowerCamAtNu::GetEndVtxFlag (  )  [inline]

Definition at line 43 of file ShowerCamAtNu.h.

References fEndVtxFlag.

Referenced by AlgShowerCam::FindShowerVertex().

00043 { return fEndVtxFlag; };

HitCamAtNu* ShowerCamAtNu::GetHit ( unsigned int  i  )  const [inline]

Definition at line 33 of file ShowerCamAtNu.h.

References fHitList.

00033 { return fHitList[i]; };

HitCamAtNu* ShowerCamAtNu::GetHit ( unsigned int  i  )  [inline]
unsigned int ShowerCamAtNu::GetNAssocTrack (  )  const [inline]

Definition at line 36 of file ShowerCamAtNu.h.

References fAssocTrackList.

00036 { return fAssocTrackList.size(); }; //  GetAssocTrackLast() const;

unsigned int ShowerCamAtNu::GetNHits (  )  const [inline]

Definition at line 67 of file ShowerCamAtNu.h.

References fHitList.

Referenced by AlgAtmosShowerList::FormVertexShowers(), GetBegStrip(), GetEndStrip(), IsDiffuseShwAssoc(), and IsShwAssoc().

00067 { return fHitList.size(); }; 

ShowerCamAtNu* ShowerCamAtNu::GetPartner (  )  const [inline]

Definition at line 65 of file ShowerCamAtNu.h.

References fPartner.

Referenced by AlgAtmosShowerList::Form3DShowers().

00065 { return fPartner; };

bool ShowerCamAtNu::GetReseedFlag (  )  const [inline]

Definition at line 62 of file ShowerCamAtNu.h.

References fReseedFlag.

00062 { return fReseedFlag; };

int ShowerCamAtNu::IsDiffuseShwAssoc ( HitCamAtNu hit  ) 

Definition at line 111 of file ShowerCamAtNu.cxx.

References GetHit(), GetNHits(), and HitCamAtNu::IsDiffuseShwAssoc().

Referenced by AlgAtmosShowerList::FormVertexShowers().

00112 {
00113   int assoctmp,assoc=0;
00114   for(unsigned int i=0;i<this->GetNHits();i++)
00115     { 
00116       HitCamAtNu* hittmp = this->GetHit(i);
00117       assoctmp = hittmp->IsDiffuseShwAssoc(hit);
00118       if(assoctmp>1) return assoctmp;
00119       if(assoctmp>assoc) assoc=assoctmp; 
00120     }
00121   return assoc; 
00122 }

int ShowerCamAtNu::IsShwAssoc ( HitCamAtNu hit  ) 

Definition at line 98 of file ShowerCamAtNu.cxx.

References GetHit(), GetNHits(), and HitCamAtNu::IsShwAssoc().

00099 {
00100   int assoctmp,assoc=0;
00101   for(unsigned int i=0;i<this->GetNHits();i++)
00102     { 
00103       HitCamAtNu* hittmp = this->GetHit(i);
00104       assoctmp = hittmp->IsShwAssoc(hit);
00105       if(assoctmp>1) return assoctmp;
00106       if(assoctmp>assoc) assoc=assoctmp; 
00107     }
00108   return assoc;
00109 }

void ShowerCamAtNu::SetBegVtxFlag ( bool  flag  )  [inline]

Definition at line 39 of file ShowerCamAtNu.h.

References fBegVtxFlag.

Referenced by AlgAtmosShowerList::FormVertexShowers().

00039 { fBegVtxFlag=flag; return; };

void ShowerCamAtNu::SetEndVtxFlag ( bool  flag  )  [inline]

Definition at line 42 of file ShowerCamAtNu.h.

References fEndVtxFlag.

Referenced by AlgAtmosShowerList::FormVertexShowers().

00042 { fEndVtxFlag=flag; return; };

void ShowerCamAtNu::SetPartner ( ShowerCamAtNu shw  )  [inline]

Definition at line 64 of file ShowerCamAtNu.h.

References fPartner.

Referenced by AlgAtmosShowerList::Form3DShowers().

00064 { fPartner=shw; };

void ShowerCamAtNu::SetReseedFlag ( bool  flag  )  [inline]

Definition at line 61 of file ShowerCamAtNu.h.

References fReseedFlag.

Referenced by AlgAtmosShowerList::Form3DShowers(), and AlgAtmosShowerList::FormVertexShowers().

00061 { fReseedFlag=flag; };


Member Data Documentation

Definition at line 67 of file ShowerCamAtNu.h.

Referenced by AddAssocTrack(), GetAssocTrackAt(), and GetNAssocTrack().

int ShowerCamAtNu::fBegPlane [private]

Definition at line 77 of file ShowerCamAtNu.h.

Referenced by AddHit(), GetBegPlane(), and GetBegStrip().

double ShowerCamAtNu::fBegTime [private]

Definition at line 79 of file ShowerCamAtNu.h.

Referenced by AddHit().

Definition at line 81 of file ShowerCamAtNu.h.

Referenced by GetBegVtxFlag(), and SetBegVtxFlag().

int ShowerCamAtNu::fEndPlane [private]

Definition at line 78 of file ShowerCamAtNu.h.

Referenced by AddHit(), GetEndPlane(), and GetEndStrip().

double ShowerCamAtNu::fEndTime [private]

Definition at line 80 of file ShowerCamAtNu.h.

Referenced by AddHit().

Definition at line 82 of file ShowerCamAtNu.h.

Referenced by GetEndVtxFlag(), and SetEndVtxFlag().

vector<HitCamAtNu*> ShowerCamAtNu::fHitList [private]

Definition at line 75 of file ShowerCamAtNu.h.

Referenced by AddHit(), GetHit(), and GetNHits().

Definition at line 84 of file ShowerCamAtNu.h.

Referenced by GetPartner(), and SetPartner().

Definition at line 83 of file ShowerCamAtNu.h.

Referenced by GetReseedFlag(), and SetReseedFlag().

Definition at line 76 of file ShowerCamAtNu.h.

Referenced by GetCandSliceHandle().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1