#include <ShowerAtNu.h>
Inheritance diagram for ShowerAtNu:

Public Member Functions | |
| ShowerAtNu (CandSliceHandle *slice) | |
| ShowerAtNu (const ShowerAtNu &rhs) | |
| virtual | ~ShowerAtNu () |
| CandSliceHandle * | GetCandSliceHandle () |
| void | AddHit (HitAtNu *hit) |
| void | AddAssocTrack (TrackAtNu *track) |
| Int_t | GetAssocTrackLast () const |
| const TrackAtNu * | GetAssocTrackAt (Int_t i) |
| void | SetBegVtxFlag (Bool_t flag) |
| Bool_t | GetBegVtxFlag () |
| void | SetEndVtxFlag (Bool_t flag) |
| Bool_t | GetEndVtxFlag () |
| Int_t | IsShwAssoc (HitAtNu *hit) |
| Int_t | IsDiffuseShwAssoc (HitAtNu *hit) |
Private Attributes | |
| TObjArray * | fAssocTrackList |
| CandSliceHandle * | fSlice |
| Bool_t | fBegVtxFlag |
| Bool_t | fEndVtxFlag |
Definition at line 10 of file ShowerAtNu.h.
| ShowerAtNu::ShowerAtNu | ( | CandSliceHandle * | slice | ) |
Definition at line 9 of file ShowerAtNu.cxx.
00009 : 00010 fAssocTrackList(0), 00011 fSlice(0), 00012 fBegVtxFlag(0), 00013 fEndVtxFlag(0) 00014 { 00015 fSlice = slice; 00016 }
| ShowerAtNu::ShowerAtNu | ( | const ShowerAtNu & | rhs | ) |
Definition at line 18 of file ShowerAtNu.cxx.
00018 : 00019 ObjShowerAtNu(rhs), 00020 fAssocTrackList(rhs.fAssocTrackList), 00021 fSlice(rhs.fSlice), 00022 fBegVtxFlag(rhs.fBegVtxFlag), 00023 fEndVtxFlag(rhs.fEndVtxFlag) 00024 { 00025 00026 }
| ShowerAtNu::~ShowerAtNu | ( | ) | [virtual] |
Definition at line 28 of file ShowerAtNu.cxx.
References fAssocTrackList.
00029 { 00030 if(fAssocTrackList) delete fAssocTrackList; 00031 }
| void ShowerAtNu::AddAssocTrack | ( | TrackAtNu * | track | ) |
Definition at line 44 of file ShowerAtNu.cxx.
References fAssocTrackList.
00045 { 00046 if(!fAssocTrackList) fAssocTrackList = new TObjArray(); 00047 fAssocTrackList->Add(track); 00048 }
| void ShowerAtNu::AddHit | ( | HitAtNu * | hit | ) |
Definition at line 38 of file ShowerAtNu.cxx.
Referenced by AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().
| const TrackAtNu * ShowerAtNu::GetAssocTrackAt | ( | Int_t | i | ) |
Definition at line 55 of file ShowerAtNu.cxx.
References fAssocTrackList.
Referenced by AlgShowerAtNu::RunAlg().
00056 { 00057 if(fAssocTrackList) return (TrackAtNu*)(fAssocTrackList->At(i)); else return 0; 00058 }
| Int_t ShowerAtNu::GetAssocTrackLast | ( | ) | const |
Definition at line 50 of file ShowerAtNu.cxx.
References fAssocTrackList.
00051 { 00052 if(fAssocTrackList) return fAssocTrackList->GetLast(); else return -1; 00053 }
| Bool_t ShowerAtNu::GetBegVtxFlag | ( | ) |
Definition at line 65 of file ShowerAtNu.cxx.
References fBegVtxFlag.
Referenced by AlgShowerAtNu::RunAlg().
00066 { 00067 return fBegVtxFlag; 00068 }
| CandSliceHandle * ShowerAtNu::GetCandSliceHandle | ( | ) |
Definition at line 33 of file ShowerAtNu.cxx.
References fSlice.
00034 { 00035 return fSlice; 00036 }
| Bool_t ShowerAtNu::GetEndVtxFlag | ( | ) |
Definition at line 75 of file ShowerAtNu.cxx.
References fEndVtxFlag.
Referenced by AlgShowerAtNu::RunAlg().
00076 { 00077 return fEndVtxFlag; 00078 }
| Int_t ShowerAtNu::IsDiffuseShwAssoc | ( | HitAtNu * | hit | ) |
Definition at line 91 of file ShowerAtNu.cxx.
References ObjAtNu::GetHitAt(), and ObjAtNu::GetHitLast().
Referenced by AlgAtNuReco::RunAlg().
00092 { 00093 Int_t assoctmp,assoc=0; 00094 for(Int_t i=0;i<1+this->GetHitLast();i++){ 00095 HitAtNu* hittmp = (HitAtNu*)(this->GetHitAt(i)); 00096 assoctmp = hittmp->IsDiffuseShwAssoc(hit); 00097 if(assoctmp>assoc) assoc=assoctmp; if(assoc>1) return assoc; 00098 } 00099 return assoc; 00100 }
| Int_t ShowerAtNu::IsShwAssoc | ( | HitAtNu * | hit | ) |
Definition at line 80 of file ShowerAtNu.cxx.
References ObjAtNu::GetHitAt(), and ObjAtNu::GetHitLast().
00081 { 00082 Int_t assoctmp,assoc=0; 00083 for(Int_t i=0;i<1+this->GetHitLast();i++){ 00084 HitAtNu* hittmp = (HitAtNu*)(this->GetHitAt(i)); 00085 assoctmp = hittmp->IsShwAssoc(hit); 00086 if(assoctmp>assoc) assoc=assoctmp; if(assoc>1) return assoc; 00087 } 00088 return assoc; 00089 }
| void ShowerAtNu::SetBegVtxFlag | ( | Bool_t | flag | ) |
Definition at line 60 of file ShowerAtNu.cxx.
References fBegVtxFlag.
00061 { 00062 fBegVtxFlag = flag; 00063 }
| void ShowerAtNu::SetEndVtxFlag | ( | Bool_t | flag | ) |
Definition at line 70 of file ShowerAtNu.cxx.
References fEndVtxFlag.
00071 { 00072 fEndVtxFlag = flag; 00073 }
TObjArray* ShowerAtNu::fAssocTrackList [private] |
Definition at line 38 of file ShowerAtNu.h.
Referenced by AddAssocTrack(), GetAssocTrackAt(), GetAssocTrackLast(), and ~ShowerAtNu().
Bool_t ShowerAtNu::fBegVtxFlag [private] |
Bool_t ShowerAtNu::fEndVtxFlag [private] |
CandSliceHandle* ShowerAtNu::fSlice [private] |
1.4.7