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

Public Member Functions | |
| ObjAtNu () | |
| ObjAtNu (const ObjAtNu &rhs) | |
| virtual | ~ObjAtNu () |
| TIter | GetDaughterIterator () const |
| Int_t | GetNDaughters () const |
| Int_t | GetHitLast () const |
| HitAtNu * | GetHitAt (Int_t i) |
| Bool_t | ContainsHit (HitAtNu *hit) |
| Int_t | GetPlaneView () |
| Int_t | GetUID () const |
| void | SetUID (Int_t uid) |
Protected Member Functions | |
| Bool_t | AddHitToList (HitAtNu *hit) |
Private Attributes | |
| TObjArray * | fHitList |
| Int_t | fUid |
| Int_t | fPlaneView |
Definition at line 12 of file ObjAtNu.h.
| ObjAtNu::ObjAtNu | ( | ) |
Definition at line 7 of file ObjAtNu.cxx.
00007 : 00008 fHitList(0), fUid(0), fPlaneView(-1) 00009 { 00010 fHitList = new TObjArray(); 00011 }
| ObjAtNu::ObjAtNu | ( | const ObjAtNu & | rhs | ) |
Definition at line 13 of file ObjAtNu.cxx.
00013 : 00014 TObject(rhs), 00015 fHitList(rhs.fHitList), 00016 fUid(rhs.fUid), 00017 fPlaneView(rhs.fPlaneView) 00018 { 00019 00020 }
| ObjAtNu::~ObjAtNu | ( | ) | [virtual] |
Definition at line 22 of file ObjAtNu.cxx.
References fHitList.
00023 { 00024 delete fHitList; 00025 }
| Bool_t ObjAtNu::AddHitToList | ( | HitAtNu * | hit | ) | [protected] |
Definition at line 55 of file ObjAtNu.cxx.
References ContainsHit(), fHitList, fPlaneView, and HitAtNu::GetPlaneView().
00056 { 00057 if(this->GetPlaneView()<0) fPlaneView=hit->GetPlaneView(); 00058 if(hit->GetPlaneView()==fPlaneView && !this->ContainsHit(hit)){ 00059 fHitList->Add(hit); return 1; 00060 } 00061 else return 0; 00062 }
| Bool_t ObjAtNu::ContainsHit | ( | HitAtNu * | hit | ) |
Definition at line 47 of file ObjAtNu.cxx.
References fHitList.
Referenced by AddHitToList().
00048 { 00049 for(Int_t i=0;i<1+fHitList->GetLast();i++){ 00050 if(hit==(HitAtNu*)(fHitList->At(i))) return true; 00051 } 00052 return false; 00053 }
| TIter ObjAtNu::GetDaughterIterator | ( | ) | const |
Definition at line 27 of file ObjAtNu.cxx.
References fHitList.
00028 { 00029 return TIter(fHitList); 00030 }
| HitAtNu * ObjAtNu::GetHitAt | ( | Int_t | i | ) |
Definition at line 42 of file ObjAtNu.cxx.
References fHitList.
Referenced by ObjTrackAtNu::GetBegDir(), ObjTrackAtNu::GetBegStrip(), ObjShowerAtNu::GetBegStrip(), ObjTrackAtNu::GetBegVtxT(), ObjShowerAtNu::GetCharge(), ClusterAtNu::GetDigits(), ObjShowerAtNu::GetDir(), ObjTrackAtNu::GetEndDir(), ObjTrackAtNu::GetEndStrip(), ObjShowerAtNu::GetEndStrip(), ObjTrackAtNu::GetEndVtxT(), ObjShowerAtNu::GetVtxT(), ObjShowerAtNu::GetVtxZ(), ShowerAtNu::IsDiffuseShwAssoc(), ShowerAtNu::IsShwAssoc(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), and AlgAtNuReco::RunAlg().
| Int_t ObjAtNu::GetHitLast | ( | ) | const |
Definition at line 37 of file ObjAtNu.cxx.
References fHitList.
Referenced by ObjTrackAtNu::GetBegDir(), ObjTrackAtNu::GetBegStrip(), ObjShowerAtNu::GetBegStrip(), ObjTrackAtNu::GetBegVtxT(), ObjShowerAtNu::GetCharge(), ClusterAtNu::GetDigits(), ObjShowerAtNu::GetDir(), ObjTrackAtNu::GetEndDir(), ObjTrackAtNu::GetEndStrip(), ObjShowerAtNu::GetEndStrip(), ObjTrackAtNu::GetEndVtxT(), ShowerSegmentAtNu::GetScore(), ObjShowerAtNu::GetVtxT(), ObjShowerAtNu::GetVtxZ(), ShowerAtNu::IsDiffuseShwAssoc(), ShowerAtNu::IsShwAssoc(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), and AlgAtNuReco::RunAlg().
00038 { 00039 return fHitList->GetLast(); 00040 }
| Int_t ObjAtNu::GetNDaughters | ( | ) | const |
Definition at line 32 of file ObjAtNu.cxx.
References fHitList.
00033 { 00034 return 1+fHitList->GetLast(); 00035 }
| Int_t ObjAtNu::GetPlaneView | ( | ) |
Definition at line 64 of file ObjAtNu.cxx.
References fPlaneView.
00065 { 00066 return fPlaneView; 00067 }
| Int_t ObjAtNu::GetUID | ( | ) | const |
Definition at line 69 of file ObjAtNu.cxx.
References fUid.
Referenced by AlgAtNuReco::RunAlg().
00070 { 00071 return fUid; 00072 }
| void ObjAtNu::SetUID | ( | Int_t | uid | ) |
Definition at line 74 of file ObjAtNu.cxx.
References fUid.
Referenced by AlgAtNuReco::RunAlg().
00075 { 00076 fUid = uid; 00077 }
TObjArray* ObjAtNu::fHitList [private] |
Definition at line 35 of file ObjAtNu.h.
Referenced by AddHitToList(), ContainsHit(), GetDaughterIterator(), GetHitAt(), GetHitLast(), GetNDaughters(), and ~ObjAtNu().
Int_t ObjAtNu::fPlaneView [private] |
Int_t ObjAtNu::fUid [private] |
1.4.7