(Kinematic) cuts on the particles that are propagated. More...
#include <ParticleFilter.h>
Public Member Functions | |
bool | accepts (const Particle &particle) const |
Check all if all criteria are fullfilled. More... | |
bool | acceptsEn (const Particle &particle) const |
Kinematic cuts on the particle. More... | |
bool | acceptsVtx (const math::XYZTLorentzVector &originVertexPosition) const |
Vertex within tracker volume. More... | |
ParticleFilter (const edm::ParameterSet &cfg) | |
Default Constructor. More... | |
Private Attributes | |
double | chargedPtMin2_ |
Minimum pT^2 of a charged particle. More... | |
double | cos2ThetaMax_ |
Particles must have abs(eta) < etaMax if close to beampipe. More... | |
double | EMin_ |
Minimum energy of a particle. More... | |
double | protonEMin_ |
Allow ALL protons with energy > protonEMin. More... | |
std::vector< int > | skipParticles_ |
List of invisible particles (neutrinos are excluded by default) More... | |
double | vertexRMax2_ |
Radius^2 of tracker volume. More... | |
double | vertexZMax_ |
Z of tracker volume. More... | |
(Kinematic) cuts on the particles that are propagated.
All other particles are skipped.
Definition at line 30 of file ParticleFilter.h.
fastsim::ParticleFilter::ParticleFilter | ( | const edm::ParameterSet & | cfg | ) |
Default Constructor.
Definition at line 6 of file ParticleFilter.cc.
References particleFlowSimParticle_cfi::chargedPtMin, chargedPtMin2_, cos2ThetaMax_, EMin_, ALCARECOTkAlBeamHalo_cff::etaMax, edm::ParameterSet::getParameter(), protonEMin_, skipParticles_, vertexRMax2_, and vertexZMax_.
bool fastsim::ParticleFilter::accepts | ( | const Particle & | particle | ) | const |
Check all if all criteria are fullfilled.
Definition at line 32 of file ParticleFilter.cc.
References funct::abs(), acceptsEn(), acceptsVtx(), cos2ThetaMax_, fastsim::Particle::momentum(), fastsim::Particle::pdgId(), fastsim::Particle::position(), protonEMin_, and skipParticles_.
Referenced by fastsim::ParticleManager::nextParticle().
bool fastsim::ParticleFilter::acceptsEn | ( | const Particle & | particle | ) | const |
Kinematic cuts on the particle.
Definition at line 66 of file ParticleFilter.cc.
References funct::abs(), fastsim::Particle::charge(), chargedPtMin2_, EMin_, fastsim::Particle::momentum(), fastsim::Particle::pdgId(), and protonEMin_.
Referenced by accepts().
bool fastsim::ParticleFilter::acceptsVtx | ( | const math::XYZTLorentzVector & | originVertexPosition | ) | const |
Vertex within tracker volume.
originVertexPosition | Position of origin vertex. |
Definition at line 92 of file ParticleFilter.cc.
References vertexRMax2_, and vertexZMax_.
Referenced by accepts(), and fastsim::ParticleManager::addSecondaries().
|
private |
Minimum pT^2 of a charged particle.
Definition at line 56 of file ParticleFilter.h.
Referenced by acceptsEn(), and ParticleFilter().
|
private |
Particles must have abs(eta) < etaMax if close to beampipe.
Definition at line 59 of file ParticleFilter.h.
Referenced by accepts(), and ParticleFilter().
|
private |
Minimum energy of a particle.
Definition at line 57 of file ParticleFilter.h.
Referenced by acceptsEn(), and ParticleFilter().
|
private |
Allow ALL protons with energy > protonEMin.
Definition at line 58 of file ParticleFilter.h.
Referenced by accepts(), acceptsEn(), and ParticleFilter().
|
private |
List of invisible particles (neutrinos are excluded by default)
Definition at line 62 of file ParticleFilter.h.
Referenced by accepts(), and ParticleFilter().
|
private |
Radius^2 of tracker volume.
Definition at line 60 of file ParticleFilter.h.
Referenced by acceptsVtx(), and ParticleFilter().
|
private |
Z of tracker volume.
Definition at line 61 of file ParticleFilter.h.
Referenced by acceptsVtx(), and ParticleFilter().