Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

HitAtNu Class Reference

#include <HitAtNu.h>

List of all members.

Public Member Functions

 HitAtNu (CandStripHandle *strip)
 HitAtNu (const HitAtNu &rhs)
 ~HitAtNu ()
CandStripHandleGetCandStripHandle ()
Int_t GetPlaneView () const
Int_t GetPlane () const
Int_t GetStrip () const
Double_t GetCharge () const
Double_t GetTime () const
Double_t GetTPos () const
Double_t GetZPos () const
Int_t GetDigits () const
void SetUID (Int_t uid)
void SetTrkFlag (Int_t flag)
void SetShwFlag (Int_t flag)
void SetXtalkFlag (Int_t flag)
Int_t GetUID () const
Int_t GetTrkFlag () const
Int_t GetShwFlag () const
Int_t GetXtalkFlag () const
Int_t IsTrkAssoc (HitAtNu *hit) const
Int_t IsShwAssoc (HitAtNu *hit) const
Int_t IsDiffuseShwAssoc (HitAtNu *hit) const

Private Attributes

Int_t fTrkFlag
Int_t fShwFlag
Int_t fXtalkFlag
Int_t fPlaneView
CandStripHandlefStrip
Int_t fUid
Double_t fTime


Constructor & Destructor Documentation

HitAtNu::HitAtNu CandStripHandle strip  ) 
 

Definition at line 8 of file HitAtNu.cxx.

00008                                        :
00009   fTrkFlag(0),
00010   fShwFlag(0),
00011   fXtalkFlag(0),
00012   fPlaneView(-1),
00013   fStrip(0),
00014   fUid(0),
00015   fTime(-999.0)
00016 {
00017   if(strip){
00018     fStrip=strip;
00019     fTime=1.0e9*strip->GetTime();
00020     if( strip->GetPlaneView()==PlaneView::kU
00021      || strip->GetPlaneView()==PlaneView::kX
00022      || strip->GetPlaneView()==PlaneView::kA ) fPlaneView=0;
00023     if( strip->GetPlaneView()==PlaneView::kV
00024      || strip->GetPlaneView()==PlaneView::kY
00025      || strip->GetPlaneView()==PlaneView::kB ) fPlaneView=1;
00026   }
00027 }

HitAtNu::HitAtNu const HitAtNu rhs  ) 
 

Definition at line 29 of file HitAtNu.cxx.

00029                                    :
00030   TObject(rhs),
00031   fTrkFlag(rhs.fTrkFlag),
00032   fShwFlag(rhs.fShwFlag),
00033   fXtalkFlag(rhs.fXtalkFlag),
00034   fPlaneView(rhs.fPlaneView),
00035   fStrip(rhs.fStrip),
00036   fUid(rhs.fUid),
00037   fTime(rhs.fTime)
00038 {
00039 
00040 }

HitAtNu::~HitAtNu  ) 
 

Definition at line 42 of file HitAtNu.cxx.

00043 {
00044 
00045 }


Member Function Documentation

CandStripHandle * HitAtNu::GetCandStripHandle  ) 
 

Definition at line 47 of file HitAtNu.cxx.

Referenced by AlgTrackAtNu::RunAlg(), and AlgShowerAtNu::RunAlg().

00048 {
00049   return fStrip;
00050 }

Double_t HitAtNu::GetCharge  )  const
 

Definition at line 69 of file HitAtNu.cxx.

References fStrip, and CandStripHandle::GetCharge().

Referenced by ClusterAtNu::AddHit(), ObjShowerAtNu::GetCharge(), TrackSegmentAtNu::GetScore(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().

00070 {
00071   if(fStrip) return fStrip->GetCharge();
00072   else return -1.0;
00073 }

Int_t HitAtNu::GetDigits  )  const
 

Definition at line 92 of file HitAtNu.cxx.

References fStrip, and CandHandle::GetNDaughters().

Referenced by ClusterAtNu::GetDigits(), and AlgAtNuReco::RunAlg().

00093 {
00094   if(fStrip) return (Int_t)(fStrip->GetNDaughters());
00095   else return 0;
00096 }

Int_t HitAtNu::GetPlane  )  const
 

Definition at line 57 of file HitAtNu.cxx.

References fStrip, and CandStripHandle::GetPlane().

Referenced by ClusterAtNu::AddHit(), ObjShowerAtNu::AddHitToShower(), ObjTrackAtNu::AddHitToTrack(), ObjTrackAtNu::GetBegDir(), ObjTrackAtNu::GetBegStrip(), ObjShowerAtNu::GetBegStrip(), ObjTrackAtNu::GetBegVtxT(), ObjShowerAtNu::GetDir(), ObjTrackAtNu::GetEndDir(), ObjTrackAtNu::GetEndStrip(), ObjShowerAtNu::GetEndStrip(), ObjTrackAtNu::GetEndVtxT(), IsDiffuseShwAssoc(), ClusterAtNu::IsHitAssoc(), IsShwAssoc(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().

00058 {
00059   if(fStrip) return fStrip->GetPlane();
00060   else return -1;
00061 }

Int_t HitAtNu::GetPlaneView  )  const
 

Definition at line 52 of file HitAtNu.cxx.

Referenced by ObjAtNu::AddHitToList(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().

00053 {
00054   return fPlaneView;
00055 }

Int_t HitAtNu::GetShwFlag  )  const
 

Definition at line 128 of file HitAtNu.cxx.

Referenced by ObjShowerAtNu::GetCharge(), ObjShowerAtNu::GetDir(), ObjShowerAtNu::GetVtxT(), ObjShowerAtNu::GetVtxZ(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), and AlgAtNuReco::RunAlg().

00129 {
00130   return fShwFlag;
00131 }

Int_t HitAtNu::GetStrip  )  const
 

Definition at line 63 of file HitAtNu.cxx.

References fStrip, and CandStripHandle::GetStrip().

Referenced by ClusterAtNu::AddHit(), ObjTrackAtNu::GetBegStrip(), ObjShowerAtNu::GetBegStrip(), ObjTrackAtNu::GetEndStrip(), ObjShowerAtNu::GetEndStrip(), IsDiffuseShwAssoc(), ClusterAtNu::IsHitAssoc(), IsShwAssoc(), AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().

00064 {
00065   if(fStrip) return fStrip->GetStrip();
00066   else return -1;
00067 }

Double_t HitAtNu::GetTime  )  const
 

Definition at line 75 of file HitAtNu.cxx.

Referenced by ClusterAtNu::AddHit(), ObjShowerAtNu::AddHitToShower(), ObjTrackAtNu::AddHitToTrack(), IsDiffuseShwAssoc(), ClusterAtNu::IsHitAssoc(), IsShwAssoc(), and AlgAtNuReco::RunAlg().

00076 {
00077   return fTime;
00078 }

Double_t HitAtNu::GetTPos  )  const
 

Definition at line 80 of file HitAtNu.cxx.

References fStrip, and CandStripHandle::GetTPos().

Referenced by ClusterAtNu::AddHit(), ObjTrackAtNu::GetBegDir(), ObjTrackAtNu::GetBegVtxT(), ObjShowerAtNu::GetDir(), ObjTrackAtNu::GetEndDir(), ObjTrackAtNu::GetEndVtxT(), TrackSegmentAtNu::GetScore(), ObjShowerAtNu::GetVtxT(), AlgTrackAtNu::RunAlg(), and AlgShowerAtNu::RunAlg().

00081 {
00082   if(fStrip) return fStrip->GetTPos();
00083   else return -1.0;
00084 }

Int_t HitAtNu::GetTrkFlag  )  const
 

Definition at line 123 of file HitAtNu.cxx.

Referenced by AlgAtNuReco::RunAlg().

00124 {
00125   return fTrkFlag;
00126 }

Int_t HitAtNu::GetUID  )  const
 

Definition at line 118 of file HitAtNu.cxx.

Referenced by AlgAtNuReco::RunAlg().

00119 {
00120   return fUid;
00121 }

Int_t HitAtNu::GetXtalkFlag  )  const
 

Definition at line 133 of file HitAtNu.cxx.

00134 {
00135   return fXtalkFlag;
00136 }

Double_t HitAtNu::GetZPos  )  const
 

Definition at line 86 of file HitAtNu.cxx.

References fStrip, and CandStripHandle::GetZPos().

Referenced by ClusterAtNu::AddHit(), ObjTrackAtNu::AddHitToTrack(), ObjTrackAtNu::GetBegDir(), ObjShowerAtNu::GetDir(), ObjTrackAtNu::GetEndDir(), TrackSegmentAtNu::GetScore(), ObjShowerAtNu::GetVtxZ(), AlgTrackAtNu::RunAlg(), AlgShowerAtNu::RunAlg(), and AlgAtNuReco::RunAlg().

00087 {
00088   if(fStrip) return fStrip->GetZPos();
00089   else return -1.0;
00090 }

Int_t HitAtNu::IsDiffuseShwAssoc HitAtNu hit  )  const
 

Definition at line 165 of file HitAtNu.cxx.

References GetPlane(), GetStrip(), GetTime(), and win.

Referenced by ShowerAtNu::IsDiffuseShwAssoc(), and AlgAtNuReco::RunAlg().

00166 {
00167   Double_t win=99.9;
00168   if(fStrip){
00169     if( hit->GetTime()-this->GetTime()>-win
00170      && hit->GetTime()-this->GetTime()<win ){
00171       if( hit->GetPlane()-this->GetPlane()>-9
00172        && hit->GetPlane()-this->GetPlane()<9
00173        && hit->GetStrip()-this->GetStrip()>-21
00174        && hit->GetStrip()-this->GetStrip()<21 ){
00175         if( hit->GetPlane()-this->GetPlane()>-5
00176          && hit->GetPlane()-this->GetPlane()<5
00177          && hit->GetStrip()-this->GetStrip()>-11
00178          && hit->GetStrip()-this->GetStrip()<11 )
00179           return 2; else return 1;
00180       }
00181     }
00182   }
00183   return 0; 
00184 }

Int_t HitAtNu::IsShwAssoc HitAtNu hit  )  const
 

Definition at line 144 of file HitAtNu.cxx.

References GetPlane(), GetStrip(), GetTime(), and win.

Referenced by ShowerAtNu::IsShwAssoc(), and AlgAtNuReco::RunAlg().

00145 {
00146   Double_t win=99.9;
00147   if(fStrip){
00148     if( hit->GetTime()-this->GetTime()>-win
00149      && hit->GetTime()-this->GetTime()<win ){
00150       if( hit->GetPlane()-this->GetPlane()>-5
00151        && hit->GetPlane()-this->GetPlane()<5
00152        && hit->GetStrip()-this->GetStrip()>-6
00153        && hit->GetStrip()-this->GetStrip()<6 ){
00154         if( hit->GetPlane()-this->GetPlane()>-3
00155          && hit->GetPlane()-this->GetPlane()<3
00156          && hit->GetStrip()-this->GetStrip()>-4
00157          && hit->GetStrip()-this->GetStrip()<4 )
00158           return 2; else return 1;
00159       }
00160     }
00161   }
00162   return 0; 
00163 }

Int_t HitAtNu::IsTrkAssoc HitAtNu hit  )  const
 

Definition at line 138 of file HitAtNu.cxx.

00139 {
00140   if(hit) return 0;
00141   return 0;
00142 }

void HitAtNu::SetShwFlag Int_t  flag  ) 
 

Definition at line 108 of file HitAtNu.cxx.

References fShwFlag.

Referenced by AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().

00109 {
00110   fShwFlag=flag;
00111 }

void HitAtNu::SetTrkFlag Int_t  flag  ) 
 

Definition at line 103 of file HitAtNu.cxx.

References fTrkFlag.

Referenced by AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().

00104 {
00105   fTrkFlag=flag;
00106 }

void HitAtNu::SetUID Int_t  uid  ) 
 

Definition at line 98 of file HitAtNu.cxx.

References fUid.

Referenced by AlgAtNuReco::RunAlg().

00099 {
00100   fUid=uid;
00101 }

void HitAtNu::SetXtalkFlag Int_t  flag  ) 
 

Definition at line 113 of file HitAtNu.cxx.

References fXtalkFlag.

Referenced by AlgAtNuReco::RunAlg().

00114 {
00115   fXtalkFlag=flag;
00116 }


Member Data Documentation

Int_t HitAtNu::fPlaneView [private]
 

Definition at line 48 of file HitAtNu.h.

Int_t HitAtNu::fShwFlag [private]
 

Definition at line 46 of file HitAtNu.h.

Referenced by SetShwFlag().

CandStripHandle* HitAtNu::fStrip [private]
 

Definition at line 49 of file HitAtNu.h.

Referenced by GetCharge(), GetDigits(), GetPlane(), GetStrip(), GetTPos(), and GetZPos().

Double_t HitAtNu::fTime [private]
 

Definition at line 51 of file HitAtNu.h.

Int_t HitAtNu::fTrkFlag [private]
 

Definition at line 45 of file HitAtNu.h.

Referenced by SetTrkFlag().

Int_t HitAtNu::fUid [private]
 

Definition at line 50 of file HitAtNu.h.

Referenced by SetUID().

Int_t HitAtNu::fXtalkFlag [private]
 

Definition at line 47 of file HitAtNu.h.

Referenced by SetXtalkFlag().


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:01:29 2008 for loon by  doxygen 1.3.9.1