9#include <analysis/utility/GenTauTag.h>
10#include <analysis/utility/CheckDecayUtils.h>
19 if (ndau == 2) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2);}
20 else if (ndau == 3) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, 22);}
21 else if (ndau == 4) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, 22, 22);}
22 else if (ndau == 5) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, 22, 22, 22);}
23 else if (ndau == 6) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, 22, 22, 22, 22);}
30 if (ndau == 3) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3);}
31 else if (ndau == 4) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, 22);}
32 else if (ndau == 5) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, 22, 22);}
33 else if (ndau == 6) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, 22, 22, 22);}
34 else if (ndau == 7) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, 22, 22, 22, 22);}
41 if (ndau == 4) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4);}
42 else if (ndau == 5) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, 22);}
43 else if (ndau == 6) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, 22, 22);}
44 else if (ndau == 7) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, 22, 22, 22);}
45 else if (ndau == 8) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, 22, 22, 22, 22);}
52 if (ndau == 5) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5);}
53 else if (ndau == 6) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, 22);}
54 else if (ndau == 7) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, 22, 22);}
55 else if (ndau == 8) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, 22, 22, 22);}
56 else if (ndau == 9) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, 22, 22, 22, 22);}
63 if (ndau == 6) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6);}
64 else if (ndau == 7) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, 22);}
65 else if (ndau == 8) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, 22, 22);}
66 else if (ndau == 9) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, 22, 22, 22);}
67 else if (ndau == 10) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, 22, 22, 22, 22);}
74 if (ndau == 7) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7);}
75 else if (ndau == 8) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, 22);}
76 else if (ndau == 9) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, 22, 22);}
77 else if (ndau == 10) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, 22, 22, 22);}
78 else if (ndau == 11) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, 22, 22, 22, 22);}
82bool GenTauTag::PcheckDecay(std::vector<int> gp,
int da1,
int da2,
int da3,
int da4,
int da5,
int da6,
int da7,
int da8)
85 if (ndau == 8) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8);}
86 else if (ndau == 9) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8, 22);}
87 else if (ndau == 10) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8, 22, 22);}
88 else if (ndau == 11) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8, 22, 22, 22);}
89 else if (ndau == 12) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8, 22, 22, 22, 22);}
int Mode_tau_minus(std::vector< int > genDAU)
returns tau- mode identifier
int m_nPhotos
number of photons
bool PcheckDecay(std::vector< int > gp, int da1, int da2)
check decay with two daughters
int Mode_tau_plus(std::vector< int > genDAU)
returns tau+ mode identifier
Abstract base class for different kinds of events.