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

Detailed Description

Definition at line 10 of file HitAtNu.h.


Constructor & Destructor Documentation

HitAtNu::HitAtNu ( CandStripHandle strip  ) 

Definition at line 8 of file HitAtNu.cxx.

References PlaneView::kA, PlaneView::kB, PlaneView::kU, PlaneView::kV, PlaneView::kX, and PlaneView::kY.

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.

References fStrip.

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

00048 {
00049   return fStrip;
00050 }

Double_t HitAtNu::GetCharge (  )  const
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
Int_t HitAtNu::GetPlaneView (  )  const

Definition at line 52 of file HitAtNu.cxx.

References fPlaneView.

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

00053 {
00054   return fPlaneView;
00055 }

Int_t HitAtNu::GetShwFlag (  )  const
Int_t HitAtNu::GetStrip (  )  const
Double_t HitAtNu::GetTime (  )  const
Double_t HitAtNu::GetTPos (  )  const
Int_t HitAtNu::GetTrkFlag (  )  const

Definition at line 123 of file HitAtNu.cxx.

References fTrkFlag.

Referenced by AlgAtNuReco::RunAlg().

00124 {
00125   return fTrkFlag;
00126 }

Int_t HitAtNu::GetUID (  )  const

Definition at line 118 of file HitAtNu.cxx.

References fUid.

Referenced by AlgAtNuReco::RunAlg().

00119 {
00120   return fUid;
00121 }

Int_t HitAtNu::GetXtalkFlag (  )  const

Definition at line 133 of file HitAtNu.cxx.

References fXtalkFlag.

00134 {
00135   return fXtalkFlag;
00136 }

Double_t HitAtNu::GetZPos (  )  const
Int_t HitAtNu::IsDiffuseShwAssoc ( HitAtNu hit  )  const

Definition at line 165 of file HitAtNu.cxx.

References fStrip, 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 fStrip, 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.

Referenced by GetPlaneView().

Int_t HitAtNu::fShwFlag [private]

Definition at line 46 of file HitAtNu.h.

Referenced by GetShwFlag(), and SetShwFlag().

Double_t HitAtNu::fTime [private]

Definition at line 51 of file HitAtNu.h.

Referenced by GetTime().

Int_t HitAtNu::fTrkFlag [private]

Definition at line 45 of file HitAtNu.h.

Referenced by GetTrkFlag(), and SetTrkFlag().

Int_t HitAtNu::fUid [private]

Definition at line 50 of file HitAtNu.h.

Referenced by GetUID(), and SetUID().

Int_t HitAtNu::fXtalkFlag [private]

Definition at line 47 of file HitAtNu.h.

Referenced by GetXtalkFlag(), and SetXtalkFlag().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1