ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ISF::EntryLayerFilter Class Reference

#include <EntryLayerFilter.h>

Inheritance diagram for ISF::EntryLayerFilter:
Collaboration diagram for ISF::EntryLayerFilter:

Public Member Functions

 EntryLayerFilter (const std::string &t, const std::string &n, const IInterface *p)
 Constructor with parameters. More...
 
virtual ~EntryLayerFilter ()=default
 Virtual destructor. More...
 
virtual bool passFilter (const ISFParticle &isp) const
 Returns a pass boolean on the particle
More...
 

Private Attributes

double m_ekinCharged
 mininum Ekin cut for charged particles More...
 
double m_ekinNeutral
 mininum Ekin cut for neutral particles More...
 

Detailed Description

A generic ISFParticle filter using the particle barcode to make it's filter decisions:

) filter out all particles with an unset barcode

) filter all but primary particles according to the MC12 barcode scheme: A tool that only allows particles to pass, which are primary (or modified primary) particles, according to the MC12 barcode numbering scheme.

Author
Elmar.Ritsch -at- cern.ch

Definition at line 28 of file EntryLayerFilter.h.

Constructor & Destructor Documentation

◆ EntryLayerFilter()

ISF::EntryLayerFilter::EntryLayerFilter ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Constructor with parameters.

Constructor.

Definition at line 15 of file EntryLayerFilter.cxx.

15  :
16  base_class(t,n,p),
17  m_ekinCharged(-1),
18  m_ekinNeutral(-1)
19 {
20  declareProperty( "MinEkinCharged",
21  m_ekinCharged=-1.,
22  "Minimum kinetic energy cut for charged particles (set -1 to filter out all)");
23  declareProperty( "MinEkinNeutral",
24  m_ekinNeutral=-1.,
25  "Minimum kinetic energy cut for neutral particles (set -1 to filter out all)");
26 }

◆ ~EntryLayerFilter()

virtual ISF::EntryLayerFilter::~EntryLayerFilter ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ passFilter()

bool ISF::EntryLayerFilter::passFilter ( const ISFParticle isp) const
virtual

Returns a pass boolean on the particle

does the particle pass the this filter?

Definition at line 30 of file EntryLayerFilter.cxx.

30  {
31  double ekin = p.ekin();
32  bool isCharged = fabs(p.charge()) > 1e-5;
33 
34  double curEkinCut = isCharged ? m_ekinCharged : m_ekinNeutral;
35 
36  // pass if cut is activated and energy is above threshold
37  bool pass = ( curEkinCut > 0. ) && ( ekin > curEkinCut );
38 
39  return pass;
40 }

Member Data Documentation

◆ m_ekinCharged

double ISF::EntryLayerFilter::m_ekinCharged
private

mininum Ekin cut for charged particles

Definition at line 41 of file EntryLayerFilter.h.

◆ m_ekinNeutral

double ISF::EntryLayerFilter::m_ekinNeutral
private

mininum Ekin cut for neutral particles

Definition at line 42 of file EntryLayerFilter.h.


The documentation for this class was generated from the following files:
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ISF::EntryLayerFilter::m_ekinNeutral
double m_ekinNeutral
mininum Ekin cut for neutral particles
Definition: EntryLayerFilter.h:42
beamspotman.n
n
Definition: beamspotman.py:731
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
isCharged
bool isCharged(const T &p)
Definition: AtlasPID.h:496
ISF::EntryLayerFilter::m_ekinCharged
double m_ekinCharged
mininum Ekin cut for charged particles
Definition: EntryLayerFilter.h:41
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15