#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 |
Definition at line 44 of file read_particles_from_HepMC.cc.
References findLastSelf(), AlCaHLTBitMon_ParallelJobs::p, and x.
Referenced by findLastSelf(), and readParticlesFromHepMC().
|
inline |
Definition at line 8 of file read_particles_from_HepMC.cc.
References GenParticle::GenParticle, getDaughters(), AlCaHLTBitMon_ParallelJobs::p, createTree::pp, and cmsswSequenceInfo::tp.
Referenced by getDaughters(), and readParticlesFromHepMC().
|
inline |
Definition at line 58 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().