153 for (
const auto& particle : gen_particles) {
169 std::vector<float> tau_products_pt;
170 std::vector<float> tau_products_eta;
171 std::vector<float> tau_products_phi;
172 std::vector<float> tau_products_energy;
173 std::vector<float> tau_products_mass;
174 std::vector<int> tau_products_id;
185 }
else if (
isMuon(*daughter)) {
188 tau_p4vis += (daughter->p4());
194 tau_p4vis += (daughter->p4());
201 for (
const auto& granddaughter : granddaughters) {
204 tau_p4vis += (granddaughter->p4());
211 tau_p4vis += (daughter->p4());
218 for (
const auto& granddaughter : granddaughters) {
220 tau_p4vis += (granddaughter->p4());
230 for (
const auto& grandaughter : grandaughters) {
233 tau_p4vis += (grandaughter->p4());
238 for (
const auto& descendant : descendants) {
241 tau_p4vis += (descendant->p4());
251 for (
const auto&
prod : finalProds) {
252 tau_products_pt.emplace_back(
prod->pt());
253 tau_products_eta.emplace_back(
prod->eta());
254 tau_products_phi.emplace_back(
prod->phi());
255 tau_products_energy.emplace_back(
prod->energy());
256 tau_products_mass.emplace_back(
prod->mass());
257 tau_products_id.emplace_back(
prod->pdgId());
280 if (n_pi == 0 && n_piZero == 0 && n_ele == 1) {
282 }
else if (n_pi == 0 && n_piZero == 0 && n_mu == 1) {
286 else if (n_pi == 1 && n_piZero == 0) {
290 else if (n_pi == 1 && n_piZero >= 1) {
294 else if (n_pi == 3 && n_piZero == 0) {
298 else if (n_pi == 3 && n_piZero >= 1) {