FairRoot/PandaRoot
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
PndFTSCALocalMCPoint Class Reference

#include <PndFTSCAMCPoint.h>

Public Member Functions

 PndFTSCALocalMCPoint ()
 
 ~PndFTSCALocalMCPoint ()
 
void SetPoint (PndFtsPoint *ppp, Double_t qq)
 
PndFTSCALocalMCPointoperator= (const PndFTSCALocalMCPoint &rhs)
 
float X () const
 
float Y () const
 
float Z () const
 
float Px () const
 
float Py () const
 
float Pz () const
 
float QP () const
 
int ISlice () const
 
int IRow () const
 
int TrackI () const
 
int TrackID () const
 
float Angle () const
 
float Err2Z () const
 
float Err2Y () const
 
void SetX (float v)
 
void SetY (float v)
 
void SetZ (float v)
 
void SetPx (float v)
 
void SetPy (float v)
 
void SetPz (float v)
 
void SetQP (float v)
 
void SetISlice (int v)
 
void SetIRow (int v)
 
void SetTrackI (int v)
 
void SetTrackID (int v)
 
void SetAngle (float v)
 
void SetErr2Z (float v)
 
void SetErr2Y (float v)
 
void RotateXY (float alpha)
 

Static Public Member Functions

static bool Compare (const PndFTSCALocalMCPoint &p1, const PndFTSCALocalMCPoint &p2)
 

Public Attributes

std::vector< int > fHits
 

Protected Attributes

float fX
 
float fY
 
float fZ
 
float fPx
 
float fPy
 
float fPz
 
float fQP
 
float fAngle
 
float fErr2Z
 
float fErr2Y
 
int fISlice
 
int fIRow
 
int fTrackI
 
int fTrackID
 

Friends

ostream & operator<< (ostream &out, const PndFTSCALocalMCPoint &a)
 
istream & operator>> (istream &in, PndFTSCALocalMCPoint &a)
 

Detailed Description

store MC point information for PndFTSCAPerformance

Definition at line 73 of file PndFTSCAMCPoint.h.

Constructor & Destructor Documentation

PndFTSCALocalMCPoint::PndFTSCALocalMCPoint ( )
inline

Definition at line 77 of file PndFTSCAMCPoint.h.

77 {};
PndFTSCALocalMCPoint::~PndFTSCALocalMCPoint ( )
inline

Definition at line 78 of file PndFTSCAMCPoint.h.

78 {};

Member Function Documentation

float PndFTSCALocalMCPoint::Angle ( ) const
inline

Definition at line 95 of file PndFTSCAMCPoint.h.

References fAngle.

Referenced by PndFTSCADisplay::DrawGBPoints().

95 { return fAngle; }
static bool PndFTSCALocalMCPoint::Compare ( const PndFTSCALocalMCPoint p1,
const PndFTSCALocalMCPoint p2 
)
inlinestatic

Definition at line 117 of file PndFTSCAMCPoint.h.

References fTrackID.

117  {
118  return ( p1.fTrackID < p2.fTrackID );
119  }
float PndFTSCALocalMCPoint::Err2Y ( ) const
inline

Definition at line 97 of file PndFTSCAMCPoint.h.

References fErr2Y.

97 { return fErr2Y; }
float PndFTSCALocalMCPoint::Err2Z ( ) const
inline

Definition at line 96 of file PndFTSCAMCPoint.h.

References fErr2Z.

96 { return fErr2Z; }
int PndFTSCALocalMCPoint::IRow ( ) const
inline

Definition at line 91 of file PndFTSCAMCPoint.h.

References fIRow.

Referenced by PndFTSCADisplay::DrawGBPoints(), and operator=().

91 { return fIRow; }
int PndFTSCALocalMCPoint::ISlice ( ) const
inline

Definition at line 90 of file PndFTSCAMCPoint.h.

References fISlice.

90 { return fISlice; }
PndFTSCALocalMCPoint & PndFTSCALocalMCPoint::operator= ( const PndFTSCALocalMCPoint rhs)

Definition at line 65 of file PndFTSCAMCPoint.cxx.

References fIRow, fISlice, fPx, fPy, fPz, fQP, fTrackI, fTrackID, fX, fY, fZ, IRow(), Px(), Py(), Pz(), QP(), TrackI(), TrackID(), X(), Y(), and Z().

66 {
67  fX = rhs.X();
68  fY = rhs.Y();
69  fZ = rhs.Z();
70  fPx = rhs.Px();
71  fPy = rhs.Py();
72  fPz = rhs.Pz();
73  fQP = rhs.QP();
74  fISlice = 0;
75  fIRow = rhs.IRow();
76  fTrackI = rhs.TrackI();
77  fTrackID = rhs.TrackID();
78 
79  return *this;
80 }
float PndFTSCALocalMCPoint::Px ( ) const
inline

Definition at line 86 of file PndFTSCAMCPoint.h.

References fPx.

Referenced by operator=(), and RotateXY().

86 { return fPx; }
float PndFTSCALocalMCPoint::Py ( ) const
inline

Definition at line 87 of file PndFTSCAMCPoint.h.

References fPy.

Referenced by operator=(), and RotateXY().

87 { return fPy; }
float PndFTSCALocalMCPoint::Pz ( ) const
inline

Definition at line 88 of file PndFTSCAMCPoint.h.

References fPz.

Referenced by operator=().

88 { return fPz; }
float PndFTSCALocalMCPoint::QP ( ) const
inline

Definition at line 89 of file PndFTSCAMCPoint.h.

References fQP.

Referenced by operator=().

89 { return fQP; }
void PndFTSCALocalMCPoint::RotateXY ( float  alpha)

Definition at line 82 of file PndFTSCAMCPoint.cxx.

References CAMath::Cos(), Px(), Py(), SetPx(), SetPy(), SetX(), SetY(), CAMath::Sin(), X(), x, Y(), and y.

82  {
83  const float cA = CAMath::Cos( alpha );
84  const float sA = CAMath::Sin( alpha );
85  {
86  const float x = X(), y = Y();
87  SetX( x*cA + y*sA );
88  SetY( -x*sA + y*cA );
89  }
90  {
91  const float x = Px(), y = Py();
92  SetPx( x*cA + y*sA );
93  SetPy( -x*sA + y*cA );
94  }
95 }
static T Sin(const T &x)
Definition: PndCAMath.h:42
static T Cos(const T &x)
Definition: PndCAMath.h:43
Double_t x
Double_t y
double alpha
Definition: f_Init.h:9
void PndFTSCALocalMCPoint::SetAngle ( float  v)
inline

Definition at line 111 of file PndFTSCAMCPoint.h.

References fAngle, and v.

111 { fAngle = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetErr2Y ( float  v)
inline

Definition at line 113 of file PndFTSCAMCPoint.h.

References fErr2Y, and v.

113 { fErr2Y = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetErr2Z ( float  v)
inline

Definition at line 112 of file PndFTSCAMCPoint.h.

References fErr2Z, and v.

112 { fErr2Z = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetIRow ( int  v)
inline

Definition at line 107 of file PndFTSCAMCPoint.h.

References fIRow, and v.

107 { fIRow = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetISlice ( int  v)
inline

Definition at line 106 of file PndFTSCAMCPoint.h.

References fISlice, and v.

106 { fISlice = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetPoint ( PndFtsPoint ppp,
Double_t  qq 
)

Definition at line 49 of file PndFTSCAMCPoint.cxx.

References fIRow, fISlice, fPx, fPy, fPz, fQP, fTrackI, fTrackID, fX, fY, fZ, PndFtsPoint::GetLayerID(), and sqrt().

Referenced by PndFtsCATracking::Exec().

50 {
51  fX = ppp->GetX();
52  fY = ppp->GetY();
53  fZ = ppp->GetZ();
54  fPx = ppp->GetPx();
55  fPy = ppp->GetPy();
56  fPz = ppp->GetPz();
57  fQP = qq/sqrt( fPx*fPx + fPy*fPy + fPz*fPz );
58  fISlice = 0;
59  //std::cout<<"ppp->GetLayerID() "<<ppp->GetLayerID()<<std::endl;
60  fIRow = ppp->GetLayerID();
61  fTrackI = ppp->GetTrackID();
62  fTrackID = ppp->GetTrackID();
63 }
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
Int_t GetLayerID()
Definition: PndFtsPoint.h:90
void PndFTSCALocalMCPoint::SetPx ( float  v)
inline

Definition at line 102 of file PndFTSCAMCPoint.h.

References fPx, and v.

Referenced by RotateXY().

102 { fPx = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetPy ( float  v)
inline

Definition at line 103 of file PndFTSCAMCPoint.h.

References fPy, and v.

Referenced by RotateXY().

103 { fPy = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetPz ( float  v)
inline

Definition at line 104 of file PndFTSCAMCPoint.h.

References fPz, and v.

104 { fPz = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetQP ( float  v)
inline

Definition at line 105 of file PndFTSCAMCPoint.h.

References fQP, and v.

105 { fQP = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetTrackI ( int  v)
inline

Definition at line 108 of file PndFTSCAMCPoint.h.

References fTrackI, and v.

108 { fTrackI = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetTrackID ( int  v)
inline

Definition at line 109 of file PndFTSCAMCPoint.h.

References fTrackID, and v.

109 { fTrackID = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetX ( float  v)
inline

Definition at line 99 of file PndFTSCAMCPoint.h.

References fX, and v.

Referenced by RotateXY().

99 { fX = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetY ( float  v)
inline

Definition at line 100 of file PndFTSCAMCPoint.h.

References fY, and v.

Referenced by RotateXY().

100 { fY = v; }
__m128 v
Definition: P4_F32vec4.h:4
void PndFTSCALocalMCPoint::SetZ ( float  v)
inline

Definition at line 101 of file PndFTSCAMCPoint.h.

References fZ, and v.

101 { fZ = v; }
__m128 v
Definition: P4_F32vec4.h:4
int PndFTSCALocalMCPoint::TrackI ( ) const
inline

Definition at line 92 of file PndFTSCAMCPoint.h.

References fTrackI.

Referenced by operator=().

92 { return fTrackI; }
int PndFTSCALocalMCPoint::TrackID ( ) const
inline

Definition at line 93 of file PndFTSCAMCPoint.h.

References fTrackID.

Referenced by operator=().

93 { return fTrackID; }
float PndFTSCALocalMCPoint::X ( ) const
inline

Definition at line 83 of file PndFTSCAMCPoint.h.

References fX.

Referenced by PndFTSCADisplay::DrawGBPoints(), PndFTSCADisplay::DrawMCTrack(), PndFTSCAGBTracker::FitTracks(), operator=(), and RotateXY().

83 { return fX; } // global coordinates
float PndFTSCALocalMCPoint::Y ( ) const
inline
float PndFTSCALocalMCPoint::Z ( ) const
inline

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
const PndFTSCALocalMCPoint a 
)
friend

Definition at line 32 of file PndFTSCAMCPoint.cxx.

33 {
34  out << a.fX << " " << a.fY << " " << a.fZ << std::endl;
35  out << a.fPx << " " << a.fPy << " " << a.fPz << " " << a.fQP << std::endl;
36  out << a.fISlice << " " << a.fIRow << " " << a.fTrackI << " " << a.fTrackID << std::endl;
37  return out;
38 }
TFile * out
Definition: reco_muo.C:20
istream& operator>> ( istream &  in,
PndFTSCALocalMCPoint a 
)
friend

Definition at line 41 of file PndFTSCAMCPoint.cxx.

Member Data Documentation

float PndFTSCALocalMCPoint::fAngle
protected

Definition at line 135 of file PndFTSCAMCPoint.h.

Referenced by Angle(), and SetAngle().

float PndFTSCALocalMCPoint::fErr2Y
protected

Definition at line 136 of file PndFTSCAMCPoint.h.

Referenced by Err2Y(), and SetErr2Y().

float PndFTSCALocalMCPoint::fErr2Z
protected

Definition at line 136 of file PndFTSCAMCPoint.h.

Referenced by Err2Z(), and SetErr2Z().

std::vector<int> PndFTSCALocalMCPoint::fHits

Definition at line 142 of file PndFTSCAMCPoint.h.

int PndFTSCALocalMCPoint::fIRow
protected

Definition at line 138 of file PndFTSCAMCPoint.h.

Referenced by IRow(), operator<<(), operator=(), operator>>(), SetIRow(), and SetPoint().

int PndFTSCALocalMCPoint::fISlice
protected

Definition at line 137 of file PndFTSCAMCPoint.h.

Referenced by ISlice(), operator<<(), operator=(), operator>>(), SetISlice(), and SetPoint().

float PndFTSCALocalMCPoint::fPx
protected

Definition at line 130 of file PndFTSCAMCPoint.h.

Referenced by operator<<(), operator=(), operator>>(), Px(), SetPoint(), and SetPx().

float PndFTSCALocalMCPoint::fPy
protected

Definition at line 131 of file PndFTSCAMCPoint.h.

Referenced by operator<<(), operator=(), operator>>(), Py(), SetPoint(), and SetPy().

float PndFTSCALocalMCPoint::fPz
protected

Definition at line 132 of file PndFTSCAMCPoint.h.

Referenced by operator<<(), operator=(), operator>>(), Pz(), SetPoint(), and SetPz().

float PndFTSCALocalMCPoint::fQP
protected

Definition at line 133 of file PndFTSCAMCPoint.h.

Referenced by operator<<(), operator=(), operator>>(), QP(), SetPoint(), and SetQP().

int PndFTSCALocalMCPoint::fTrackI
protected

Definition at line 139 of file PndFTSCAMCPoint.h.

Referenced by operator<<(), operator=(), operator>>(), SetPoint(), SetTrackI(), and TrackI().

int PndFTSCALocalMCPoint::fTrackID
protected
float PndFTSCALocalMCPoint::fX
protected

Definition at line 127 of file PndFTSCAMCPoint.h.

Referenced by operator<<(), operator=(), operator>>(), SetPoint(), SetX(), and X().

float PndFTSCALocalMCPoint::fY
protected

Definition at line 128 of file PndFTSCAMCPoint.h.

Referenced by operator<<(), operator=(), operator>>(), SetPoint(), SetY(), and Y().

float PndFTSCALocalMCPoint::fZ
protected

Definition at line 129 of file PndFTSCAMCPoint.h.

Referenced by operator<<(), operator=(), operator>>(), SetPoint(), SetZ(), and Z().


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