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