#include "HepMC/GenEvent.h"
#include "HepMC/GenParticle.h"
#include "HepMC/IO_GenEvent.h"
#include "TauSpinner/SimpleParticle.h"
#include <vector>
Go to the source code of this file.
Functions | |
HepMC::GenParticle * | findLastSelf (HepMC::GenParticle *x) |
std::vector < TauSpinner::SimpleParticle > * | getDaughters (HepMC::GenParticle *x) |
bool | isFirst (HepMC::GenParticle *x) |
int | readParticlesFromHepMC (const HepMC::GenEvent *event, TauSpinner::SimpleParticle &X, TauSpinner::SimpleParticle &tau, TauSpinner::SimpleParticle &tau2, std::vector< TauSpinner::SimpleParticle > &tau_daughters, std::vector< TauSpinner::SimpleParticle > &tau2_daughters) |
|
inline |
Find last self
Recursively finds the last particle with the same PDG ID on the list of its decay products
Definition at line 48 of file read_particles_from_HepMC.cc.
References findLastSelf(), AlCaHLTBitMon_ParallelJobs::p, and x.
Referenced by findLastSelf(), and readParticlesFromHepMC().
|
inline |
Get daughters of HepMC::GenParticle
Recursively searches for final-state daughters of 'x'
Definition at line 10 of file read_particles_from_HepMC.cc.
References configurableAnalysis::GenParticle, getDaughters(), AlCaHLTBitMon_ParallelJobs::p, and createTree::pp.
Referenced by getDaughters(), CandMatcherBase< C1, C2 >::initMaps(), and readParticlesFromHepMC().
|
inline |
Definition at line 60 of file read_particles_from_HepMC.cc.
References AlCaHLTBitMon_ParallelJobs::p, and parents.
int readParticlesFromHepMC | ( | const HepMC::GenEvent * | event, |
TauSpinner::SimpleParticle & | X, | ||
TauSpinner::SimpleParticle & | tau, | ||
TauSpinner::SimpleParticle & | tau2, | ||
std::vector< TauSpinner::SimpleParticle > & | tau_daughters, | ||
std::vector< TauSpinner::SimpleParticle > & | tau2_daughters | ||
) |
Read HepMC::GenEvent.
Read HepMC event from data file and return particles needed for tau spin weight calculation.
This routine is prepared for use with files generated by Pythia8. Fills:
'X' - Heavy particle (W+/-, H+/-, H, Z) 'tau' - first tau
'tau_daughters' - daughters of 'tau' 'tau2_daughters' - daughters of 'tau2' or empty list, if 'tau2' is nu_tau.
Returns: 0 - event processed correctly 1 - empty event or no decay found in the event
Referenced by TauSpinnerCMS::produce().