ATLAS Offline Software
MyCutClass.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 #ifndef PYANALYSISEXAMPLES_MYCUTCLASS_H
6 #define PYANALYSISEXAMPLES_MYCUTCLASS_H
7 
8 #include "GaudiKernel/MsgStream.h"
10 
11 #include "egammaEvent/Electron.h"
12 
13 namespace AthPyEx {
14 
16 {
17 public:
18  MyCutClass (double thr) : m_Thr(thr) {}
19  virtual ~MyCutClass () {}
20 
22  {
23  MsgStream log(Athena::getMessageSvc(), "MyCutClass");
24  log << MSG::DEBUG << e.pt() << endmsg;
25  if (e.pt() > m_Thr) return true;
26  return false;
27  }
28 
29 private:
30  double m_Thr;
31 };
32 
33 } // namespace AthPyEx
34 
35 #endif
AthPyEx
Definition: MyCutClass.h:13
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
Analysis::Electron
Definition: Reconstruction/egamma/egammaEvent/egammaEvent/Electron.h:20
AthPyEx::MyCutClass::m_Thr
double m_Thr
Definition: MyCutClass.h:30
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
AthPyEx::MyCutClass::~MyCutClass
virtual ~MyCutClass()
Definition: MyCutClass.h:19
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
AthPyEx::MyCutClass
Definition: MyCutClass.h:16
AthPyEx::MyCutClass::MyCutClass
MyCutClass(double thr)
Definition: MyCutClass.h:18
Electron.h
AthPyEx::MyCutClass::isAccepted
bool isAccepted(const Analysis::Electron &e)
Definition: MyCutClass.h:21
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20