ATLAS Offline Software
ParticleLevelElectronObjectSelector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 // Filename: ParticleLevelElectronObjectSelector.h
6 // Description:
7 // Author: Fabian Wilk
8 // Created: Sun Feb 22 15:16:10 2015
9 
10 #ifndef _TOP_PARTICLE_LEVEL_ELECTRONOBJECTSELECTOR_H_
11 #define _TOP_PARTICLE_LEVEL_ELECTRONOBJECTSELECTOR_H_
12 
14 
16 
17 namespace top {
19  : public ObjectSelectorBase<xAOD::TruthParticle> {
20  public:
21  // Struct used to store the cut values used by the object selector. It
22  // is important that the object has a sensible default config because it
23  // will be default constructed for the trivial constructor of the object
24  // selector.
25  struct Options {
26  Options(double ptMin = 25.e3,
27  double etaMax = 2.5,
28  bool notFromHadron = true,
29  bool tauIsHadron = false) :
30  pt_min(ptMin),
31  eta_max(etaMax),
32  not_from_hadron(notFromHadron),
33  tau_is_hadron(tauIsHadron) {}
34  double pt_min;
35  double eta_max;
38  };
39  public:
41  virtual bool apply(const xAOD::TruthParticle& truthParticle);
42  private:
44  };
45 }
46 
47 #endif /* _TOP_PARTICLE_LEVEL_ELECTRONOBJECTSELECTOR_H_ */
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::ParticleLevelElectronObjectSelector::Options::not_from_hadron
bool not_from_hadron
Definition: ParticleLevelElectronObjectSelector.h:36
top::ParticleLevelElectronObjectSelector::Options
Definition: ParticleLevelElectronObjectSelector.h:25
TruthParticleContainer.h
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
top::ParticleLevelElectronObjectSelector::m_opt
Options m_opt
Definition: ParticleLevelElectronObjectSelector.h:43
top::ParticleLevelElectronObjectSelector::Options::pt_min
double pt_min
Definition: ParticleLevelElectronObjectSelector.h:34
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
top::ParticleLevelElectronObjectSelector
Definition: ParticleLevelElectronObjectSelector.h:19
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:41
plotBeamSpotVert.cuts
string cuts
Definition: plotBeamSpotVert.py:93
top::ParticleLevelElectronObjectSelector::Options::Options
Options(double ptMin=25.e3, double etaMax=2.5, bool notFromHadron=true, bool tauIsHadron=false)
Definition: ParticleLevelElectronObjectSelector.h:26
top::ParticleLevelElectronObjectSelector::Options::tau_is_hadron
bool tau_is_hadron
Definition: ParticleLevelElectronObjectSelector.h:37
top::ParticleLevelElectronObjectSelector::Options::eta_max
double eta_max
Definition: ParticleLevelElectronObjectSelector.h:35
ObjectSelectorBase.h
checkNSWValTree.Options
Options
Definition: checkNSWValTree.py:15
top::ObjectSelectorBase
Definition: ObjectSelectorBase.h:15
top::ParticleLevelElectronObjectSelector::apply
virtual bool apply(const xAOD::TruthParticle &truthParticle)
Definition: ParticleLevelElectronObjectSelector.cxx:20
top::ParticleLevelElectronObjectSelector::ParticleLevelElectronObjectSelector
ParticleLevelElectronObjectSelector(Options cuts=Options())
Definition: ParticleLevelElectronObjectSelector.cxx:16
PhysDESDM_SmpCaloId.ptMin
ptMin
Definition: PhysDESDM_SmpCaloId.py:90