ATLAS Offline Software
PhysicsAnalysis
PyAnalysis
PyAnalysisExamples
PyAnalysisExamples
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"
9
#include "
AthenaKernel/getMessageSvc.h
"
10
11
#include "
egammaEvent/Electron.h
"
12
13
namespace
AthPyEx
{
14
15
class
MyCutClass
16
{
17
public
:
18
MyCutClass
(
double
thr) :
m_Thr
(thr) {}
19
virtual
~MyCutClass
() {}
20
21
bool
isAccepted
(
const
Analysis::Electron
&
e
)
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
AllowedVariables::e
e
Definition:
AsgElectronSelectorTool.cxx:37
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
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
Generated on Fri Jan 10 2025 21:15:15 for ATLAS Offline Software by
1.8.18