ATLAS Offline Software
ParticleLevelMuonObjectSelector.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: ParticleLevelMuonObjectSelector.h
6 // Description:
7 // Author: Fabian Wilk
8 // Created: Sun Feb 22 15:16:10 2015
9 
10 #ifndef _TOP_PARTICLE_LEVEL_MUONOBJECTSELECTOR_H_
11 #define _TOP_PARTICLE_LEVEL_MUONOBJECTSELECTOR_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_MUONOBJECTSELECTOR_H_ */
top::ParticleLevelMuonObjectSelector::m_opt
Options m_opt
Definition: ParticleLevelMuonObjectSelector.h:43
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
TruthParticleContainer.h
top::ParticleLevelMuonObjectSelector::Options::not_from_hadron
bool not_from_hadron
Definition: ParticleLevelMuonObjectSelector.h:36
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
top::ParticleLevelMuonObjectSelector::apply
virtual bool apply(const xAOD::TruthParticle &truthParticle)
Definition: ParticleLevelMuonObjectSelector.cxx:20
top::ParticleLevelMuonObjectSelector::Options::Options
Options(double ptMin=25.e3, double etaMax=2.5, bool notFromHadron=true, bool tauIsHadron=false)
Definition: ParticleLevelMuonObjectSelector.h:26
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
top::ParticleLevelMuonObjectSelector
Definition: ParticleLevelMuonObjectSelector.h:19
top::ParticleLevelMuonObjectSelector::Options::eta_max
double eta_max
Definition: ParticleLevelMuonObjectSelector.h:35
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:41
top::ParticleLevelMuonObjectSelector::ParticleLevelMuonObjectSelector
ParticleLevelMuonObjectSelector(Options opt=Options())
Definition: ParticleLevelMuonObjectSelector.cxx:16
top::ParticleLevelMuonObjectSelector::Options::pt_min
double pt_min
Definition: ParticleLevelMuonObjectSelector.h:34
top::ParticleLevelMuonObjectSelector::Options::tau_is_hadron
bool tau_is_hadron
Definition: ParticleLevelMuonObjectSelector.h:37
pmontree.opt
opt
Definition: pmontree.py:16
ObjectSelectorBase.h
checkNSWValTree.Options
Options
Definition: checkNSWValTree.py:15
top::ObjectSelectorBase
Definition: ObjectSelectorBase.h:15
PhysDESDM_SmpCaloId.ptMin
ptMin
Definition: PhysDESDM_SmpCaloId.py:90
top::ParticleLevelMuonObjectSelector::Options
Definition: ParticleLevelMuonObjectSelector.h:25