How to describe met in my code?

hi experts
i have a code for calculating efficiencies of this generation : pp > wp wp, and each wp decays to a tau and neutrino,and that tau can decay to tau and neutrino-tau or e and meun . met for these channels defined in this code but when i define met before their decay, these errors occur[WpWp.cxx:167:31: error: ‘class Tauolapp::TauolaHEPEVTParticle’ has no member named ‘getDoughters’
for(int ti =0 ; ti < wp_p -> getDoughters().size() ; ti++){
^
WpWp.cxx:172:5: error: ‘t’ was not declared in this scope
if(t -> getPdgID() == -16 )
^
WpWp.cxx:176:29: error: ‘nTau_1’ was not declared in this scope
TLorentzVector MET = -( nTau_1 + anTau_2 );
^
WpWp.cxx:176:38: error: ‘anTau_2’ was not declared in this scope
TLorentzVector MET = -( nTau_1 + anTau_2 );
^
WpWp.cxx:186:29: error: ‘wpp_d1’ was not declared in this scope
for(int tdi = 0 ; tdi < wpp_d1->getDaughters().size() ; tdi++){
^
WpWp.cxx:202:31: error: ‘wpp_d1’ was not declared in this scope
for(int tdi = 0 ; tdi < wpp_d1->getDaughters().size() ; tdi++){
^
WpWp.cxx:208:29: error: ‘wpn_d1’ was not declared in this scope
for(int tdi = 0 ; tdi < wpn_d1->getDaughters().size() ; tdi++){
^
WpWp.cxx:224:31: error: ‘wpn_d1’ was not declared in this scope
for(int tdi = 0 ; tdi < wpn_d1->getDaughters().size() ; tdi++){
^
WpWp.cxx:243:7: error: continue statement not within a loop
continue;
^
WpWp.cxx: At global scope:
WpWp.cxx:425:1: error: ‘cout’ does not name a type
cout << “SumWeights SR1 : " << sumWeightsSR1 << " out of " << nentries << " ( efficiecny : " << 100sumWeightsSR1/nentries << " %)" << endl;
^
WpWp.cxx:426:1: error: ‘cout’ does not name a type
cout << "SumWeights SR2 : " << sumWeightsSR2 << " out of " << nentries << " ( efficiecny : " << 100
sumWeightsSR2/nentries << " %)” << endl;
^
WpWp.cxx:427:3: error: ‘cout’ does not name a type
cout << “SumWeights MuTau: " << sumWeightsMuTau << " out of " << nentries << " ( efficiecny : " << 100sumWeightsMuTau/nentries << " %)" << endl;
^
WpWp.cxx:428:3: error: ‘cout’ does not name a type
cout << "SumWeights ElTau: " << sumWeightsEleTau << " out of " << nentries << " ( efficiecny : " << 100
sumWeightsEleTau/nentries << " %)” << endl;
^
WpWp.cxx:430:1: error: expected declaration before ‘}’ token
}
^
make: *** [WpWp] Error 1
]
I mean i want to measure met of wpp-d1 and wpn-d1 before decay in this code. could you please help me?
regards
leila
WpWp.cxx (18.5 KB)

Hi,

indeed there is no method ‘getDoughters’ as this contains a typo. Could you fix it to ‘getDaughters’?

Benedikt