BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
PionZero Class Reference

#include <PionZeroList.h>

Public Member Functions

 PionZero (HepLorentzVector &vp_gam_1, int &index_gam_1, HepLorentzVector &vp_gam_2, int &index_gam_2)
 
 PionZero ()
 
int get_index (int i)
 
double get_mass ()
 
double get_goodness ()
 
void cal_goodness (int good_method)
 
HepLorentzVector get_gam_vp (int i)
 
HepLorentzVector get_pi0_vp ()
 

Detailed Description

Definition at line 14 of file PionZeroList.h.

Constructor & Destructor Documentation

◆ PionZero() [1/2]

PionZero::PionZero ( HepLorentzVector & vp_gam_1,
int & index_gam_1,
HepLorentzVector & vp_gam_2,
int & index_gam_2 )

Definition at line 8 of file PionZeroList.cxx.

8 :
9 m_vp_1(vp_gam_1),
10 m_index_1(index_gam_1),
11 m_vp_2(vp_gam_2),
12 m_index_2(index_gam_2){
13 m_vp_total = m_vp_1 + m_vp_2;
14 m_inv_mass = m_vp_total.m();
15 cal_goodness(0);
16}
void cal_goodness(int good_method)

◆ PionZero() [2/2]

PionZero::PionZero ( )
inline

Definition at line 17 of file PionZeroList.h.

17{};

Member Function Documentation

◆ cal_goodness()

void PionZero::cal_goodness ( int good_method)

Definition at line 30 of file PionZeroList.cxx.

30 {
31 switch(good_method){
32 case 0:
33 m_goodness = fabs(m_inv_mass-m_true_pi0);
34 break;
35 case 1:
36 cout << "not complete yet, sorry" << endl;
37 break;
38 default:
39 cout << "this default do nothing" << endl;
40 }
41}
const double m_true_pi0

Referenced by PionZero().

◆ get_gam_vp()

HepLorentzVector PionZero::get_gam_vp ( int i)
inline

Definition at line 22 of file PionZeroList.h.

22{return i>0 ? m_vp_2 : m_vp_1;}

◆ get_goodness()

double PionZero::get_goodness ( )
inline

Definition at line 20 of file PionZeroList.h.

20{ return m_goodness; }

◆ get_index()

int PionZero::get_index ( int i)
inline

Definition at line 18 of file PionZeroList.h.

18{ return i>0 ? m_index_2 : m_index_1; }

◆ get_mass()

double PionZero::get_mass ( )
inline

Definition at line 19 of file PionZeroList.h.

19{ return m_inv_mass; }

◆ get_pi0_vp()

HepLorentzVector PionZero::get_pi0_vp ( )
inline

Definition at line 23 of file PionZeroList.h.

23{return m_vp_total;}

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