BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
VertexFit Class Reference

#include <VertexFit.h>

Inheritance diagram for VertexFit:

Public Member Functions

 ~VertexFit ()
void init ()
void AddVertex (int number, VertexParameter vpar, std::vector< int > lis)
void AddVertex (int number, VertexParameter vpar, int n1, int n2)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11, int n12)
void AddBeamFit (int number, VertexParameter vpar, int n)
void BuildVirtualParticle (int number)
void setIterNumber (const int niter=10)
void setChisqCut (const double chicut=1000, const double chiter=1.0e-3)
void setMagCorrFactor (const double factor=1.000)
double factor () const
bool Fit ()
bool Fit (int n)
bool BeamFit (int n)
void Swim (int n)
double chisq () const
double chisq (int n) const
bool pull (int n, int itk, HepVector &p)
HepLorentzVector pfit (int n) const
HepPoint3D xfit (int n) const
HepVector w (int n) const
HepSymMatrix Ew (int n) const
WTrackParameter wtrk (int n) const
HepVector cpu () const
HepPoint3D vx (int n) const
HepVector Vx (int n) const
HepSymMatrix Evx (int n) const
double errorVx (int n, int i) const
VertexParameter vpar (int n) const
WTrackParameter wVirtualTrack (int n) const
 ~VertexFit ()
void init ()
void AddVertex (int number, VertexParameter vpar, std::vector< int > lis)
void AddVertex (int number, VertexParameter vpar, int n1, int n2)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11, int n12)
void AddBeamFit (int number, VertexParameter vpar, int n)
void BuildVirtualParticle (int number)
void setIterNumber (const int niter=10)
void setChisqCut (const double chicut=1000, const double chiter=1.0e-3)
void setMagCorrFactor (const double factor=1.000)
double factor () const
bool Fit ()
bool Fit (int n)
bool BeamFit (int n)
void Swim (int n)
double chisq () const
double chisq (int n) const
bool pull (int n, int itk, HepVector &p)
HepLorentzVector pfit (int n) const
HepPoint3D xfit (int n) const
HepVector w (int n) const
HepSymMatrix Ew (int n) const
WTrackParameter wtrk (int n) const
HepVector cpu () const
HepPoint3D vx (int n) const
HepVector Vx (int n) const
HepSymMatrix Evx (int n) const
double errorVx (int n, int i) const
VertexParameter vpar (int n) const
WTrackParameter wVirtualTrack (int n) const
 ~VertexFit ()
void init ()
void AddVertex (int number, VertexParameter vpar, std::vector< int > lis)
void AddVertex (int number, VertexParameter vpar, int n1, int n2)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11)
void AddVertex (int number, VertexParameter vpar, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11, int n12)
void AddBeamFit (int number, VertexParameter vpar, int n)
void BuildVirtualParticle (int number)
void setIterNumber (const int niter=10)
void setChisqCut (const double chicut=1000, const double chiter=1.0e-3)
void setMagCorrFactor (const double factor=1.000)
double factor () const
bool Fit ()
bool Fit (int n)
bool BeamFit (int n)
void Swim (int n)
double chisq () const
double chisq (int n) const
bool pull (int n, int itk, HepVector &p)
HepLorentzVector pfit (int n) const
HepPoint3D xfit (int n) const
HepVector w (int n) const
HepSymMatrix Ew (int n) const
WTrackParameter wtrk (int n) const
HepVector cpu () const
HepPoint3D vx (int n) const
HepVector Vx (int n) const
HepSymMatrix Evx (int n) const
double errorVx (int n, int i) const
VertexParameter vpar (int n) const
WTrackParameter wVirtualTrack (int n) const
Public Member Functions inherited from TrackPool
 TrackPool ()
 ~TrackPool ()
void AddTrack (const int number, const double mass, const RecMdcTrack *trk)
void AddTrack (const int number, const double mass, const RecMdcKalTrack *trk)
void AddTrack (const int number, const double mass, const RecEmcShower *trk)
void AddTrack (const int number, const WTrackParameter wtrk)
void AddMissTrack (const int number, const double mass)
void AddMissTrack (const int number, const double mass, const HepLorentzVector p4)
void AddMissTrack (const int number, const double mass, const RecEmcShower *trk)
void AddMissTrack (const int number, const RecEmcShower *trk)
void AddMissTrack (const int number, const HepLorentzVector p4)
void AddTrackVertex (const int number, const double mass, const RecEmcShower *trk)
std::vector< int > AddList (int n1)
std::vector< int > AddList (int n1, int n2)
std::vector< int > AddList (int n1, int n2, int n3)
std::vector< int > AddList (int n1, int n2, int n3, int n4)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11, int n12)
std::vector< WTrackParameterwTrackOrigin () const
std::vector< WTrackParameterwTrackInfit () const
std::vector< int > wTrackList () const
WTrackParameter wTrackOrigin (int n) const
WTrackParameter wTrackInfit (int n) const
int wTrackList (int n) const
int numberWTrack () const
std::vector< GammaShapeGammaShapeValue () const
std::vector< int > GammaShapeList () const
GammaShape GammaShapeValue (int n) const
int GammaShapeList (int n) const
int numberGammaShape () const
void setWTrackOrigin (const int n, const WTrackParameter wtrk)
void setWTrackInfit (const int n, const WTrackParameter wtrk)
void setWTrackOrigin (const WTrackParameter wtrk)
void setWTrackInfit (const WTrackParameter wtrk)
void setWTrackList (const int n)
void clearWTrackOrigin ()
void clearWTrackInfit ()
void clearWTrackList ()
void clearone ()
void cleartwo ()
int numberone () const
int numbertwo () const
vector< int > mappositionA () const
vector< int > mappositionB () const
vector< int > mapkinematic () const
void clearMapkinematic ()
void clearMappositionA ()
void clearMappositionB ()
void setMapkinematic (const int n)
void setMappositionA (const int n)
void setMappositionB (const int n)
void setGammaShape (const int n, const GammaShape gammashape)
void setGammaShape (const GammaShape gammashape)
void setGammaShapeList (const int n)
void clearGammaShape ()
void clearGammaShapeList ()
void setBeamPosition (const HepPoint3D BeamPosition)
void setVBeamPosition (const HepSymMatrix VBeamPosition)
HepPoint3D getBeamPosition () const
HepSymMatrix getVBeamPosition () const
 TrackPool ()
 ~TrackPool ()
void AddTrack (const int number, const double mass, const RecMdcTrack *trk)
void AddTrack (const int number, const double mass, const RecMdcKalTrack *trk)
void AddTrack (const int number, const double mass, const RecEmcShower *trk)
void AddTrack (const int number, const WTrackParameter wtrk)
void AddMissTrack (const int number, const double mass)
void AddMissTrack (const int number, const double mass, const HepLorentzVector p4)
void AddMissTrack (const int number, const double mass, const RecEmcShower *trk)
void AddMissTrack (const int number, const RecEmcShower *trk)
void AddMissTrack (const int number, const HepLorentzVector p4)
void AddTrackVertex (const int number, const double mass, const RecEmcShower *trk)
std::vector< int > AddList (int n1)
std::vector< int > AddList (int n1, int n2)
std::vector< int > AddList (int n1, int n2, int n3)
std::vector< int > AddList (int n1, int n2, int n3, int n4)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11, int n12)
std::vector< WTrackParameterwTrackOrigin () const
std::vector< WTrackParameterwTrackInfit () const
std::vector< int > wTrackList () const
WTrackParameter wTrackOrigin (int n) const
WTrackParameter wTrackInfit (int n) const
int wTrackList (int n) const
int numberWTrack () const
std::vector< GammaShapeGammaShapeValue () const
std::vector< int > GammaShapeList () const
GammaShape GammaShapeValue (int n) const
int GammaShapeList (int n) const
int numberGammaShape () const
void setWTrackOrigin (const int n, const WTrackParameter wtrk)
void setWTrackInfit (const int n, const WTrackParameter wtrk)
void setWTrackOrigin (const WTrackParameter wtrk)
void setWTrackInfit (const WTrackParameter wtrk)
void setWTrackList (const int n)
void clearWTrackOrigin ()
void clearWTrackInfit ()
void clearWTrackList ()
void clearone ()
void cleartwo ()
int numberone () const
int numbertwo () const
vector< int > mappositionA () const
vector< int > mappositionB () const
vector< int > mapkinematic () const
void clearMapkinematic ()
void clearMappositionA ()
void clearMappositionB ()
void setMapkinematic (const int n)
void setMappositionA (const int n)
void setMappositionB (const int n)
void setGammaShape (const int n, const GammaShape gammashape)
void setGammaShape (const GammaShape gammashape)
void setGammaShapeList (const int n)
void clearGammaShape ()
void clearGammaShapeList ()
void setBeamPosition (const HepPoint3D BeamPosition)
void setVBeamPosition (const HepSymMatrix VBeamPosition)
HepPoint3D getBeamPosition () const
HepSymMatrix getVBeamPosition () const
 TrackPool ()
 ~TrackPool ()
void AddTrack (const int number, const double mass, const RecMdcTrack *trk)
void AddTrack (const int number, const double mass, const RecMdcKalTrack *trk)
void AddTrack (const int number, const double mass, const RecEmcShower *trk)
void AddTrack (const int number, const WTrackParameter wtrk)
void AddMissTrack (const int number, const double mass)
void AddMissTrack (const int number, const double mass, const HepLorentzVector p4)
void AddMissTrack (const int number, const double mass, const RecEmcShower *trk)
void AddMissTrack (const int number, const RecEmcShower *trk)
void AddMissTrack (const int number, const HepLorentzVector p4)
void AddTrackVertex (const int number, const double mass, const RecEmcShower *trk)
std::vector< int > AddList (int n1)
std::vector< int > AddList (int n1, int n2)
std::vector< int > AddList (int n1, int n2, int n3)
std::vector< int > AddList (int n1, int n2, int n3, int n4)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11)
std::vector< int > AddList (int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n9, int n10, int n11, int n12)
std::vector< WTrackParameterwTrackOrigin () const
std::vector< WTrackParameterwTrackInfit () const
std::vector< int > wTrackList () const
WTrackParameter wTrackOrigin (int n) const
WTrackParameter wTrackInfit (int n) const
int wTrackList (int n) const
int numberWTrack () const
std::vector< GammaShapeGammaShapeValue () const
std::vector< int > GammaShapeList () const
GammaShape GammaShapeValue (int n) const
int GammaShapeList (int n) const
int numberGammaShape () const
void setWTrackOrigin (const int n, const WTrackParameter wtrk)
void setWTrackInfit (const int n, const WTrackParameter wtrk)
void setWTrackOrigin (const WTrackParameter wtrk)
void setWTrackInfit (const WTrackParameter wtrk)
void setWTrackList (const int n)
void clearWTrackOrigin ()
void clearWTrackInfit ()
void clearWTrackList ()
void clearone ()
void cleartwo ()
int numberone () const
int numbertwo () const
vector< int > mappositionA () const
vector< int > mappositionB () const
vector< int > mapkinematic () const
void clearMapkinematic ()
void clearMappositionA ()
void clearMappositionB ()
void setMapkinematic (const int n)
void setMappositionA (const int n)
void setMappositionB (const int n)
void setGammaShape (const int n, const GammaShape gammashape)
void setGammaShape (const GammaShape gammashape)
void setGammaShapeList (const int n)
void clearGammaShape ()
void clearGammaShapeList ()
void setBeamPosition (const HepPoint3D BeamPosition)
void setVBeamPosition (const HepSymMatrix VBeamPosition)
HepPoint3D getBeamPosition () const
HepSymMatrix getVBeamPosition () const

Static Public Member Functions

static VertexFitinstance ()
static VertexFitinstance ()
static VertexFitinstance ()

Friends

class VertexFitRefine

Detailed Description

Constructor & Destructor Documentation

◆ ~VertexFit() [1/3]

VertexFit::~VertexFit ( )

Definition at line 21 of file VertexFit.cxx.

21 {
22 // if (m_pointer) delete m_pointer;
23}

◆ ~VertexFit() [2/3]

VertexFit::~VertexFit ( )

◆ ~VertexFit() [3/3]

VertexFit::~VertexFit ( )

Member Function Documentation

◆ AddBeamFit() [1/3]

void VertexFit::AddBeamFit ( int number,
VertexParameter vpar,
int n )

Definition at line 71 of file VertexFit.cxx.

71 {
72 std::vector<int> tlis = AddList( n );
73 VertexConstraints vc;
74 vc.FixedVertexConstraints( tlis );
75 m_vc.push_back( vc );
76 m_vpar_origin.push_back( vpar );
77 m_vpar_infit.push_back( vpar );
78 if ( (unsigned int)number != m_vc.size() - 1 )
79 std::cout << "wrong kinematic constraints index" << std::endl;
80}
const Int_t n
std::vector< int > AddList(int n1)
void FixedVertexConstraints(std::vector< int > tlis)

◆ AddBeamFit() [2/3]

void VertexFit::AddBeamFit ( int number,
VertexParameter vpar,
int n )

◆ AddBeamFit() [3/3]

void VertexFit::AddBeamFit ( int number,
VertexParameter vpar,
int n )

◆ AddVertex() [1/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2 )

Definition at line 102 of file VertexFit.cxx.

102 {
103 std::vector<int> tlis = AddList( n1, n2 );
104 AddVertex( number, vpar, tlis );
105}
int n2
Definition SD0Tag.cxx:59
int n1
Definition SD0Tag.cxx:58
void AddVertex(int number, VertexParameter vpar, std::vector< int > lis)
Definition VertexFit.cxx:85

◆ AddVertex() [2/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2 )

◆ AddVertex() [3/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2 )

◆ AddVertex() [4/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3 )

Definition at line 107 of file VertexFit.cxx.

107 {
108 std::vector<int> tlis = AddList( n1, n2, n3 );
109 AddVertex( number, vpar, tlis );
110}

◆ AddVertex() [5/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3 )

◆ AddVertex() [6/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3 )

◆ AddVertex() [7/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4 )

Definition at line 112 of file VertexFit.cxx.

112 {
113 std::vector<int> tlis = AddList( n1, n2, n3, n4 );
114 AddVertex( number, vpar, tlis );
115}

◆ AddVertex() [8/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4 )

◆ AddVertex() [9/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4 )

◆ AddVertex() [10/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5 )

Definition at line 117 of file VertexFit.cxx.

118 {
119 std::vector<int> tlis = AddList( n1, n2, n3, n4, n5 );
120 AddVertex( number, vpar, tlis );
121}

◆ AddVertex() [11/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5 )

◆ AddVertex() [12/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5 )

◆ AddVertex() [13/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6 )

Definition at line 123 of file VertexFit.cxx.

124 {
125 std::vector<int> tlis = AddList( n1, n2, n3, n4, n5, n6 );
126 AddVertex( number, vpar, tlis );
127}

◆ AddVertex() [14/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6 )

◆ AddVertex() [15/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6 )

◆ AddVertex() [16/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7 )

Definition at line 129 of file VertexFit.cxx.

130 {
131 std::vector<int> tlis = AddList( n1, n2, n3, n4, n5, n6, n7 );
132 AddVertex( number, vpar, tlis );
133}

◆ AddVertex() [17/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7 )

◆ AddVertex() [18/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7 )

◆ AddVertex() [19/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8 )

Definition at line 135 of file VertexFit.cxx.

136 {
137 std::vector<int> tlis = AddList( n1, n2, n3, n4, n5, n6, n7, n8 );
138 AddVertex( number, vpar, tlis );
139}

◆ AddVertex() [20/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8 )

◆ AddVertex() [21/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8 )

◆ AddVertex() [22/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9 )

Definition at line 141 of file VertexFit.cxx.

142 {
143 std::vector<int> tlis = AddList( n1, n2, n3, n4, n5, n6, n7, n8, n9 );
144 AddVertex( number, vpar, tlis );
145}

◆ AddVertex() [23/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9 )

◆ AddVertex() [24/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9 )

◆ AddVertex() [25/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9,
int n10 )

Definition at line 147 of file VertexFit.cxx.

148 {
149 std::vector<int> tlis = AddList( n1, n2, n3, n4, n5, n6, n7, n8, n9, n10 );
150 AddVertex( number, vpar, tlis );
151}

◆ AddVertex() [26/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9,
int n10 )

◆ AddVertex() [27/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9,
int n10 )

◆ AddVertex() [28/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9,
int n10,
int n11 )

Definition at line 153 of file VertexFit.cxx.

154 {
155 std::vector<int> tlis = AddList( n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11 );
156 AddVertex( number, vpar, tlis );
157}

◆ AddVertex() [29/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9,
int n10,
int n11 )

◆ AddVertex() [30/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9,
int n10,
int n11 )

◆ AddVertex() [31/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9,
int n10,
int n11,
int n12 )

Definition at line 159 of file VertexFit.cxx.

161 {
162 std::vector<int> tlis = AddList( n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11, n12 );
163 AddVertex( number, vpar, tlis );
164}

◆ AddVertex() [32/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9,
int n10,
int n11,
int n12 )

◆ AddVertex() [33/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
int n1,
int n2,
int n3,
int n4,
int n5,
int n6,
int n7,
int n8,
int n9,
int n10,
int n11,
int n12 )

◆ AddVertex() [34/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
std::vector< int > lis )

Definition at line 85 of file VertexFit.cxx.

85 {
86 VertexConstraints vc;
87 vc.CommonVertexConstraints( tlis );
88 m_vc.push_back( vc );
89 HepVector vx( 3, 0 );
90 for ( unsigned int i = 0; i < tlis.size(); i++ ) vx += wTrackOrigin( tlis[i] ).X();
91 vx = vx / tlis.size();
92 VertexParameter n_vpar = vpar;
93 n_vpar.setVx( vx );
94 m_vpar_origin.push_back( n_vpar );
95 m_vpar_infit.push_back( n_vpar );
96 WTrackParameter vwtrk;
97 m_virtual_wtrk.push_back( vwtrk );
98 if ( (unsigned int)number != m_vc.size() - 1 )
99 std::cout << "wrong kinematic constraints index" << std::endl;
100}
std::vector< WTrackParameter > wTrackOrigin() const
void CommonVertexConstraints(std::vector< int > tlis)

Referenced by AddVertex(), AddVertex(), AddVertex(), AddVertex(), AddVertex(), AddVertex(), AddVertex(), AddVertex(), AddVertex(), AddVertex(), AddVertex(), BeamParams::execute(), DQAKsKpi::execute(), DQAKsKpiDEDX::execute(), DQARhopi::execute(), Gam4pikp::execute(), inclks::execute(), incllambda::execute(), JsiLL::execute(), KShortReconstruction::execute(), KsKpi::execute(), LambdaReconstruction::execute(), PPbar::execute(), Ppjrhopi::execute(), PrimaryVertex::execute(), Rhopi::execute(), ValidJpsiRhopi::execute(), K0kk::MTotal(), K0kpi::MTotal(), K0pi0::MTotal(), K0pipi::MTotal(), K0pipipi0::MTotal(), K3pi::MTotal(), K3pipi0::MTotal(), Kk::MTotal(), Kkpi0::MTotal(), Kkpipi::MTotal(), Kpi::MTotal(), Kpipi0::MTotal(), Kpipi0pi0::MTotal(), Pipi::MTotal(), Pipipi0::MTotal(), LocalKsSelector::operator()(), LocalLambdaSelector::operator()(), utility::SecondaryVFit(), utility::SecondaryVFit_Lambda(), utility::UpdatedKsIfo(), utility::UpdatedLambdaIfo(), utility::vfit(), and utility::vfit().

◆ AddVertex() [35/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
std::vector< int > lis )

◆ AddVertex() [36/36]

void VertexFit::AddVertex ( int number,
VertexParameter vpar,
std::vector< int > lis )

◆ BeamFit() [1/3]

bool VertexFit::BeamFit ( int n)

Definition at line 249 of file VertexFit.cxx.

249 {
250 bool okfit = false;
251 if ( n < 0 || (unsigned int)n >= m_vc.size() ) return okfit;
252 for ( unsigned int i = 0; i < ( m_vc[n].Ltrk() ).size(); i++ )
253 {
254 int itk = ( m_vc[n].Ltrk() )[i];
255 setWTrackInfit( itk, wTrackOrigin( itk ) );
256 }
257 m_vpar_infit[n] = m_vpar_origin[n];
258
259 // iteration loop
260 std::vector<double> chisq;
261 chisq.clear();
262 for ( int it = 0; it < m_niter; it++ )
263 {
264 std::vector<WTrackParameter> wlis;
265 wlis.clear();
266 for ( unsigned int i = 0; i < ( m_vc[n].Ltrk() ).size(); i++ )
267 {
268 int itk = ( m_vc[n].Ltrk() )[i];
269 wlis.push_back( wTrackInfit( itk ) );
270 }
271 VertexParameter vpar = m_vpar_infit[n];
272 m_vc[n].UpdateConstraints( vpar, wlis );
273
274 fitBeam( n );
275 chisq.push_back( m_chisq[n] );
276 if ( it > 0 )
277 {
278 double delchi = chisq[it] - chisq[it - 1];
279 if ( fabs( delchi ) < m_chiter ) break;
280 }
281 }
282 if ( m_chisq[n] >= m_chicut ) return okfit;
283 swimBeam( n );
284 okfit = true;
285 return okfit;
286}
std::vector< WTrackParameter > wTrackInfit() const
void setWTrackInfit(const int n, const WTrackParameter wtrk)

◆ BeamFit() [2/3]

bool VertexFit::BeamFit ( int n)

◆ BeamFit() [3/3]

bool VertexFit::BeamFit ( int n)

◆ BuildVirtualParticle() [1/3]

void VertexFit::BuildVirtualParticle ( int number)

Definition at line 600 of file VertexFit.cxx.

600 {
601
602 vertexCovMatrix( n );
603 TStopwatch timer;
604 timer.Start();
605
606 HepMatrix A( NTRKPAR, NTRKPAR * m_nvtrk, 0 );
607 HepMatrix B( NTRKPAR, NVTXPAR, 0 );
608 VertexConstraints vc = m_vc[n];
609 unsigned int NSIZE = vc.Ltrk().size();
610 int charge = 0;
611
612 HepMatrix Ai( 6, 6, 0 );
613 Ai[0][0] = 1.0;
614 Ai[1][1] = 1.0;
615 Ai[2][2] = 1.0;
616 HepMatrix Bi( 6, 3, 0 );
617 Bi[3][0] = 1.0;
618 Bi[4][1] = 1.0;
619 Bi[5][2] = 1.0;
620 HepVector w1( 6, 0 );
621 HepVector w2( 7, 0 );
622 HepSymMatrix Ew( 7, 0 );
623 HepMatrix ew1( 6, 6, 0 );
624 HepMatrix ew2( 7, 7, 0 );
625 double totalE = 0;
626
627 for ( unsigned int i = 0; i < NSIZE; i++ )
628 {
629 int itk = vc.Ltrk()[i];
630 charge += wTrackInfit( itk ).charge();
631 // double afield = VertexFitBField::instance()->getCBz(m_xInfit,
632 //pInfit(itk).sub(4, 6));
633 double afield =
634 m_factor * VertexFitBField::instance()->getCBz( m_xInfit, pInfit( itk ).sub( 4, 6 ) );
635 double a = afield * wTrackInfit( itk ).charge();
636
637 // totalE += wTrackOrigin(itk).w()[3];
638 totalE += wTrackInfit( itk ).w()[3]; // update total energy after fit, commit by sunhk,
639 // thanks to Chengzhi He.
640 Ai[0][4] = a;
641 Ai[1][3] = -a;
642 Bi[0][1] = -a;
643 Bi[1][0] = a;
644 A.sub( 1, NTRKPAR * itk + 1, Ai );
645 B += Bi;
646 }
647 B[3][0] = 1.0;
648 B[4][1] = 1.0;
649 B[5][2] = 1.0;
650
651 w1 = A * m_pInfit + B * m_xInfit;
652 ew1 = m_pcovInfit.similarity( A ) + m_xcovInfit.similarity( B ) + A * m_E * B.T() +
653 B * ( m_E.T() ) * A.T();
654
655 // convert w1(6x1) to w2(7x1)
656 w2[0] = w1[0];
657 w2[1] = w1[1];
658 w2[2] = w1[2];
659 w2[3] = totalE;
660 w2[4] = w1[3];
661 w2[5] = w1[4];
662 w2[6] = w1[5];
663 // convert ew1(6x6) to ew2(7x7)
664 m_TRB[3][0] = w1[0] / totalE;
665 m_TRB[3][1] = w1[1] / totalE;
666 m_TRB[3][2] = w1[2] / totalE;
667 ew2 = m_TRB * ew1 * m_TRB.T();
668 Ew.assign( ew2 );
669 WTrackParameter vwtrk;
670 vwtrk.setCharge( charge );
671 vwtrk.setW( w2 );
672 vwtrk.setEw( Ew );
673
674 m_virtual_wtrk[n] = vwtrk;
675 timer.Stop();
676 m_cpu[5] += timer.CpuTime();
677}
double getCBz(const HepVector &vtx, const HepVector &trackPosition)

Referenced by DQAKsKpi::execute(), DQAKsKpiDEDX::execute(), inclks::execute(), incllambda::execute(), JsiLL::execute(), KShortReconstruction::execute(), KsKpi::execute(), LambdaReconstruction::execute(), K0kk::MTotal(), K0kpi::MTotal(), K0pi0::MTotal(), K0pipi::MTotal(), K0pipipi0::MTotal(), LocalKsSelector::operator()(), LocalLambdaSelector::operator()(), utility::SecondaryVFit(), utility::SecondaryVFit_Lambda(), utility::UpdatedKsIfo(), and utility::UpdatedLambdaIfo().

◆ BuildVirtualParticle() [2/3]

void VertexFit::BuildVirtualParticle ( int number)

◆ BuildVirtualParticle() [3/3]

void VertexFit::BuildVirtualParticle ( int number)

◆ chisq() [1/6]

◆ chisq() [2/6]

double VertexFit::chisq ( ) const
inline

Definition at line 78 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

78{ return m_chi; }

◆ chisq() [3/6]

double VertexFit::chisq ( ) const
inline

Definition at line 78 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

78{ return m_chi; }

◆ chisq() [4/6]

double VertexFit::chisq ( int n) const
inline

Definition at line 79 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

79{ return m_chisq[n]; }

◆ chisq() [5/6]

double VertexFit::chisq ( int n) const
inline

Definition at line 79 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

79{ return m_chisq[n]; }

◆ chisq() [6/6]

double VertexFit::chisq ( int n) const
inline

Definition at line 79 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

79{ return m_chisq[n]; }

◆ cpu() [1/3]

HepVector VertexFit::cpu ( ) const
inline

Definition at line 94 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

94{ return m_cpu; }

◆ cpu() [2/3]

HepVector VertexFit::cpu ( ) const
inline

Definition at line 94 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

94{ return m_cpu; }

◆ cpu() [3/3]

HepVector VertexFit::cpu ( ) const
inline

Definition at line 94 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

94{ return m_cpu; }

◆ errorVx() [1/3]

double VertexFit::errorVx ( int n,
int i ) const
inline

Definition at line 100 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

100{ return sqrt( ( m_vpar_infit[n].Evx() )[i][i] ); }

◆ errorVx() [2/3]

double VertexFit::errorVx ( int n,
int i ) const
inline

Definition at line 100 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

100{ return sqrt( ( m_vpar_infit[n].Evx() )[i][i] ); }

◆ errorVx() [3/3]

double VertexFit::errorVx ( int n,
int i ) const
inline

Definition at line 100 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

100{ return sqrt( ( m_vpar_infit[n].Evx() )[i][i] ); }

◆ Evx() [1/3]

HepSymMatrix VertexFit::Evx ( int n) const
inline

Definition at line 99 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

99{ return m_vpar_infit[n].Evx(); }

Referenced by errorVx(), Gam4pikp::execute(), and PrimaryVertex::execute().

◆ Evx() [2/3]

HepSymMatrix VertexFit::Evx ( int n) const
inline

Definition at line 99 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

99{ return m_vpar_infit[n].Evx(); }

◆ Evx() [3/3]

HepSymMatrix VertexFit::Evx ( int n) const
inline

Definition at line 99 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

99{ return m_vpar_infit[n].Evx(); }

◆ Ew() [1/3]

HepSymMatrix VertexFit::Ew ( int n) const
inline

Definition at line 90 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

90{ return wTrackInfit( n ).Ew(); }

Referenced by BuildVirtualParticle(), and Fit().

◆ Ew() [2/3]

HepSymMatrix VertexFit::Ew ( int n) const
inline

Definition at line 90 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

90{ return wTrackInfit( n ).Ew(); }

◆ Ew() [3/3]

HepSymMatrix VertexFit::Ew ( int n) const
inline

Definition at line 90 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

90{ return wTrackInfit( n ).Ew(); }

◆ factor() [1/3]

double VertexFit::factor ( ) const
inline

Definition at line 60 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

60{ return m_factor; }

Referenced by setMagCorrFactor().

◆ factor() [2/3]

double VertexFit::factor ( ) const
inline

Definition at line 60 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

60{ return m_factor; }

◆ factor() [3/3]

double VertexFit::factor ( ) const
inline

Definition at line 60 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

60{ return m_factor; }

◆ Fit() [1/6]

◆ Fit() [2/6]

bool VertexFit::Fit ( )

◆ Fit() [3/6]

bool VertexFit::Fit ( )

◆ Fit() [4/6]

bool VertexFit::Fit ( int n)

Definition at line 166 of file VertexFit.cxx.

166 {
167 bool okfit = false;
168 TStopwatch timer;
169 m_cpu = HepVector( 10, 0 );
170 if ( n < 0 || (unsigned int)n >= m_vc.size() ) return okfit;
171
172 timer.Start();
173 int ifail;
174 m_nvtrk = numberWTrack();
175
176 m_pOrigin = HepVector( m_nvtrk * NTRKPAR, 0 );
177 m_pInfit = HepVector( m_nvtrk * NTRKPAR, 0 );
178 m_pcovOrigin = HepSymMatrix( m_nvtrk * NTRKPAR, 0 );
179 m_pcovInfit = HepSymMatrix( m_nvtrk * NTRKPAR, 0 );
180
181 int ntrk = numberWTrack();
182 for ( unsigned int itk = 0; itk < ntrk; itk++ )
183 {
184 setWTrackInfit( itk, wTrackOrigin( itk ) );
185 setPOrigin( itk, Convert76( wTrackOrigin( itk ).w() ) );
186 setPCovOrigin( itk, wTrackOrigin( itk ).Ew().similarity( m_TRA ) );
187 }
188 m_pInfit = m_pOrigin;
189
190 m_xOrigin = HepVector( NVTXPAR, 0 );
191 m_xInfit = HepVector( NVTXPAR, 0 );
192 m_xcovOrigin = HepSymMatrix( NVTXPAR, 0 );
193 m_xcovInfit = HepSymMatrix( NVTXPAR, 0 );
194 m_xcovOriginInversed = HepSymMatrix( NVTXPAR, 0 );
195 m_xcovInfitInversed = HepSymMatrix( NVTXPAR, 0 );
196
197 m_xOrigin = m_vpar_origin[n].Vx();
198 m_xcovOrigin = m_vpar_origin[n].Evx();
199 m_xcovOriginInversed = m_xcovOrigin.inverse( ifail );
200 m_xInfit = m_xOrigin;
201
202 m_vpar_infit[n] = m_vpar_origin[n];
203
204 m_B = HepMatrix( NCONSTR * m_nvtrk, NVTXPAR, 0 );
205 m_A = HepMatrix( NCONSTR * m_nvtrk, NTRKPAR * m_nvtrk, 0 );
206 m_BT = HepMatrix( NVTXPAR, NCONSTR * m_nvtrk, 0 );
207 m_AT = HepMatrix( NTRKPAR * m_nvtrk, NCONSTR * m_nvtrk, 0 );
208 m_G = HepVector( NCONSTR * m_nvtrk, 0 );
209 m_W = HepSymMatrix( NCONSTR * m_nvtrk, 0 );
210 m_E = HepMatrix( NTRKPAR * m_nvtrk, NVTXPAR, 0 );
211
212 timer.Stop();
213 m_cpu[0] += timer.CpuTime();
214
215 // iteration loop
216 std::vector<double> chisq;
217 chisq.clear();
218 for ( int it = 0; it < m_niter; it++ )
219 {
220 timer.Start();
221 UpdateConstraints( m_vc[n] );
222 timer.Stop();
223 m_cpu[1] += timer.CpuTime();
224 timer.Start();
225 fitVertex( n );
226 timer.Stop();
227 m_cpu[2] += timer.CpuTime();
228 chisq.push_back( m_chisq[n] );
229 if ( it > 0 )
230 {
231 double delchi = chisq[it] - chisq[it - 1];
232 if ( fabs( delchi ) < m_chiter ) break;
233 }
234 }
235
236 /*REVISED
237 if(m_chisq[n] >= m_chicut || m_chisq[n] < 0) return okfit;
238 REVISED*/
239 if ( m_chisq[n] >= m_chicut ) return okfit;
240
241 // update vertex and its covariance
242 m_vpar_infit[n].setVx( m_xInfit );
243 m_vpar_infit[n].setEvx( m_xcovInfit );
244
245 okfit = true;
246 return okfit;
247}
double w

◆ Fit() [5/6]

bool VertexFit::Fit ( int n)

◆ Fit() [6/6]

bool VertexFit::Fit ( int n)

◆ init() [1/3]

void VertexFit::init ( )

Definition at line 27 of file VertexFit.cxx.

27 {
28 // derived from TrackPool
37 clearone();
38 cleartwo();
39
40 m_vpar_origin.clear();
41 m_vpar_infit.clear();
42 m_vc.clear();
43 m_chisq.clear();
44 m_chi = 9999.;
45 m_virtual_wtrk.clear();
46 m_niter = 10;
47 m_chiter = 1.0e-3;
48 m_chicut = 1000;
49
50 m_TRA = HepMatrix( 6, 7, 0 );
51 m_TRA[0][0] = 1.0;
52 m_TRA[1][1] = 1.0;
53 m_TRA[2][2] = 1.0;
54 m_TRA[3][4] = 1.0;
55 m_TRA[4][5] = 1.0;
56 m_TRA[5][6] = 1.0;
57 m_TRB = HepMatrix( 7, 6, 0 );
58 m_TRB[0][0] = 1.0;
59 m_TRB[1][1] = 1.0;
60 m_TRB[2][2] = 1.0;
61 m_TRB[4][3] = 1.0;
62 m_TRB[5][4] = 1.0;
63 m_TRB[6][5] = 1.0;
64
65 m_factor = 1.000;
66}

Referenced by BeamParams::execute(), DQAKsKpi::execute(), DQAKsKpiDEDX::execute(), DQARhopi::execute(), Gam4pikp::execute(), inclks::execute(), incllambda::execute(), JsiLL::execute(), KShortReconstruction::execute(), KsKpi::execute(), LambdaReconstruction::execute(), PPbar::execute(), Ppjrhopi::execute(), PrimaryVertex::execute(), Rhopi::execute(), ValidJpsiRhopi::execute(), K0kk::MTotal(), K0kpi::MTotal(), K0pi0::MTotal(), K0pipi::MTotal(), K0pipipi0::MTotal(), K3pi::MTotal(), K3pipi0::MTotal(), Kk::MTotal(), Kkpi0::MTotal(), Kkpipi::MTotal(), Kpi::MTotal(), Kpipi0::MTotal(), Kpipi0pi0::MTotal(), Pipi::MTotal(), Pipipi0::MTotal(), LocalKsSelector::operator()(), LocalLambdaSelector::operator()(), utility::SecondaryVFit(), utility::SecondaryVFit_Lambda(), utility::UpdatedKsIfo(), utility::UpdatedLambdaIfo(), utility::vfit(), and utility::vfit().

◆ init() [2/3]

void VertexFit::init ( )

◆ init() [3/3]

void VertexFit::init ( )

◆ instance() [1/3]

◆ instance() [2/3]

VertexFit * VertexFit::instance ( )
static

◆ instance() [3/3]

VertexFit * VertexFit::instance ( )
static

◆ pfit() [1/3]

HepLorentzVector VertexFit::pfit ( int n) const
inline

Definition at line 87 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

87{ return wTrackInfit( n ).p(); }

◆ pfit() [2/3]

HepLorentzVector VertexFit::pfit ( int n) const
inline

Definition at line 87 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

87{ return wTrackInfit( n ).p(); }

◆ pfit() [3/3]

HepLorentzVector VertexFit::pfit ( int n) const
inline

Definition at line 87 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

87{ return wTrackInfit( n ).p(); }

◆ pull() [1/3]

bool VertexFit::pull ( int n,
int itk,
HepVector & p )

Definition at line 445 of file VertexFit.cxx.

445 {
446 assert( p.num_row() == 5 );
447 vertexCovMatrix( n );
448
449 WTrackParameter wtrk0, wtrk1;
450 HepVector w1( 6, 0 );
451 HepVector w2( 7, 0 );
452 HepSymMatrix ew1( 6, 0 );
453 HepSymMatrix ew2( 7, 0 );
454 wtrk0 = wTrackOrigin( itk );
455 w1 = pInfit( itk );
456 ew1 = pcovInfit( itk );
457 w2 = Convert67( wtrk0.mass(), w1 );
458 m_TRB[3][0] = w2[0] / w2[3];
459 m_TRB[3][1] = w2[1] / w2[3];
460 m_TRB[3][2] = w2[2] / w2[3];
461 ew2 = ew1.similarity( m_TRB );
462 wtrk1.setW( w2 );
463 wtrk1.setEw( ew2 );
464 wtrk1.setCharge( wtrk0.charge() );
465
466 HTrackParameter htrk0( wtrk0 );
467 HTrackParameter htrk1( wtrk1 );
468 for ( int i = 0; i < 5; i++ )
469 {
470 double del = htrk0.eHel()[i][i] - htrk1.eHel()[i][i];
471 if ( del == 0.0 ) { return false; }
472 p[i] = ( htrk0.helix()[i] - htrk1.helix()[i] ) / sqrt( abs( del ) );
473 }
474 return true;
475}

Referenced by BeamParams::execute().

◆ pull() [2/3]

bool VertexFit::pull ( int n,
int itk,
HepVector & p )

◆ pull() [3/3]

bool VertexFit::pull ( int n,
int itk,
HepVector & p )

◆ setChisqCut() [1/3]

void VertexFit::setChisqCut ( const double chicut = 1000,
const double chiter = 1.0e-3 )
inline

Definition at line 55 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

55 {
56 m_chicut = chicut;
57 m_chiter = chiter;
58 }

◆ setChisqCut() [2/3]

void VertexFit::setChisqCut ( const double chicut = 1000,
const double chiter = 1.0e-3 )
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

55 {
56 m_chicut = chicut;
57 m_chiter = chiter;
58 }

◆ setChisqCut() [3/3]

void VertexFit::setChisqCut ( const double chicut = 1000,
const double chiter = 1.0e-3 )
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

55 {
56 m_chicut = chicut;
57 m_chiter = chiter;
58 }

◆ setIterNumber() [1/3]

void VertexFit::setIterNumber ( const int niter = 10)
inline

Definition at line 54 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

54{ m_niter = niter; }

◆ setIterNumber() [2/3]

void VertexFit::setIterNumber ( const int niter = 10)
inline

Definition at line 54 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

54{ m_niter = niter; }

◆ setIterNumber() [3/3]

void VertexFit::setIterNumber ( const int niter = 10)
inline

Definition at line 54 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

54{ m_niter = niter; }

◆ setMagCorrFactor() [1/3]

void VertexFit::setMagCorrFactor ( const double factor = 1.000)
inline

Definition at line 59 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

59{ m_factor = factor; }

◆ setMagCorrFactor() [2/3]

void VertexFit::setMagCorrFactor ( const double factor = 1.000)
inline

Definition at line 59 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

59{ m_factor = factor; }

◆ setMagCorrFactor() [3/3]

void VertexFit::setMagCorrFactor ( const double factor = 1.000)
inline

Definition at line 59 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

59{ m_factor = factor; }

◆ Swim() [1/3]

◆ Swim() [2/3]

void VertexFit::Swim ( int n)
inline

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

68 {
69 vertexCovMatrix( n );
70 swimVertex( n );
71 }

◆ Swim() [3/3]

void VertexFit::Swim ( int n)
inline

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

68 {
69 vertexCovMatrix( n );
70 swimVertex( n );
71 }

◆ vpar() [1/3]

◆ vpar() [2/3]

VertexParameter VertexFit::vpar ( int n) const
inline

Definition at line 101 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

101{ return m_vpar_infit[n]; }

◆ vpar() [3/3]

VertexParameter VertexFit::vpar ( int n) const
inline

Definition at line 101 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

101{ return m_vpar_infit[n]; }

◆ Vx() [1/3]

HepVector VertexFit::Vx ( int n) const
inline

Definition at line 98 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

98{ return m_vpar_infit[n].Vx(); }

Referenced by BeamParams::execute(), and PrimaryVertex::execute().

◆ Vx() [2/3]

HepVector VertexFit::Vx ( int n) const
inline

Definition at line 98 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

98{ return m_vpar_infit[n].Vx(); }

◆ Vx() [3/3]

HepVector VertexFit::Vx ( int n) const
inline

Definition at line 98 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

98{ return m_vpar_infit[n].Vx(); }

◆ vx() [1/3]

HepPoint3D VertexFit::vx ( int n) const
inline

Definition at line 97 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

97{ return m_vpar_infit[n].vx(); }

Referenced by AddVertex(), and Gam4pikp::execute().

◆ vx() [2/3]

HepPoint3D VertexFit::vx ( int n) const
inline

Definition at line 97 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

97{ return m_vpar_infit[n].vx(); }

◆ vx() [3/3]

HepPoint3D VertexFit::vx ( int n) const
inline

Definition at line 97 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

97{ return m_vpar_infit[n].vx(); }

◆ w() [1/3]

HepVector VertexFit::w ( int n) const
inline

Definition at line 89 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

89{ return wTrackInfit( n ).w(); }

◆ w() [2/3]

HepVector VertexFit::w ( int n) const
inline

Definition at line 89 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

89{ return wTrackInfit( n ).w(); }

◆ w() [3/3]

HepVector VertexFit::w ( int n) const
inline

Definition at line 89 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

89{ return wTrackInfit( n ).w(); }

◆ wtrk() [1/3]

◆ wtrk() [2/3]

WTrackParameter VertexFit::wtrk ( int n) const
inline

◆ wtrk() [3/3]

WTrackParameter VertexFit::wtrk ( int n) const
inline

◆ wVirtualTrack() [1/3]

◆ wVirtualTrack() [2/3]

WTrackParameter VertexFit::wVirtualTrack ( int n) const
inline

Definition at line 104 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

104{ return m_virtual_wtrk[n]; }

◆ wVirtualTrack() [3/3]

WTrackParameter VertexFit::wVirtualTrack ( int n) const
inline

Definition at line 104 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

104{ return m_virtual_wtrk[n]; }

◆ xfit() [1/3]

HepPoint3D VertexFit::xfit ( int n) const
inline

Definition at line 88 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

88{ return wTrackInfit( n ).x(); }

◆ xfit() [2/3]

HepPoint3D VertexFit::xfit ( int n) const
inline

Definition at line 88 of file InstallArea/x86_64-el9-gcc13-dbg/include/VertexFit/VertexFit.h.

88{ return wTrackInfit( n ).x(); }

◆ xfit() [3/3]

HepPoint3D VertexFit::xfit ( int n) const
inline

Definition at line 88 of file InstallArea/x86_64-el9-gcc13-opt/include/VertexFit/VertexFit.h.

88{ return wTrackInfit( n ).x(); }

◆ VertexFitRefine

Definition at line 19 of file Analysis/VertexFit/include/VertexFit/VertexFit.h.

Referenced by VertexFitRefine.


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