FairRoot/PandaRoot
Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
PndCANPlet Class Reference

#include <PndCANPlets.h>

Public Member Functions

 PndCANPlet ()
 
 PndCANPlet (const PndCATrackParam &param)
 
 PndCANPlet (const vector< PndCATESV > &ih, const int iV, const PndCATrackParam &param)
 
int N () const
 
const PndCATESIHit (int IH) const
 
int ISta (int IH) const
 
const PndCATrackParamParam () const
 
float QMomentum () const
 
float QMomentumErr () const
 
float QMomentumErr2 () const
 
char & Level ()
 
const char & Level () const
 
float & Chi2Level ()
 
const float & Chi2Level () const
 
const unsigned int & INeighbours (int i) const
 
const float & Chi2Neighbours (int i) const
 
unsigned int NNeighbours () const
 
vector< pair< float, unsigned
int > > & 
Neighbours ()
 
bool IsRightNeighbour (float pick, const PndCANPlet &a, float &chi2)
 

Static Public Member Functions

static bool compare (const PndCANPlet &i, const PndCANPlet &j)
 

Public Attributes

vector< PndCATESfIHit
 

Private Attributes

PndCATrackParam fParam
 
char fLevel
 
float fChi2Level
 
vector< pair< float, unsigned
int > > 
fNeighbours
 

Detailed Description

Definition at line 19 of file PndCANPlets.h.

Constructor & Destructor Documentation

PndCANPlet::PndCANPlet ( )
inline

Definition at line 21 of file PndCANPlets.h.

21 : fParam(), fLevel(-1), fChi2Level(0), fNeighbours(){}
vector< pair< float, unsigned int > > fNeighbours
Definition: PndCANPlets.h:79
char fLevel
Definition: PndCANPlets.h:77
float fChi2Level
Definition: PndCANPlets.h:78
PndCATrackParam fParam
Definition: PndCANPlets.h:75
PndCANPlet::PndCANPlet ( const PndCATrackParam param)
inline

Definition at line 22 of file PndCANPlets.h.

22  :
23  fParam(param), fLevel(0), fChi2Level(0), fNeighbours() {
24  }
vector< pair< float, unsigned int > > fNeighbours
Definition: PndCANPlets.h:79
char fLevel
Definition: PndCANPlets.h:77
float fChi2Level
Definition: PndCANPlets.h:78
PndCATrackParam fParam
Definition: PndCANPlets.h:75
PndCANPlet::PndCANPlet ( const vector< PndCATESV > &  ih,
const int  iV,
const PndCATrackParam param 
)
inline

Definition at line 25 of file PndCANPlets.h.

References fIHit, i, and N().

25  :
26  fParam(param), fLevel(0), fChi2Level(0), fNeighbours() {
27  fIHit.resize( ih.size() );
28 
29  for( int i=0; i < N(); i++)
30  fIHit[i] = ih[i][iV];
31  }
Int_t i
Definition: run_full.C:25
vector< pair< float, unsigned int > > fNeighbours
Definition: PndCANPlets.h:79
char fLevel
Definition: PndCANPlets.h:77
float fChi2Level
Definition: PndCANPlets.h:78
PndCATrackParam fParam
Definition: PndCANPlets.h:75
vector< PndCATES > fIHit
Definition: PndCANPlets.h:71
int N() const
Definition: PndCANPlets.h:33

Member Function Documentation

float& PndCANPlet::Chi2Level ( )
inline

Definition at line 48 of file PndCANPlets.h.

References fChi2Level.

Referenced by compare(), and PndCAGBTracker::FindNeighbours().

48 { return fChi2Level; };
float fChi2Level
Definition: PndCANPlets.h:78
const float& PndCANPlet::Chi2Level ( ) const
inline

Definition at line 49 of file PndCANPlets.h.

References fChi2Level.

49 { return fChi2Level; };
float fChi2Level
Definition: PndCANPlets.h:78
const float& PndCANPlet::Chi2Neighbours ( int  i) const
inline

Definition at line 52 of file PndCANPlets.h.

References fNeighbours, and i.

Referenced by PndCAGBTracker::FindNeighbours().

52 { return fNeighbours[i].first; };
Int_t i
Definition: run_full.C:25
vector< pair< float, unsigned int > > fNeighbours
Definition: PndCANPlets.h:79
static bool PndCANPlet::compare ( const PndCANPlet i,
const PndCANPlet j 
)
inlinestatic

Definition at line 69 of file PndCANPlets.h.

References Chi2Level(), and Level().

69 { return (i.Level() > j.Level()) || (i.Level() == j.Level() && i.Chi2Level() < j.Chi2Level()); }
char & Level()
Definition: PndCANPlets.h:45
float & Chi2Level()
Definition: PndCANPlets.h:48
const PndCATES& PndCANPlet::IHit ( int  IH) const
inline

Definition at line 35 of file PndCANPlets.h.

References fIHit.

Referenced by PndCAGBTracker::CreateTracks(), PndCAGBTracker::FindBestCandidate(), IsRightNeighbour(), and IsRightNeighbour().

35 { return fIHit[IH]; }
vector< PndCATES > fIHit
Definition: PndCANPlets.h:71
const unsigned int& PndCANPlet::INeighbours ( int  i) const
inline

Definition at line 51 of file PndCANPlets.h.

References fNeighbours, and i.

Referenced by PndCAGBTracker::FindBestCandidate().

51 { return fNeighbours[i].second; };
Int_t i
Definition: run_full.C:25
vector< pair< float, unsigned int > > fNeighbours
Definition: PndCANPlets.h:79
bool PndCANPlet::IsRightNeighbour ( float  pick,
const PndCANPlet a,
float &  chi2 
)
inline

Definition at line 57 of file PndCANPlets.h.

References fabs(), i, IHit(), N(), QMomentum(), QMomentumErr2(), and sqrt().

57  {
58  int start = (N() - a.N() < 0) ? 0 : N() - a.N();
59  for( int i = start; i < N() - 1; i++)
60  if ( IHit(i+1) != a.IHit(i) )
61  return false;
62  chi2 = fabs(QMomentum() - a.QMomentum())/sqrt(QMomentumErr2() + a.QMomentumErr2());
63  if ( chi2 > pick )
64  return false; // neighbours must have same qp
65  chi2 *= chi2;
66  return true;
67  }
Int_t i
Definition: run_full.C:25
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
float QMomentum() const
Definition: PndCANPlets.h:41
friend F32vec4 fabs(const F32vec4 &a)
Definition: P4_F32vec4.h:47
float QMomentumErr2() const
Definition: PndCANPlets.h:43
int N() const
Definition: PndCANPlets.h:33
const PndCATES & IHit(int IH) const
Definition: PndCANPlets.h:35
int PndCANPlet::ISta ( int  IH) const
inline

Definition at line 36 of file PndCANPlets.h.

References fIHit.

Referenced by PndCAGBTracker::CreateTracks(), PndCAGBTracker::FindBestCandidate(), and PndCAGBTracker::FindNeighbours().

36 { return fIHit[IH].s; }
vector< PndCATES > fIHit
Definition: PndCANPlets.h:71
char& PndCANPlet::Level ( )
inline

Definition at line 45 of file PndCANPlets.h.

References fLevel.

Referenced by compare(), PndCAGBTracker::CreateTracks(), PndCAGBTracker::FindBestCandidate(), and PndCAGBTracker::FindNeighbours().

45 { return fLevel; };
char fLevel
Definition: PndCANPlets.h:77
const char& PndCANPlet::Level ( ) const
inline

Definition at line 46 of file PndCANPlets.h.

References fLevel.

46 { return fLevel; };
char fLevel
Definition: PndCANPlets.h:77
int PndCANPlet::N ( ) const
inline

Definition at line 33 of file PndCANPlets.h.

References fIHit.

Referenced by PndCAGBTracker::CreateTracks(), PndCAGBTracker::FindBestCandidate(), IsRightNeighbour(), IsRightNeighbour(), and PndCANPlet().

33 { return fIHit.size(); }
vector< PndCATES > fIHit
Definition: PndCANPlets.h:71
vector< pair<float,unsigned int> >& PndCANPlet::Neighbours ( )
inline

Definition at line 54 of file PndCANPlets.h.

References fNeighbours.

Referenced by PndCAGBTracker::FindNeighbours().

54 { return fNeighbours; }
vector< pair< float, unsigned int > > fNeighbours
Definition: PndCANPlets.h:79
unsigned int PndCANPlet::NNeighbours ( ) const
inline

Definition at line 53 of file PndCANPlets.h.

References fNeighbours.

Referenced by PndCAGBTracker::FindBestCandidate(), and PndCAGBTracker::FindNeighbours().

53 { return fNeighbours.size(); };
vector< pair< float, unsigned int > > fNeighbours
Definition: PndCANPlets.h:79
const PndCATrackParam& PndCANPlet::Param ( ) const
inline

Definition at line 38 of file PndCANPlets.h.

References fParam.

Referenced by PndCAGBTracker::CreateTracks().

38 { return fParam; }
PndCATrackParam fParam
Definition: PndCANPlets.h:75
float PndCANPlet::QMomentum ( ) const
inline

Definition at line 41 of file PndCANPlets.h.

References fParam, and PndCATrackParam::QMomentum().

Referenced by PndCAGBTracker::FindBestCandidate(), IsRightNeighbour(), and IsRightNeighbour().

41 { return fParam.QMomentum(); }
PndCATrackParam fParam
Definition: PndCANPlets.h:75
float QMomentum() const
float PndCANPlet::QMomentumErr ( ) const
inline

Definition at line 42 of file PndCANPlets.h.

References PndCATrackParam::Err2QMomentum(), fParam, and sqrt().

Referenced by PndCAGBTracker::FindBestCandidate().

42 { return sqrt( fParam.Err2QMomentum() ); } // qp err
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
PndCATrackParam fParam
Definition: PndCANPlets.h:75
float Err2QMomentum() const
float PndCANPlet::QMomentumErr2 ( ) const
inline

Definition at line 43 of file PndCANPlets.h.

References PndCATrackParam::Err2QMomentum(), and fParam.

Referenced by IsRightNeighbour(), and IsRightNeighbour().

43 { return fParam.Err2QMomentum(); } // qp err^2
PndCATrackParam fParam
Definition: PndCANPlets.h:75
float Err2QMomentum() const

Member Data Documentation

float PndCANPlet::fChi2Level
private

Definition at line 78 of file PndCANPlets.h.

Referenced by Chi2Level().

vector<PndCATES> PndCANPlet::fIHit

Definition at line 71 of file PndCANPlets.h.

Referenced by IHit(), ISta(), N(), PndCANPlet(), and PndCANPlets::PndCANPlets().

char PndCANPlet::fLevel
private

Definition at line 77 of file PndCANPlets.h.

Referenced by Level().

vector< pair<float,unsigned int> > PndCANPlet::fNeighbours
private

Definition at line 79 of file PndCANPlets.h.

Referenced by Chi2Neighbours(), INeighbours(), Neighbours(), and NNeighbours().

PndCATrackParam PndCANPlet::fParam
private

Definition at line 75 of file PndCANPlets.h.

Referenced by Param(), QMomentum(), QMomentumErr(), and QMomentumErr2().


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