ATLAS Offline Software
ElectronIDSelectorCore.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 // Dear emacs, this is -*-c++-*-
6 #ifndef ANALYSISUTILS_ELECTRONIDSELECTORCORE_H
7 #define ANALYSISUTILS_ELECTRONIDSELECTORCORE_H
8 
22 // STL includes
23 #include <string>
24 #include <cfloat>
25 
26 // Atlas includes
27 #include "GaudiKernel/ToolHandle.h"
28 #include "AraTool/AraToolBase.h"
31 
32 
33 
34 static const InterfaceID IID_ElectronIDSelectorCore("ElectronIDSelectorCore", 1, 0);
35 
36 
37 class ElectronIDSelectorCore : public ISelectorCore, virtual public AraToolBase
38 {
39 public:
42 
45 
46 public:
48  static const InterfaceID& interfaceID() { return IID_ElectronIDSelectorCore; };
49 
50 public:
52  virtual StatusCode initialize();
53 
55  virtual StatusCode finalize();
56 
57 
58 
59 public:
61  bool accept( const INavigable4Momentum* part ) const;
62 
63 
64  // Private member functions
65 private:
67  double getREtaCut( double eT, double eta) const;
68 
70  double getW2Cut(double eT, double eta) const;
71 
72 
74  unsigned int getEtaBin(double eta) const;
75 
77  unsigned int getEtBin(double eT) const;
78 
79 
80 
81 
82  // Private class variables
83 private:
85  std::string m_showerContainerName;
86 
88  std::string m_isEMCut;
89 
91  unsigned int m_isEM;
92 
94  unsigned int m_isEM_NoConvCut;
95 
96 
97 
98 };
99 
100 #endif // ANALYSISUTILS_ELECTRONIDSELECTORCORE_H
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
ISelectorCore
Dual use tool (athena/ARA) for any cuts. This is the base class.
Definition: ISelectorCore.h:29
INavigable4Momentum.h
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
ElectronIDSelectorCore
Dual use tool (athena/ARA) for specialized electron identification cuts.
Definition: ElectronIDSelectorCore.h:38
ElectronIDSelectorCore::getREtaCut
double getREtaCut(double eT, double eta) const
Gets the Reta cut given eT (MeV) and eta.
Definition: ElectronIDSelectorCore.cxx:374
ElectronIDSelectorCore::finalize
virtual StatusCode finalize()
Gaudi Service Interface method implementations.
Definition: ElectronIDSelectorCore.cxx:209
ElectronIDSelectorCore::getEtBin
unsigned int getEtBin(double eT) const
Gets the Et bin [0-10] given the et (MeV)
Definition: ElectronIDSelectorCore.cxx:352
ElectronIDSelectorCore::m_isEM_NoConvCut
unsigned int m_isEM_NoConvCut
IsEM from the electron for robusterTight with b-layer check.
Definition: ElectronIDSelectorCore.h:94
IDTPM::eT
float eT(const U &p)
Accessor utility function for getting the value of Tranverse energy.
Definition: TrackParametersHelper.h:130
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ElectronIDSelectorCore::getEtaBin
unsigned int getEtaBin(double eta) const
Gets the Eta bin [0-9] given the eta.
Definition: ElectronIDSelectorCore.cxx:332
ISelectorCore.h
ElectronIDSelectorCore::accept
bool accept(const INavigable4Momentum *part) const
Main method, all cuts are applied.
Definition: ElectronIDSelectorCore.cxx:223
ElectronIDSelectorCore::initialize
virtual StatusCode initialize()
Gaudi Service Interface method implementations.
Definition: ElectronIDSelectorCore.cxx:131
AraToolBase::PropertyMgr
PropertyHolder< CommonMessaging< implements< IAlgTool, IDataHandleHolder, IProperty, IStateful > > > PropertyMgr
Definition: AraToolBase.h:19
ElectronIDSelectorCore::~ElectronIDSelectorCore
virtual ~ElectronIDSelectorCore()
Default destructor.
Definition: ElectronIDSelectorCore.h:44
AraToolBase.h
INavigable4Momentum
Definition: INavigable4Momentum.h:21
AraToolBase
Definition: AraToolBase.h:17
ElectronIDSelectorCore::interfaceID
static const InterfaceID & interfaceID()
AlgTool interface methods.
Definition: ElectronIDSelectorCore.h:48
ElectronIDSelectorCore::m_showerContainerName
std::string m_showerContainerName
Name of the EMShower container.
Definition: ElectronIDSelectorCore.h:85
ElectronIDSelectorCore::getW2Cut
double getW2Cut(double eT, double eta) const
Gets the w2 cut given eT (MeV) and eta.
Definition: ElectronIDSelectorCore.cxx:402
ElectronIDSelectorCore::m_isEM
unsigned int m_isEM
IsEM from the electron.
Definition: ElectronIDSelectorCore.h:91
ElectronIDSelectorCore::ElectronIDSelectorCore
ElectronIDSelectorCore(PropertyMgr *pmgr=0)
Default contructor.
Definition: ElectronIDSelectorCore.cxx:111
ElectronIDSelectorCore::m_isEMCut
std::string m_isEMCut
IsEM cut.
Definition: ElectronIDSelectorCore.h:88