CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
DQAKsInfo Class Reference

#include <DQAKsInfo.h>

Public Member Functions

 DQAKsInfo ()
 
 DQAKsInfo (EvtRecTrack *, EvtRecTrack *, VertexParameter, VertexParameter)
 
 ~DQAKsInfo ()
 
void setchild (int n, EvtRecTrack *track)
 
void setchilds (EvtRecTrack *track0, EvtRecTrack *track1)
 
EvtRecTrackgetchild (int n)
 
double m ()
 
double mksp4 ()
 
double vtxChi2 ()
 
double chi2 ()
 
double decayLength ()
 
double decayLengthRatio ()
 
HepLorentzVector p4 ()
 
void setVtxPar (VertexParameter vtxpar)
 
void setPrimaryVtxPar (VertexParameter privtxpar)
 
bool init ()
 
bool calculate ()
 
 DQAKsInfo ()
 
 DQAKsInfo (EvtRecTrack *, EvtRecTrack *, VertexParameter, VertexParameter)
 
 ~DQAKsInfo ()
 
void setchild (int n, EvtRecTrack *track)
 
void setchilds (EvtRecTrack *track0, EvtRecTrack *track1)
 
EvtRecTrackgetchild (int n)
 
double m ()
 
double mksp4 ()
 
double vtxChi2 ()
 
double chi2 ()
 
double decayLength ()
 
double decayLengthRatio ()
 
HepLorentzVector p4 ()
 
void setVtxPar (VertexParameter vtxpar)
 
void setPrimaryVtxPar (VertexParameter privtxpar)
 
bool init ()
 
bool calculate ()
 

Detailed Description

Constructor & Destructor Documentation

◆ DQAKsInfo() [1/4]

DQAKsInfo::DQAKsInfo ( )

Definition at line 3 of file DQAKsInfo.cxx.

3 : m_track0(0),m_track1(0)
4{
5 m_vtxFit = VertexFit::instance();
6 m_2ndVtxFit = SecondVertexFit::instance();
7}
static SecondVertexFit * instance()
static VertexFit * instance()
Definition: VertexFit.cxx:15

◆ DQAKsInfo() [2/4]

DQAKsInfo::DQAKsInfo ( EvtRecTrack track0,
EvtRecTrack track1,
VertexParameter  vtxpar,
VertexParameter  privtxpar 
)

Definition at line 9 of file DQAKsInfo.cxx.

10{
11 m_vtxFit = VertexFit::instance();
12 m_2ndVtxFit = SecondVertexFit::instance();
13 m_track0 = track0;
14 m_track1 = track1;
15 m_vtxpar = vtxpar;
16 m_privtxpar = privtxpar;
17}

◆ ~DQAKsInfo() [1/2]

DQAKsInfo::~DQAKsInfo ( )

Definition at line 18 of file DQAKsInfo.cxx.

19{
20 m_track0 = 0;
21 m_track1 = 0;
22 m_p4 = HepLorentzVector(0,0,0,0);
23 m_vmks = 0;
24}

◆ DQAKsInfo() [3/4]

DQAKsInfo::DQAKsInfo ( )

◆ DQAKsInfo() [4/4]

DQAKsInfo::DQAKsInfo ( EvtRecTrack ,
EvtRecTrack ,
VertexParameter  ,
VertexParameter   
)

◆ ~DQAKsInfo() [2/2]

DQAKsInfo::~DQAKsInfo ( )

Member Function Documentation

◆ calculate() [1/2]

bool DQAKsInfo::calculate ( )

Definition at line 25 of file DQAKsInfo.cxx.

26{
27 if (m_track0 == 0 || m_track1 == 0 ) return false;
28 RecMdcKalTrack* pion1Trk = m_track0->mdcKalTrack();
29 RecMdcKalTrack* pion2Trk = m_track1->mdcKalTrack();
30 HepLorentzVector pion1p4 = pion1Trk->p4(Ksinfo_mpi);
31 HepLorentzVector pion2p4 = pion2Trk->p4(Ksinfo_mpi);
32 HepLorentzVector ksp4 = pion1p4 + pion2p4;
33 m_mksp4 = ksp4.m();
34
35 WTrackParameter wvTrk1(Ksinfo_mpi, pion1Trk->getZHelix(), pion1Trk->getZError());
36 WTrackParameter wvTrk2(Ksinfo_mpi, pion2Trk->getZHelix(), pion2Trk->getZError());
37
38 m_vtxFit->init();
39 m_vtxFit->setChisqCut(100);
40 m_vtxFit->AddTrack(0, wvTrk1);
41 m_vtxFit->AddTrack(1, wvTrk2);
42 m_vtxFit->AddVertex(0, m_vtxpar, 0, 1);
43 if ( ! m_vtxFit->Fit(0) ) return false;
44 m_vtxFit->Swim(0);
45 m_vtxFit->BuildVirtualParticle(0);
46 WTrackParameter wtKs = m_vtxFit->wVirtualTrack(0);
47 VertexParameter vtKs = m_vtxFit->vpar(0);
48
49 m_2ndVtxFit->init();
50 m_2ndVtxFit->setChisqCut(100);
51 m_2ndVtxFit->setPrimaryVertex(m_privtxpar);
52 m_2ndVtxFit->AddTrack(0, wtKs);
53 m_2ndVtxFit->setVpar(vtKs);
54 if ( ! m_2ndVtxFit->Fit() ) return false;
55 HepLorentzVector vp4Ks = m_2ndVtxFit->p4par();
56 m_p4 = vp4Ks;
57 m_vmks = vp4Ks.m();
58 m_vchi2ks1 = m_vtxFit->chisq(0);
59 m_vchi2ks2 = m_2ndVtxFit->chisq();
60 m_vlks = m_2ndVtxFit->decayLength();
61 m_vrks = m_2ndVtxFit->decayLength() / m_2ndVtxFit->decayLengthError();
62 return true;
63}
const HepLorentzVector p4() const
void setChisqCut(const double chicut=500, const double chiter=1.0e-2)
void AddTrack(const int number, const double mass, const RecMdcTrack *trk)
Definition: TrackPool.cxx:22
void init()
Definition: VertexFit.cxx:29
void AddVertex(int number, VertexParameter vpar, std::vector< int > lis)
Definition: VertexFit.cxx:89
void BuildVirtualParticle(int number)
Definition: VertexFit.cxx:619
bool Fit()
Definition: VertexFit.cxx:301
void setChisqCut(const double chicut=1000, const double chiter=1.0e-3)

Referenced by DQADtag::execute().

◆ calculate() [2/2]

bool DQAKsInfo::calculate ( )

◆ chi2() [1/2]

double DQAKsInfo::chi2 ( )
inline

Definition at line 57 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

58{
59 return m_vchi2ks2;
60}

◆ chi2() [2/2]

double DQAKsInfo::chi2 ( )
inline

Definition at line 57 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

58{
59 return m_vchi2ks2;
60}

◆ decayLength() [1/2]

double DQAKsInfo::decayLength ( )
inline

Definition at line 61 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

62{
63 return m_vlks;
64}

◆ decayLength() [2/2]

double DQAKsInfo::decayLength ( )
inline

Definition at line 61 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

62{
63 return m_vlks;
64}

◆ decayLengthRatio() [1/2]

double DQAKsInfo::decayLengthRatio ( )
inline

Definition at line 65 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

66{
67 return m_vrks;
68}

◆ decayLengthRatio() [2/2]

double DQAKsInfo::decayLengthRatio ( )
inline

Definition at line 65 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

66{
67 return m_vrks;
68}

◆ getchild() [1/2]

EvtRecTrack * DQAKsInfo::getchild ( int  n)
inline

Definition at line 38 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

39{
40 if (n==0)
41 return m_track0;
42 else if (n==1)
43 return m_track1;
44}
const Int_t n

◆ getchild() [2/2]

EvtRecTrack * DQAKsInfo::getchild ( int  n)
inline

Definition at line 38 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

39{
40 if (n==0)
41 return m_track0;
42 else if (n==1)
43 return m_track1;
44}

◆ init() [1/2]

bool DQAKsInfo::init ( )
inline

Definition at line 81 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

82{
83 m_vtxFit->init();
84 m_2ndVtxFit->init();
85 return true;
86}

◆ init() [2/2]

bool DQAKsInfo::init ( )
inline

Definition at line 81 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

82{
83 m_vtxFit->init();
84 m_2ndVtxFit->init();
85 return true;
86}

◆ m() [1/2]

double DQAKsInfo::m ( )
inline

Definition at line 45 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

46{
47 return m_vmks;
48}

◆ m() [2/2]

double DQAKsInfo::m ( )
inline

Definition at line 45 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

46{
47 return m_vmks;
48}

◆ mksp4() [1/2]

double DQAKsInfo::mksp4 ( )
inline

Definition at line 49 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

50{
51 return m_mksp4;
52}

◆ mksp4() [2/2]

double DQAKsInfo::mksp4 ( )
inline

Definition at line 49 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

50{
51 return m_mksp4;
52}

◆ p4() [1/2]

HepLorentzVector DQAKsInfo::p4 ( )
inline

Definition at line 69 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

70{
71 return m_p4;
72}

◆ p4() [2/2]

HepLorentzVector DQAKsInfo::p4 ( )
inline

Definition at line 69 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

70{
71 return m_p4;
72}

◆ setchild() [1/2]

void DQAKsInfo::setchild ( int  n,
EvtRecTrack track 
)
inline

Definition at line 26 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

27{
28 if (n==0)
29 m_track0 = track;
30 else if (n==1)
31 m_track1 = track;
32}

◆ setchild() [2/2]

void DQAKsInfo::setchild ( int  n,
EvtRecTrack track 
)
inline

Definition at line 26 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

27{
28 if (n==0)
29 m_track0 = track;
30 else if (n==1)
31 m_track1 = track;
32}

◆ setchilds() [1/2]

void DQAKsInfo::setchilds ( EvtRecTrack track0,
EvtRecTrack track1 
)
inline

Definition at line 33 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

34{
35 m_track0 = track0;
36 m_track1 = track1;
37}

Referenced by DQADtag::execute().

◆ setchilds() [2/2]

void DQAKsInfo::setchilds ( EvtRecTrack track0,
EvtRecTrack track1 
)
inline

Definition at line 33 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

34{
35 m_track0 = track0;
36 m_track1 = track1;
37}

◆ setPrimaryVtxPar() [1/2]

void DQAKsInfo::setPrimaryVtxPar ( VertexParameter  privtxpar)
inline

Definition at line 77 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

78{
79 m_privtxpar = privtxpar;
80}

Referenced by DQADtag::execute().

◆ setPrimaryVtxPar() [2/2]

void DQAKsInfo::setPrimaryVtxPar ( VertexParameter  privtxpar)
inline

Definition at line 77 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

78{
79 m_privtxpar = privtxpar;
80}

◆ setVtxPar() [1/2]

void DQAKsInfo::setVtxPar ( VertexParameter  vtxpar)
inline

Definition at line 73 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

74{
75 m_vtxpar = vtxpar;
76}

Referenced by DQADtag::execute().

◆ setVtxPar() [2/2]

void DQAKsInfo::setVtxPar ( VertexParameter  vtxpar)
inline

Definition at line 73 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

74{
75 m_vtxpar = vtxpar;
76}

◆ vtxChi2() [1/2]

double DQAKsInfo::vtxChi2 ( )
inline

Definition at line 53 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAKsInfo.h.

54{
55 return m_vchi2ks1;
56}

◆ vtxChi2() [2/2]

double DQAKsInfo::vtxChi2 ( )
inline

Definition at line 53 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAKsInfo.h.

54{
55 return m_vchi2ks1;
56}

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