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

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


Constructor & Destructor Documentation

HitCamAtNu::HitCamAtNu CandStripHandle strip  ) 
 

Definition at line 20 of file HitCamAtNu.cxx.

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]
 

Definition at line 24 of file HitCamAtNu.h.

Referenced by ClusterCamAtNu::AddHit(), AlgShowerCam::CalculateShowerEnergy(), AlgShowerCam::ExtractHitProperties(), and AlgShowerCam::SetupTimingInfo().

00024 {return fStrip;};

double HitCamAtNu::GetCharge  )  const [inline]
 

Definition at line 26 of file HitCamAtNu.h.

Referenced by ClusterCamAtNu::AddHit(), AlgShowerCam::DetermineDirection(), AlgShowerCam::ExtractHitProperties(), AlgShowerCam::FindShowerVertex(), AlgAtmosShowerList::FormVertexShowers(), and TrackSegmentCamAtNu::GetScore().

00026 {return fCharge;};  

int HitCamAtNu::GetPlane  )  const [inline]
 

Definition at line 29 of file HitCamAtNu.h.

Referenced by TrackCamAtNu::AddHit(), ShowerCamAtNu::AddHit(), ClusterCamAtNu::AddHit(), AlgShowerCam::ExtractHitProperties(), AlgShowerCam::FindShowerVertex(), AlgAtmosShowerList::FormDummyTracks(), AlgAtmosShowerList::FormVertexShowers(), ShowerCamAtNu::GetBegStrip(), TrackCamAtNu::GetBegTPos(), TrackCamAtNu::GetDir(), ShowerCamAtNu::GetEndStrip(), TrackCamAtNu::GetEndTPos(), IsDiffuseShwAssoc(), ClusterCamAtNu::IsHitAssoc(), and IsShwAssoc().

00029 {return fPlane;};

int HitCamAtNu::GetPlaneView  )  const [inline]
 

Definition at line 32 of file HitCamAtNu.h.

Referenced by TrackCamAtNu::AddHit(), ClusterCamAtNu::AddHit(), AlgShowerCam::DetermineDirection(), AlgShowerCam::ExtractHitProperties(), and AlgAtmosShowerList::FormVertexShowers().

00032 {return fPlaneView;};

int HitCamAtNu::GetShwFlag  )  const [inline]
 

Definition at line 46 of file HitCamAtNu.h.

Referenced by AlgShowerCam::DetermineDirection(), AlgShowerCam::FindShowerVertex(), and AlgAtmosShowerList::FormVertexShowers().

00046 { return fShowerFlag; };

int HitCamAtNu::GetStrip  )  const [inline]
 

Definition at line 35 of file HitCamAtNu.h.

Referenced by ClusterCamAtNu::AddHit(), AlgAtmosShowerList::FormVertexShowers(), ShowerSegmentCamAtNu::GetBegStrip(), ShowerCamAtNu::GetBegStrip(), ShowerSegmentCamAtNu::GetEndStrip(), ShowerCamAtNu::GetEndStrip(), IsDiffuseShwAssoc(), and IsShwAssoc().

00035 {return fStripNum;};

double HitCamAtNu::GetTime  )  const [inline]
 

Definition at line 38 of file HitCamAtNu.h.

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

00038 {return fTime;};

double HitCamAtNu::GetTPos  )  const [inline]
 

Definition at line 40 of file HitCamAtNu.h.

Referenced by ClusterCamAtNu::AddHit(), AlgShowerCam::DetermineDirection(), AlgShowerCam::ExtractHitProperties(), TrackSegmentCamAtNu::GetBegDir(), ShowerSegmentCamAtNu::GetBegDir(), TrackSegmentCamAtNu::GetBegTPos(), TrackCamAtNu::GetBegTPos(), ShowerSegmentCamAtNu::GetBegTPos(), TrackCamAtNu::GetDir(), TrackSegmentCamAtNu::GetEndDir(), ShowerSegmentCamAtNu::GetEndDir(), TrackSegmentCamAtNu::GetEndTPos(), TrackCamAtNu::GetEndTPos(), ShowerSegmentCamAtNu::GetEndTPos(), TrackSegmentCamAtNu::GetScore(), and ClusterCamAtNu::IsHitAssoc().

00040 {return fTPos;};

int HitCamAtNu::GetTrkFlag  )  const [inline]
 

Definition at line 43 of file HitCamAtNu.h.

Referenced by AlgAtmosShowerList::FormVertexShowers().

00043 {return fTrackFlag;};

int HitCamAtNu::GetUID  )  const [inline]
 

Definition at line 49 of file HitCamAtNu.h.

00049 {return fUid;};

double HitCamAtNu::GetZPos  )  const [inline]
 

Definition at line 52 of file HitCamAtNu.h.

Referenced by TrackCamAtNu::AddHit(), ClusterCamAtNu::AddHit(), AlgShowerCam::DetermineDirection(), AlgShowerCam::ExtractHitProperties(), TrackSegmentCamAtNu::GetBegDir(), ShowerSegmentCamAtNu::GetBegDir(), TrackCamAtNu::GetDir(), TrackSegmentCamAtNu::GetEndDir(), ShowerSegmentCamAtNu::GetEndDir(), and TrackSegmentCamAtNu::GetScore().

00052 {return fZPos;};

int HitCamAtNu::IsDiffuseShwAssoc HitCamAtNu hit  )  const
 

Definition at line 77 of file HitCamAtNu.cxx.

References abs(), 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 abs(), 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.

00027 {fCharge=q;};

void HitCamAtNu::SetPlane int  Plane  )  [inline]
 

Definition at line 30 of file HitCamAtNu.h.

00030 {fPlane = Plane;};

void HitCamAtNu::SetPlaneView int  View  )  [inline]
 

Definition at line 33 of file HitCamAtNu.h.

00033 {fPlaneView = View;};

void HitCamAtNu::SetShwFlag int  flag  )  [inline]
 

Definition at line 47 of file HitCamAtNu.h.

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

00047 { fShowerFlag=flag; };

void HitCamAtNu::SetStrip int  strip  )  [inline]
 

Definition at line 36 of file HitCamAtNu.h.

00036 {fStripNum = strip;};

void HitCamAtNu::SetTPos double  tpos  )  [inline]
 

Definition at line 41 of file HitCamAtNu.h.

00041 {fTPos = tpos;};

void HitCamAtNu::SetTrkFlag int  flag  )  [inline]
 

Definition at line 44 of file HitCamAtNu.h.

Referenced by AlgAtmosShowerList::FormDummyTracks().

00044 {fTrackFlag=flag;};

void HitCamAtNu::SetUID int  uid  )  [inline]
 

Definition at line 50 of file HitCamAtNu.h.

00050 {fUid=uid;};

void HitCamAtNu::SetZPos double  zpos  )  [inline]
 

Definition at line 53 of file HitCamAtNu.h.

00053 {fZPos = zpos;};


Member Data Documentation

double HitCamAtNu::fCharge [private]
 

Definition at line 66 of file HitCamAtNu.h.

int HitCamAtNu::fPlane [private]
 

Definition at line 67 of file HitCamAtNu.h.

int HitCamAtNu::fPlaneView [private]
 

Definition at line 61 of file HitCamAtNu.h.

int HitCamAtNu::fShowerFlag [private]
 

Definition at line 65 of file HitCamAtNu.h.

CandStripHandle* HitCamAtNu::fStrip [private]
 

Definition at line 59 of file HitCamAtNu.h.

Referenced by IsDiffuseShwAssoc(), and IsShwAssoc().

int HitCamAtNu::fStripNum [private]
 

Definition at line 62 of file HitCamAtNu.h.

double HitCamAtNu::fTime [private]
 

Definition at line 63 of file HitCamAtNu.h.

double HitCamAtNu::fTPos [private]
 

Definition at line 68 of file HitCamAtNu.h.

int HitCamAtNu::fTrackFlag [private]
 

Definition at line 64 of file HitCamAtNu.h.

int HitCamAtNu::fUid [private]
 

Definition at line 60 of file HitCamAtNu.h.

double HitCamAtNu::fZPos [private]
 

Definition at line 69 of file HitCamAtNu.h.


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:09:17 2010 for loon by  doxygen 1.3.9.1