HitCamAtNu Class Reference

#include <HitCamAtNu.h>

List of all members.

Public Member Functions

 HitCamAtNu (CandStripHandle *strip)
virtual ~HitCamAtNu ()
CandStripHandleGetCandStripHandle () const
double GetCharge () const
void SetCharge (double q)
int GetPlane () const
void SetPlane (int Plane)
int GetPlaneView () const
void SetPlaneView (int View)
int GetStrip () const
void SetStrip (int strip)
double GetTime () const
double GetTPos () const
void SetTPos (double tpos)
int GetTrkFlag () const
void SetTrkFlag (int flag)
int GetShwFlag () const
void SetShwFlag (int flag)
int GetUID () const
void SetUID (int uid)
double GetZPos () const
void SetZPos (double zpos)
int IsDiffuseShwAssoc (HitCamAtNu *hit) const
int IsShwAssoc (HitCamAtNu *hit) const

Private Attributes

CandStripHandlefStrip
int fUid
int fPlaneView
int fStripNum
double fTime
int fTrackFlag
int fShowerFlag
double fCharge
int fPlane
double fTPos
double fZPos

Detailed Description

Definition at line 17 of file HitCamAtNu.h.


Constructor & Destructor Documentation

HitCamAtNu::HitCamAtNu ( CandStripHandle strip  ) 

Definition at line 20 of file HitCamAtNu.cxx.

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

00020                                              :
00021    fStrip(0), fUid(0), 
00022    fPlaneView(-1), fStripNum(-1), fTime(-999.), fTrackFlag(0), 
00023    fShowerFlag(0), fCharge(0.), fPlane(-1), fTPos(-1), fZPos(-1)
00024 {
00025   if(strip) {
00026     fStrip=strip;
00027     fTime=1.0e9*strip->GetTime();
00028     fStripNum = strip->GetStrip();
00029     fCharge = strip->GetCharge();
00030     fPlane = strip->GetPlane();
00031     fTPos = strip->GetTPos();
00032     fZPos = strip->GetZPos();
00033     
00034     if( strip->GetPlaneView()==PlaneView::kU
00035         || strip->GetPlaneView()==PlaneView::kX
00036         || strip->GetPlaneView()==PlaneView::kA ) {fPlaneView=0;}
00037     if( strip->GetPlaneView()==PlaneView::kV
00038         || strip->GetPlaneView()==PlaneView::kY
00039         || strip->GetPlaneView()==PlaneView::kB ) {fPlaneView=1;}
00040   }
00041   
00042 }

HitCamAtNu::~HitCamAtNu (  )  [virtual]

Definition at line 47 of file HitCamAtNu.cxx.

00048 {
00049 }


Member Function Documentation

CandStripHandle* HitCamAtNu::GetCandStripHandle (  )  const [inline]
double HitCamAtNu::GetCharge (  )  const [inline]
int HitCamAtNu::GetPlane (  )  const [inline]
int HitCamAtNu::GetPlaneView (  )  const [inline]
int HitCamAtNu::GetShwFlag (  )  const [inline]
int HitCamAtNu::GetStrip (  )  const [inline]
double HitCamAtNu::GetTime (  )  const [inline]

Definition at line 38 of file HitCamAtNu.h.

References fTime.

Referenced by ShowerCamAtNu::AddHit(), ClusterCamAtNu::AddHit(), IsDiffuseShwAssoc(), ClusterCamAtNu::IsHitAssoc(), and IsShwAssoc().

00038 {return fTime;};

double HitCamAtNu::GetTPos (  )  const [inline]
int HitCamAtNu::GetTrkFlag (  )  const [inline]

Definition at line 43 of file HitCamAtNu.h.

References fTrackFlag.

Referenced by AlgAtmosShowerList::FormVertexShowers().

00043 {return fTrackFlag;};

int HitCamAtNu::GetUID (  )  const [inline]

Definition at line 49 of file HitCamAtNu.h.

References fUid.

00049 {return fUid;};

double HitCamAtNu::GetZPos (  )  const [inline]
int HitCamAtNu::IsDiffuseShwAssoc ( HitCamAtNu hit  )  const

Definition at line 77 of file HitCamAtNu.cxx.

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

Referenced by AlgAtmosShowerList::FormVertexShowers(), and ShowerCamAtNu::IsDiffuseShwAssoc().

00078 {
00079   double win=99.9;
00080   if(fStrip!=0)
00081     {
00082       if( fabs(hit->GetTime()-this->GetTime())<win )
00083         {
00084           if( abs(hit->GetPlane()-this->GetPlane())<5 && abs(hit->GetStrip()-this->GetStrip())<11 )
00085             {
00086               return 2;
00087             }
00088           else if( abs(hit->GetPlane()-this->GetPlane())<9 && abs(hit->GetStrip()-this->GetStrip())<21 )
00089             {
00090               return 1;
00091             }
00092         }
00093     }
00094   return 0;
00095 }

int HitCamAtNu::IsShwAssoc ( HitCamAtNu hit  )  const

Definition at line 54 of file HitCamAtNu.cxx.

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

Referenced by AlgAtmosShowerList::FormVertexShowers(), and ShowerCamAtNu::IsShwAssoc().

00055 {
00056   double win=99.9;
00057   if(fStrip!=0)
00058     {
00059       if( fabs(hit->GetTime()-this->GetTime())<win )
00060         {
00061           if( abs(hit->GetPlane()-this->GetPlane())<3 && abs(hit->GetStrip()-this->GetStrip())<4 )
00062             {
00063               return 2;
00064             }
00065           else if( abs(hit->GetPlane()-this->GetPlane())<5 && abs(hit->GetStrip()-this->GetStrip())<6 )
00066             {
00067               return 1;
00068             }
00069         }
00070     }
00071   return 0;
00072 }

void HitCamAtNu::SetCharge ( double  q  )  [inline]

Definition at line 27 of file HitCamAtNu.h.

References fCharge.

00027 {fCharge=q;};

void HitCamAtNu::SetPlane ( int  Plane  )  [inline]

Definition at line 30 of file HitCamAtNu.h.

References fPlane.

00030 {fPlane = Plane;};

void HitCamAtNu::SetPlaneView ( int  View  )  [inline]

Definition at line 33 of file HitCamAtNu.h.

References fPlaneView.

00033 {fPlaneView = View;};

void HitCamAtNu::SetShwFlag ( int  flag  )  [inline]

Definition at line 47 of file HitCamAtNu.h.

References fShowerFlag.

Referenced by AlgAtmosShowerList::Form3DShowers(), and AlgAtmosShowerList::FormVertexShowers().

00047 { fShowerFlag=flag; };

void HitCamAtNu::SetStrip ( int  strip  )  [inline]

Definition at line 36 of file HitCamAtNu.h.

References fStripNum.

00036 {fStripNum = strip;};

void HitCamAtNu::SetTPos ( double  tpos  )  [inline]

Definition at line 41 of file HitCamAtNu.h.

References fTPos.

00041 {fTPos = tpos;};

void HitCamAtNu::SetTrkFlag ( int  flag  )  [inline]

Definition at line 44 of file HitCamAtNu.h.

References fTrackFlag.

00044 {fTrackFlag=flag;};

void HitCamAtNu::SetUID ( int  uid  )  [inline]

Definition at line 50 of file HitCamAtNu.h.

References fUid.

00050 {fUid=uid;};

void HitCamAtNu::SetZPos ( double  zpos  )  [inline]

Definition at line 53 of file HitCamAtNu.h.

References fZPos.

00053 {fZPos = zpos;};


Member Data Documentation

double HitCamAtNu::fCharge [private]

Definition at line 66 of file HitCamAtNu.h.

Referenced by GetCharge(), and SetCharge().

int HitCamAtNu::fPlane [private]

Definition at line 67 of file HitCamAtNu.h.

Referenced by GetPlane(), and SetPlane().

int HitCamAtNu::fPlaneView [private]

Definition at line 61 of file HitCamAtNu.h.

Referenced by GetPlaneView(), and SetPlaneView().

int HitCamAtNu::fShowerFlag [private]

Definition at line 65 of file HitCamAtNu.h.

Referenced by GetShwFlag(), and SetShwFlag().

Definition at line 59 of file HitCamAtNu.h.

Referenced by GetCandStripHandle(), IsDiffuseShwAssoc(), and IsShwAssoc().

int HitCamAtNu::fStripNum [private]

Definition at line 62 of file HitCamAtNu.h.

Referenced by GetStrip(), and SetStrip().

double HitCamAtNu::fTime [private]

Definition at line 63 of file HitCamAtNu.h.

Referenced by GetTime().

double HitCamAtNu::fTPos [private]

Definition at line 68 of file HitCamAtNu.h.

Referenced by GetTPos(), and SetTPos().

int HitCamAtNu::fTrackFlag [private]

Definition at line 64 of file HitCamAtNu.h.

Referenced by GetTrkFlag(), and SetTrkFlag().

int HitCamAtNu::fUid [private]

Definition at line 60 of file HitCamAtNu.h.

Referenced by GetUID(), and SetUID().

double HitCamAtNu::fZPos [private]

Definition at line 69 of file HitCamAtNu.h.

Referenced by GetZPos(), and SetZPos().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1