#include <DQAPi0Info.h>
|
| DQAPi0Info () |
|
| ~DQAPi0Info () |
|
void | setchild (int n, EvtRecTrack *shower) |
|
void | setchilds (EvtRecTrack *shower0, EvtRecTrack *shower1) |
|
EvtRecTrack * | getchild (int n) |
|
double | m () |
|
HepLorentzVector | p4 () |
|
void | setEnergyThreshold (double energyThreshold_b, double energyThreshold_e) |
|
void | setCosTheta (double costheta_b, double costheta_e1, double costheta_e2) |
|
bool | calculate () |
|
| DQAPi0Info () |
|
| ~DQAPi0Info () |
|
void | setchild (int n, EvtRecTrack *shower) |
|
void | setchilds (EvtRecTrack *shower0, EvtRecTrack *shower1) |
|
EvtRecTrack * | getchild (int n) |
|
double | m () |
|
HepLorentzVector | p4 () |
|
void | setEnergyThreshold (double energyThreshold_b, double energyThreshold_e) |
|
void | setCosTheta (double costheta_b, double costheta_e1, double costheta_e2) |
|
bool | calculate () |
|
◆ DQAPi0Info() [1/2]
DQAPi0Info::DQAPi0Info |
( |
| ) |
|
Definition at line 3 of file DQAPi0Info.cxx.
3 : m_shower0(0),m_shower1(0),m_p4(0),m_mpi0(0)
4{
5 m_energyThreshold_e = 0.05;
6 m_energyThreshold_b = 0.025;
7 m_costheta_b = 0.82;
8 m_costheta_e1 = 0.85;
9 m_costheta_e2 = 0.92;
10}
◆ ~DQAPi0Info() [1/2]
DQAPi0Info::~DQAPi0Info |
( |
| ) |
|
Definition at line 12 of file DQAPi0Info.cxx.
13{
14 m_shower0 = 0;
15 m_shower1 = 0;
16 m_p4 = HepLorentzVector(0,0,0,0);
17 m_mpi0 = 0;
18}
◆ DQAPi0Info() [2/2]
DQAPi0Info::DQAPi0Info |
( |
| ) |
|
◆ ~DQAPi0Info() [2/2]
DQAPi0Info::~DQAPi0Info |
( |
| ) |
|
◆ calculate() [1/2]
bool DQAPi0Info::calculate |
( |
| ) |
|
|
inline |
Definition at line 61 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/DQADtagAlg/util/DQAPi0Info.h.
62{
63 if (m_shower0 == 0 || m_shower1 == 0 ) return false;
66 double eraw1 = photon1->
energy();
67 double phiemc1 = photon1->
phi();
69 double eraw2 = photon2->
energy();
70 double phiemc2 = photon2->
phi();
74 if (!((costheta1 < m_costheta_b && eraw1 > m_energyThreshold_b ) ||
75 (costheta1 > m_costheta_e1 && costheta1 < m_costheta_e2 && eraw1 > m_energyThreshold_e )))
76 return false;
77 if (!((costheta2 < m_costheta_b && eraw2 > m_energyThreshold_b ) ||
78 (costheta2 > m_costheta_e1 && costheta2 < m_costheta_e2 && eraw2 > m_energyThreshold_e )))
79 return false;
80
81 HepLorentzVector pemc1;
85 pemc1.setE(eraw1);
86
87 HepLorentzVector pemc2;
91 pemc2.setE(eraw2);
92
93 HepLorentzVector ppi0=pemc1+pemc2;
94 m_p4 = ppi0;
95 m_mpi0 = ppi0.m();
96 return true;
97}
double sin(const BesAngle a)
double cos(const BesAngle a)
RecEmcShower * emcShower()
Referenced by DQADtag::execute().
◆ calculate() [2/2]
bool DQAPi0Info::calculate |
( |
| ) |
|
|
inline |
Definition at line 61 of file InstallArea/include/DQADtagAlg/DQADtagAlg/util/DQAPi0Info.h.
62{
63 if (m_shower0 == 0 || m_shower1 == 0 ) return false;
66 double eraw1 = photon1->
energy();
67 double phiemc1 = photon1->
phi();
69 double eraw2 = photon2->
energy();
70 double phiemc2 = photon2->
phi();
74 if (!((costheta1 < m_costheta_b && eraw1 > m_energyThreshold_b ) ||
75 (costheta1 > m_costheta_e1 && costheta1 < m_costheta_e2 && eraw1 > m_energyThreshold_e )))
76 return false;
77 if (!((costheta2 < m_costheta_b && eraw2 > m_energyThreshold_b ) ||
78 (costheta2 > m_costheta_e1 && costheta2 < m_costheta_e2 && eraw2 > m_energyThreshold_e )))
79 return false;
80
81 HepLorentzVector pemc1;
85 pemc1.setE(eraw1);
86
87 HepLorentzVector pemc2;
91 pemc2.setE(eraw2);
92
93 HepLorentzVector ppi0=pemc1+pemc2;
94 m_p4 = ppi0;
95 m_mpi0 = ppi0.m();
96 return true;
97}
◆ getchild() [1/2]
◆ getchild() [2/2]
◆ m() [1/2]
◆ m() [2/2]
◆ p4() [1/2]
HepLorentzVector DQAPi0Info::p4 |
( |
| ) |
|
|
inline |
◆ p4() [2/2]
HepLorentzVector DQAPi0Info::p4 |
( |
| ) |
|
|
inline |
◆ setchild() [1/2]
void DQAPi0Info::setchild |
( |
int |
n, |
|
|
EvtRecTrack * |
shower |
|
) |
| |
|
inline |
◆ setchild() [2/2]
void DQAPi0Info::setchild |
( |
int |
n, |
|
|
EvtRecTrack * |
shower |
|
) |
| |
|
inline |
◆ setchilds() [1/2]
◆ setchilds() [2/2]
◆ setCosTheta() [1/2]
void DQAPi0Info::setCosTheta |
( |
double |
costheta_b, |
|
|
double |
costheta_e1, |
|
|
double |
costheta_e2 |
|
) |
| |
|
inline |
◆ setCosTheta() [2/2]
void DQAPi0Info::setCosTheta |
( |
double |
costheta_b, |
|
|
double |
costheta_e1, |
|
|
double |
costheta_e2 |
|
) |
| |
|
inline |
◆ setEnergyThreshold() [1/2]
void DQAPi0Info::setEnergyThreshold |
( |
double |
energyThreshold_b, |
|
|
double |
energyThreshold_e |
|
) |
| |
|
inline |
◆ setEnergyThreshold() [2/2]
void DQAPi0Info::setEnergyThreshold |
( |
double |
energyThreshold_b, |
|
|
double |
energyThreshold_e |
|
) |
| |
|
inline |
The documentation for this class was generated from the following files: