BOSS 8.0.0
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.

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

◆ PionZero() [2/2]

PionZero::PionZero ( )
inline

Definition at line 18 of file PionZeroList.h.

18{};

Member Function Documentation

◆ cal_goodness()

void PionZero::cal_goodness ( int good_method)

Definition at line 31 of file PionZeroList.cxx.

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

Referenced by PionZero().

◆ get_gam_vp()

HepLorentzVector PionZero::get_gam_vp ( int i)
inline

Definition at line 23 of file PionZeroList.h.

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

◆ get_goodness()

double PionZero::get_goodness ( )
inline

Definition at line 21 of file PionZeroList.h.

21{ return m_goodness; }

◆ get_index()

int PionZero::get_index ( int i)
inline

Definition at line 19 of file PionZeroList.h.

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

◆ get_mass()

double PionZero::get_mass ( )
inline

Definition at line 20 of file PionZeroList.h.

20{ return m_inv_mass; }

◆ get_pi0_vp()

HepLorentzVector PionZero::get_pi0_vp ( )
inline

Definition at line 24 of file PionZeroList.h.

24{ return m_vp_total; }

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