ATLAS Offline Software
xAODLeptonFilter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // --------------------------------------------------
6 //
7 // File: GeneratorFilters/LeptonFilter.h
8 // Description: Filters based on presence of charged leptons
9 //
10 // Authors:
11 // I Hinchliffe: December 2001
12 // A Buckley: April 2009
13 
14 #ifndef GENERATORFILTERS_XAODLEPTONFILTER_H
15 #define GENERATORFILTERS_XAODLEPTONFILTER_H
16 
21 
23 class xAODLeptonFilter : public GenFilter {
24 
25 public:
26 
28  xAODLeptonFilter(const std::string& name, ISvcLocator* pSvcLocator);
29 
31  virtual ~xAODLeptonFilter() { }
32 
35  return StatusCode::SUCCESS;
36  }
37 
40  return StatusCode::SUCCESS;
41  }
42 
44  virtual StatusCode filterEvent();
45 
46 
47 private:
48 
49  // Declare filter variables
50  Gaudi::Property<double> m_Ptmin{this,"Ptcut",10000.0,"Minimum pT for a lepton to count"};
51  Gaudi::Property<double> m_Ptmax{this,"PtcutMax",1e99,"Maximum pT for a lepton to veto the event"};
52  Gaudi::Property<double> m_EtaRange{this,"Etacut",10.0,"Minimum |pseudorapidity| for a lepton to count"};
53 
54 };
55 
56 #endif
xAODLeptonFilter
Filter events based on presence of charged leptons.
Definition: xAODLeptonFilter.h:23
xAODLeptonFilter::filterFinalize
virtual StatusCode filterFinalize()
Finalize.
Definition: xAODLeptonFilter.h:39
TruthParticleContainer.h
xAODLeptonFilter::m_EtaRange
Gaudi::Property< double > m_EtaRange
Definition: xAODLeptonFilter.h:52
GenFilter.h
xAODLeptonFilter::xAODLeptonFilter
xAODLeptonFilter(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: xAODLeptonFilter.cxx:9
xAODLeptonFilter::m_Ptmax
Gaudi::Property< double > m_Ptmax
Definition: xAODLeptonFilter.h:51
TruthParticleAuxContainer.h
GenFilter
Base class for event generator filtering modules.
Definition: GenFilter.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODLeptonFilter::filterEvent
virtual StatusCode filterEvent()
Do the filtering.
Definition: xAODLeptonFilter.cxx:16
xAODLeptonFilter::~xAODLeptonFilter
virtual ~xAODLeptonFilter()
Destructor.
Definition: xAODLeptonFilter.h:31
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAODLeptonFilter::m_Ptmin
Gaudi::Property< double > m_Ptmin
Definition: xAODLeptonFilter.h:50
TruthParticle.h
xAODLeptonFilter::filterInitialize
virtual StatusCode filterInitialize()
Initialize.
Definition: xAODLeptonFilter.h:34