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

Public Member Functions | |
| ObjTrackAtNu () | |
| ObjTrackAtNu (const ObjTrackAtNu &rhs) | |
| virtual | ~ObjTrackAtNu () |
| Int_t | GetBegPlane () const |
| Int_t | GetEndPlane () const |
| Int_t | GetBegStrip () |
| Int_t | GetEndStrip () |
| Double_t | GetBegTime () const |
| Double_t | GetEndTime () const |
| Double_t | GetBegDir () |
| Double_t | GetBegVtxT () |
| Double_t | GetBegVtxZ () const |
| Double_t | GetEndDir () |
| Double_t | GetEndVtxT () |
| Double_t | GetEndVtxZ () const |
| void | SetReseedFlag (Bool_t flag) |
| Bool_t | GetReseedFlag () |
| void | SetPartner (ObjTrackAtNu *objtrk) |
| ObjTrackAtNu * | GetPartner () |
Protected Member Functions | |
| Bool_t | AddHitToTrack (HitAtNu *hit) |
Private Attributes | |
| Int_t | fBegPlane |
| Int_t | fEndPlane |
| Double_t | fBegTime |
| Double_t | fEndTime |
| Double_t | fBegVtxZ |
| Double_t | fEndVtxZ |
| Bool_t | fReseedFlag |
| ObjTrackAtNu * | fPartner |
|
|
Definition at line 7 of file ObjTrackAtNu.cxx. 00007 : 00008 fBegPlane(-1), fEndPlane(-1), 00009 fBegTime(0.0), fEndTime(0.0), 00010 fBegVtxZ(0.0), fEndVtxZ(0.0), 00011 fReseedFlag(0), fPartner(0) 00012 { 00013 00014 }
|
|
|
Definition at line 16 of file ObjTrackAtNu.cxx. 00016 : 00017 ObjAtNu(rhs), 00018 fBegPlane(rhs.fBegPlane), 00019 fEndPlane(rhs.fEndPlane), 00020 fBegTime(rhs.fBegTime), 00021 fEndTime(rhs.fEndTime), 00022 fBegVtxZ(rhs.fBegVtxZ), 00023 fEndVtxZ(rhs.fEndVtxZ), 00024 fReseedFlag(rhs.fReseedFlag), 00025 fPartner(rhs.fPartner) 00026 { 00027 00028 }
|
|
|
Definition at line 30 of file ObjTrackAtNu.cxx. 00031 {
00032
00033 }
|
|
|
Definition at line 165 of file ObjTrackAtNu.cxx. References ObjAtNu::AddHitToList(), fBegPlane, fBegTime, fBegVtxZ, fEndPlane, fEndTime, fEndVtxZ, ObjAtNu::GetHitLast(), HitAtNu::GetPlane(), HitAtNu::GetTime(), and HitAtNu::GetZPos(). Referenced by TrackSegmentAtNu::AddCluster(), and TrackAtNu::AddHit(). 00166 {
00167 if(this->AddHitToList(hit)){
00168 if(this->GetHitLast()==0){
00169 fBegPlane=hit->GetPlane();
00170 fEndPlane=hit->GetPlane();
00171 fBegTime=hit->GetTime();
00172 fEndTime=hit->GetTime();
00173 fBegVtxZ=hit->GetZPos();
00174 fEndVtxZ=hit->GetZPos();
00175 }
00176 else{
00177 if(hit->GetPlane()>fEndPlane){
00178 fEndPlane=hit->GetPlane(); fEndVtxZ=hit->GetZPos();
00179 }
00180 if(hit->GetTime()>fEndTime) fEndTime=hit->GetTime();
00181 if(hit->GetPlane()<fBegPlane){
00182 fBegPlane=hit->GetPlane(); fBegVtxZ=hit->GetZPos();
00183 }
00184 if(hit->GetTime()<fBegTime) fBegTime=hit->GetTime();
00185 }
00186 return true;
00187 }
00188 else return false;
00189 }
|
|
|
Definition at line 79 of file ObjTrackAtNu.cxx. References fBegPlane, ObjAtNu::GetHitAt(), ObjAtNu::GetHitLast(), HitAtNu::GetPlane(), HitAtNu::GetTPos(), and HitAtNu::GetZPos(). Referenced by TrackSegmentAtNu::IsBegAssoc(), and TrackSegmentAtNu::IsEndAssoc(). 00080 {
00081 Double_t z=0.0,t=0.0;
00082 Double_t sw=0.0,swx=0.0,swx2=0.0;
00083 Double_t swy=0.0,swyx=0.0;
00084 for(Int_t i=0;i<1+this->GetHitLast();i++){
00085 HitAtNu* hit = (HitAtNu*)(this->GetHitAt(i));
00086 if(hit->GetPlane()<fBegPlane+10){
00087 z=hit->GetZPos(); t=hit->GetTPos();
00088 sw+=1.0; swx+=z; swx2+=z*z;
00089 swy+=t; swyx+=t*z;;
00090 }
00091 }
00092 return (swx*swy-sw*swyx)/(swx*swx-sw*swx2);
00093 }
|
|
|
Definition at line 35 of file ObjTrackAtNu.cxx. Referenced by TrackSegmentAtNu::GetScore(), TrackSegmentAtNu::IsBegAssoc(), TrackSegmentAtNu::IsEndAssoc(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), and AlgAtNuReco::RunAlg(). 00036 {
00037 return fBegPlane;
00038 }
|
|
|
Definition at line 40 of file ObjTrackAtNu.cxx. References ObjAtNu::GetHitAt(), ObjAtNu::GetHitLast(), HitAtNu::GetPlane(), and HitAtNu::GetStrip(). Referenced by AlgAtNuReco::RunAlg(). 00041 {
00042 Double_t tot=0.0,begstrip=0.0;
00043 for(Int_t i=0;i<1+this->GetHitLast();i++){
00044 HitAtNu* hit = (HitAtNu*)(this->GetHitAt(i));
00045 if(hit->GetPlane()==fBegPlane){
00046 begstrip+=hit->GetStrip(); tot+=1.0;
00047 }
00048 }
00049 if(tot>0) return (Int_t)(begstrip/tot); else return 0;
00050 }
|
|
|
Definition at line 52 of file ObjTrackAtNu.cxx. Referenced by AlgAtNuReco::RunAlg(). 00053 {
00054 return fBegTime;
00055 }
|
|
|
Definition at line 95 of file ObjTrackAtNu.cxx. References ObjAtNu::GetHitAt(), ObjAtNu::GetHitLast(), HitAtNu::GetPlane(), and HitAtNu::GetTPos(). Referenced by TrackSegmentAtNu::IsBegAssoc(), and TrackSegmentAtNu::IsEndAssoc(). 00096 {
00097 Double_t tot=0.0,begt=0.0;
00098 for(Int_t i=0;i<1+this->GetHitLast();i++){
00099 HitAtNu* hit = (HitAtNu*)(this->GetHitAt(i));
00100 if(hit->GetPlane()==fBegPlane){
00101 begt+=hit->GetTPos(); tot+=1.0;
00102 }
00103 }
00104 if(tot>0) return begt/tot; else return 0;
00105 }
|
|
|
Definition at line 107 of file ObjTrackAtNu.cxx. Referenced by TrackSegmentAtNu::IsBegAssoc(), and TrackSegmentAtNu::IsEndAssoc(). 00108 {
00109 return fBegVtxZ;
00110 }
|
|
|
Definition at line 112 of file ObjTrackAtNu.cxx. References fEndPlane, ObjAtNu::GetHitAt(), ObjAtNu::GetHitLast(), HitAtNu::GetPlane(), HitAtNu::GetTPos(), and HitAtNu::GetZPos(). Referenced by TrackSegmentAtNu::IsBegAssoc(), TrackSegmentAtNu::IsEndAssoc(), and AlgAtNuReco::RunAlg(). 00113 {
00114 Double_t z=0.0,t=0.0;
00115 Double_t sw=0.0,swx=0.0,swx2=0.0;
00116 Double_t swy=0.0,swyx=0.0;
00117 for(Int_t i=0;i<1+this->GetHitLast();i++){
00118 HitAtNu* hit = (HitAtNu*)(this->GetHitAt(i));
00119 if(hit->GetPlane()>fEndPlane-10){
00120 z=hit->GetZPos(); t=hit->GetTPos();
00121 sw+=1.0; swx+=z; swx2+=z*z;
00122 swy+=t; swyx+=t*z;;
00123 }
00124 }
00125 return (swx*swy-sw*swyx)/(swx*swx-sw*swx2);
00126 }
|
|
|
Definition at line 57 of file ObjTrackAtNu.cxx. Referenced by TrackSegmentAtNu::GetScore(), TrackSegmentAtNu::IsBegAssoc(), TrackSegmentAtNu::IsEndAssoc(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), and AlgAtNuReco::RunAlg(). 00058 {
00059 return fEndPlane;
00060 }
|
|
|
Definition at line 62 of file ObjTrackAtNu.cxx. References ObjAtNu::GetHitAt(), ObjAtNu::GetHitLast(), HitAtNu::GetPlane(), and HitAtNu::GetStrip(). Referenced by AlgAtNuReco::RunAlg(). 00063 {
00064 Double_t tot=0.0,endstrip=0.0;
00065 for(Int_t i=0;i<1+this->GetHitLast();i++){
00066 HitAtNu* hit = (HitAtNu*)(this->GetHitAt(i));
00067 if(hit->GetPlane()==fEndPlane){
00068 endstrip+=hit->GetStrip(); tot+=1.0;
00069 }
00070 }
00071 if(tot>0) return (Int_t)(endstrip/tot); else return 0;
00072 }
|
|
|
Definition at line 74 of file ObjTrackAtNu.cxx. Referenced by AlgAtNuReco::RunAlg(). 00075 {
00076 return fEndTime;
00077 }
|
|
|
Definition at line 128 of file ObjTrackAtNu.cxx. References ObjAtNu::GetHitAt(), ObjAtNu::GetHitLast(), HitAtNu::GetPlane(), and HitAtNu::GetTPos(). Referenced by TrackSegmentAtNu::IsBegAssoc(), and TrackSegmentAtNu::IsEndAssoc(). 00129 {
00130 Double_t tot=0.0,endt=0.0;
00131 for(Int_t i=0;i<1+this->GetHitLast();i++){
00132 HitAtNu* hit = (HitAtNu*)(this->GetHitAt(i));
00133 if(hit->GetPlane()==fEndPlane){
00134 endt+=hit->GetTPos(); tot+=1.0;
00135 }
00136 }
00137 if(tot>0) return endt/tot; else return 0;
00138 }
|
|
|
Definition at line 140 of file ObjTrackAtNu.cxx. Referenced by TrackSegmentAtNu::IsBegAssoc(), and TrackSegmentAtNu::IsEndAssoc(). 00141 {
00142 return fEndVtxZ;
00143 }
|
|
|
Definition at line 160 of file ObjTrackAtNu.cxx. Referenced by AlgAtNuReco::RunAlg(). 00161 {
00162 return fPartner;
00163 }
|
|
|
Definition at line 150 of file ObjTrackAtNu.cxx. Referenced by AlgTrackAtNu::RunAlg(), and AlgAtNuReco::RunAlg(). 00151 {
00152 return fReseedFlag;
00153 }
|
|
|
Definition at line 155 of file ObjTrackAtNu.cxx. References fPartner. Referenced by AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg(). 00156 {
00157 fPartner=objtrk;
00158 }
|
|
|
Definition at line 145 of file ObjTrackAtNu.cxx. References fReseedFlag. Referenced by AlgAtNuReco::RunAlg(). 00146 {
00147 fReseedFlag = flag;
00148 }
|
|
|
Definition at line 44 of file ObjTrackAtNu.h. Referenced by AddHitToTrack(), and GetBegDir(). |
|
|
Definition at line 46 of file ObjTrackAtNu.h. Referenced by AddHitToTrack(). |
|
|
Definition at line 48 of file ObjTrackAtNu.h. Referenced by AddHitToTrack(). |
|
|
Definition at line 45 of file ObjTrackAtNu.h. Referenced by AddHitToTrack(), and GetEndDir(). |
|
|
Definition at line 47 of file ObjTrackAtNu.h. Referenced by AddHitToTrack(). |
|
|
Definition at line 49 of file ObjTrackAtNu.h. Referenced by AddHitToTrack(). |
|
|
Definition at line 51 of file ObjTrackAtNu.h. Referenced by SetPartner(). |
|
|
Definition at line 50 of file ObjTrackAtNu.h. Referenced by SetReseedFlag(). |
1.3.9.1