FairRoot/PandaRoot
Public Member Functions | Public Attributes | Friends | List of all members
PndCAHit Class Reference

#include <PndCAHits.h>

Public Member Functions

 PndCAHit ()
 
 PndCAHit (PndCAGBHit &h, int id)
 
char IStation () const
 
void SetId (int id)
 
int Id () const
 
float_v X1Corrected (float_v sinPhi) const
 
float X0 () const
 
float X1 () const
 
float X2 () const
 
float Err2X1 () const
 
float ErrX12 () const
 
float Err2X2 () const
 
float R () const
 
float DR () const
 
float U () const
 
float Err2R () const
 
float Err2A () const
 
bool IsLeft () const
 
int ISec () const
 
float Angle () const
 
bool IsUsed () const
 
void SetAsUsed ()
 

Public Attributes

char fIStation
 
int fId
 
float fX1
 
float fX2
 
float fX0
 
float fErr2X1
 
float fErrX12
 
float fErr2X2
 
float fR
 
float fErr2R
 
float fErr2A
 
float fU
 
float fDR
 
bool fIsLeft
 
int fISec
 
float fAngle
 
PndCAGBHitfCAHit
 

Friends

bool operator< (const PndCAHit &a, const PndCAHit &b)
 

Detailed Description

Definition at line 20 of file PndCAHits.h.

Constructor & Destructor Documentation

PndCAHit::PndCAHit ( )
inline

Definition at line 22 of file PndCAHits.h.

22 {}
PndCAHit::PndCAHit ( PndCAGBHit h,
int  id 
)
inline

Definition at line 23 of file PndCAHits.h.

References fX0, fX1, fX2, and PndCAGBHit::GetLocalX0X1X2().

23  :fIStation(h.IRow()), fId(id), fErr2X1(h.Err2X1()), fErrX12(h.ErrX12()), fErr2X2(h.Err2X2()),
24  fR(h.R()), fErr2R(h.Err2R()), fErr2A(h.Err2A()), fIsLeft(h.IsLeft()),
25  fAngle(h.Angle()), fCAHit( &h ) {
26  h.GetLocalX0X1X2( fX0, fX1, fX2 );
27  };
float fAngle
Definition: PndCAHits.h:78
float fErrX12
Definition: PndCAHits.h:69
int IRow() const
Definition: PndCAGBHit.h:57
float ErrX12() const
Definition: PndCAGBHit.h:54
PndCAGBHit * fCAHit
Definition: PndCAHits.h:80
int fId
Definition: PndCAHits.h:66
float Angle() const
Definition: PndCAGBHit.h:92
float Err2X2() const
Definition: PndCAGBHit.h:55
float fErr2R
Definition: PndCAHits.h:72
void GetLocalX0X1X2(float &x0, float &x1, float &x2) const
Definition: PndCAGBHit.cxx:27
char fIStation
Definition: PndCAHits.h:65
float fX2
Definition: PndCAHits.h:68
float fErr2A
Definition: PndCAHits.h:73
float fR
Definition: PndCAHits.h:71
float Err2A() const
Definition: PndCAGBHit.h:62
float fX1
Definition: PndCAHits.h:68
float fErr2X2
Definition: PndCAHits.h:69
float Err2R() const
Definition: PndCAGBHit.h:61
float fX0
Definition: PndCAHits.h:68
float R() const
Definition: PndCAGBHit.h:60
float fErr2X1
Definition: PndCAHits.h:69
bool fIsLeft
Definition: PndCAHits.h:75
float Err2X1() const
Definition: PndCAGBHit.h:53
bool IsLeft() const
Definition: PndCAGBHit.h:65

Member Function Documentation

float PndCAHit::Angle ( ) const
inline
float PndCAHit::DR ( ) const
inline

Definition at line 43 of file PndCAHits.h.

References fDR.

Referenced by PndCAGBTracker::CATrackFinder(), and PndCAHitV::PndCAHitV().

43 { return fDR; }
float fDR
Definition: PndCAHits.h:74
float PndCAHit::Err2A ( ) const
inline

Definition at line 46 of file PndCAHits.h.

References fErr2A.

Referenced by PndCAHitV::PndCAHitV().

46 { return fErr2A; }
float fErr2A
Definition: PndCAHits.h:73
float PndCAHit::Err2R ( ) const
inline

Definition at line 45 of file PndCAHits.h.

References fErr2R.

Referenced by PndCATrackParamVector::Accept(), PndCATrackParamVector::Filter(), and PndCAHitV::PndCAHitV().

45 { return fErr2R; }
float fErr2R
Definition: PndCAHits.h:72
float PndCAHit::Err2X1 ( ) const
inline
float PndCAHit::Err2X2 ( ) const
inline
float PndCAHit::ErrX12 ( ) const
inline

Definition at line 39 of file PndCAHits.h.

References fErrX12.

Referenced by PndCATrackParamVector::Accept(), PndCATrackParam::Filter(), PndCATrackParamVector::Filter(), and PndCAHitV::PndCAHitV().

39 { return fErrX12; }
float fErrX12
Definition: PndCAHits.h:69
int PndCAHit::Id ( ) const
inline

Definition at line 30 of file PndCAHits.h.

References fId.

Referenced by PndCAGBTracker::CATrackFinder(), and PndCAHitV::PndCAHitV().

30 { return fId; };
int fId
Definition: PndCAHits.h:66
int PndCAHit::ISec ( ) const
inline

Definition at line 49 of file PndCAHits.h.

References fISec.

Referenced by PndCAHitV::PndCAHitV().

49 { return fISec; }
int fISec
Definition: PndCAHits.h:76
bool PndCAHit::IsLeft ( ) const
inline

Definition at line 48 of file PndCAHits.h.

References fIsLeft.

Referenced by PndCAGBTracker::CATrackFinder(), and PndCAHitV::PndCAHitV().

48 { return fIsLeft; }
bool fIsLeft
Definition: PndCAHits.h:75
char PndCAHit::IStation ( ) const
inline
bool PndCAHit::IsUsed ( ) const
inline

Definition at line 53 of file PndCAHits.h.

References fCAHit, and PndCAGBHit::IsUsed().

Referenced by PndCATrack::NUsedHits(), and PndCAHitV::PndCAHitV().

53 { return fCAHit->IsUsed();}
PndCAGBHit * fCAHit
Definition: PndCAHits.h:80
bool IsUsed() const
Definition: PndCAGBHit.h:129
float PndCAHit::R ( ) const
inline

Definition at line 42 of file PndCAHits.h.

References fR.

Referenced by PndCAGBTracker::CATrackFinder(), and PndCAHitV::PndCAHitV().

42 { return fR; }
float fR
Definition: PndCAHits.h:71
void PndCAHit::SetAsUsed ( )
inline

Definition at line 54 of file PndCAHits.h.

References fCAHit, and PndCAGBHit::SetAsUsed().

Referenced by PndCATrack::SetHitsAsUsed().

54 { fCAHit->SetAsUsed(); }
PndCAGBHit * fCAHit
Definition: PndCAHits.h:80
void SetAsUsed()
Definition: PndCAGBHit.h:130
void PndCAHit::SetId ( int  id)
inline

Definition at line 29 of file PndCAHits.h.

References fId.

29 { fId = id; }
int fId
Definition: PndCAHits.h:66
float PndCAHit::U ( ) const
inline

Definition at line 44 of file PndCAHits.h.

References fU.

Referenced by PndCAGBTracker::CATrackFinder(), and PndCAHitV::PndCAHitV().

44 { return fU; }
float fU
Definition: PndCAHits.h:74
float PndCAHit::X0 ( ) const
inline
float PndCAHit::X1 ( ) const
inline
float_v PndCAHit::X1Corrected ( float_v  sinPhi) const
inline

Definition at line 84 of file PndCAHits.h.

References fIsLeft, fR, fX1, and rsqrt().

Referenced by PndCATrackParamVector::Accept(), and PndCATrackParamVector::Filter().

84  {
85  const float_v xCorr = fR - fR*rsqrt( 1 - sinPhi*sinPhi );
86  // xCorr /= cos(3.f/180.f*3.141592); // currently neglect stereo angle
87  return (fIsLeft) ? fX1 + xCorr : fX1 - xCorr;
88 }
friend F32vec4 rsqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:32
float fR
Definition: PndCAHits.h:71
float fX1
Definition: PndCAHits.h:68
bool fIsLeft
Definition: PndCAHits.h:75
float PndCAHit::X2 ( ) const
inline

Friends And Related Function Documentation

bool operator< ( const PndCAHit a,
const PndCAHit b 
)
friend

Definition at line 57 of file PndCAHits.h.

57  {
59  return (a.Angle() < b.Angle()) || ((a.Angle() == b.Angle()) && (a.X1() < b.X1()));
60  else
61  return a.X2()/abs(a.X0()) < b.X2()/abs(b.X0()); // check why x0 < 0 is possible
62  }
float Angle() const
Definition: PndCAHits.h:51
float X0() const
Definition: PndCAHits.h:34
float X2() const
Definition: PndCAHits.h:36
float X1() const
Definition: PndCAHits.h:35
char fIStation
Definition: PndCAHits.h:65

Member Data Documentation

float PndCAHit::fAngle

Definition at line 78 of file PndCAHits.h.

Referenced by Angle(), and PndCAGBTracker::CATrackFinder().

PndCAGBHit* PndCAHit::fCAHit

Definition at line 80 of file PndCAHits.h.

Referenced by IsUsed(), and SetAsUsed().

float PndCAHit::fDR

Definition at line 74 of file PndCAHits.h.

Referenced by PndCAGBTracker::CATrackFinder(), and DR().

float PndCAHit::fErr2A

Definition at line 73 of file PndCAHits.h.

Referenced by Err2A().

float PndCAHit::fErr2R

Definition at line 72 of file PndCAHits.h.

Referenced by Err2R().

float PndCAHit::fErr2X1

Definition at line 69 of file PndCAHits.h.

Referenced by Err2X1().

float PndCAHit::fErr2X2

Definition at line 69 of file PndCAHits.h.

Referenced by Err2X2().

float PndCAHit::fErrX12

Definition at line 69 of file PndCAHits.h.

Referenced by ErrX12().

int PndCAHit::fId

Definition at line 66 of file PndCAHits.h.

Referenced by Id(), and SetId().

int PndCAHit::fISec

Definition at line 76 of file PndCAHits.h.

Referenced by PndCAGBTracker::CATrackFinder(), ISec(), and PndCAGBTracker::PickUpHits().

bool PndCAHit::fIsLeft

Definition at line 75 of file PndCAHits.h.

Referenced by PndCAGBTracker::CATrackFinder(), IsLeft(), and X1Corrected().

char PndCAHit::fIStation

Definition at line 65 of file PndCAHits.h.

Referenced by IStation().

float PndCAHit::fR

Definition at line 71 of file PndCAHits.h.

Referenced by PndCAGBTracker::CATrackFinder(), R(), and X1Corrected().

float PndCAHit::fU

Definition at line 74 of file PndCAHits.h.

Referenced by PndCAGBTracker::CATrackFinder(), and U().

float PndCAHit::fX0

Definition at line 68 of file PndCAHits.h.

Referenced by PndCAHit(), and X0().

float PndCAHit::fX1

Definition at line 68 of file PndCAHits.h.

Referenced by PndCAGBTracker::CATrackFinder(), PndCAHit(), X1(), and X1Corrected().

float PndCAHit::fX2

Definition at line 68 of file PndCAHits.h.

Referenced by PndCAHit(), and X2().


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