BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DQAKsInfo.h
Go to the documentation of this file.
1#ifndef CLASS_DQAKSINFO_H
2#define CLASS_DQAKSINFO_H
3
4#include "CLHEP/Vector/LorentzVector.h"
5
6#include "EvtRecEvent/EvtRecTrack.h"
7#include "VertexFit/SecondVertexFit.h"
8#include "VertexFit/VertexFit.h"
9
10#include <iostream>
11
12using namespace std;
13const double Ksinfo_mpi = 0.139570;
14
15class DQAKsInfo {
16public:
17 DQAKsInfo();
19 ~DQAKsInfo();
20
21 void setchild( int n, EvtRecTrack* track ) {
22 if ( n == 0 ) m_track0 = track;
23 else if ( n == 1 ) m_track1 = track;
24 }
25 void setchilds( EvtRecTrack* track0, EvtRecTrack* track1 ) {
26 m_track0 = track0;
27 m_track1 = track1;
28 }
30 if ( n == 0 ) return m_track0;
31 else if ( n == 1 ) return m_track1;
32 }
33 double m() { return m_vmks; }
34 double mksp4() { return m_mksp4; }
35 double vtxChi2() { return m_vchi2ks1; }
36 double chi2() { return m_vchi2ks2; }
37 double decayLength() { return m_vlks; }
38 double decayLengthRatio() { return m_vrks; }
39 HepLorentzVector p4() { return m_p4; }
40 void setVtxPar( VertexParameter vtxpar ) { m_vtxpar = vtxpar; }
41 void setPrimaryVtxPar( VertexParameter privtxpar ) { m_privtxpar = privtxpar; }
42 bool init() {
43 m_vtxFit->init();
44 m_2ndVtxFit->init();
45 return true;
46 }
47 bool calculate();
48
49private:
50 EvtRecTrack* m_track0;
51 EvtRecTrack* m_track1;
52 HepLorentzVector m_p4;
53 VertexFit* m_vtxFit;
54 SecondVertexFit* m_2ndVtxFit;
55 VertexParameter m_vtxpar;
56 VertexParameter m_privtxpar;
57 double m_mksp4;
58 double m_vmks;
59 double m_vchi2ks1;
60 double m_vchi2ks2;
61 double m_vlks;
62 double m_vrks;
63};
64#endif
const double Ksinfo_mpi
Definition DQAKsInfo.h:13
const Int_t n
bool init()
Definition DQAKsInfo.h:42
HepLorentzVector p4()
Definition DQAKsInfo.h:39
double vtxChi2()
Definition DQAKsInfo.h:35
double chi2()
Definition DQAKsInfo.h:36
void setVtxPar(VertexParameter vtxpar)
Definition DQAKsInfo.h:40
bool calculate()
Definition DQAKsInfo.cxx:23
void setchild(int n, EvtRecTrack *track)
Definition DQAKsInfo.h:21
double decayLengthRatio()
Definition DQAKsInfo.h:38
double decayLength()
Definition DQAKsInfo.h:37
double m()
Definition DQAKsInfo.h:33
double mksp4()
Definition DQAKsInfo.h:34
void setPrimaryVtxPar(VertexParameter privtxpar)
Definition DQAKsInfo.h:41
EvtRecTrack * getchild(int n)
Definition DQAKsInfo.h:29
void setchilds(EvtRecTrack *track0, EvtRecTrack *track1)
Definition DQAKsInfo.h:25