ATLAS Offline Software
Loading...
Searching...
No Matches
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
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
Electron.h
Analysis::Electron
Definition
Reconstruction/egamma/egammaEvent/egammaEvent/Electron.h:20
AthPyEx::MyCutClass::m_Thr
double m_Thr
Definition
MyCutClass.h:30
AthPyEx::MyCutClass::isAccepted
bool isAccepted(const Analysis::Electron &e)
Definition
MyCutClass.h:21
AthPyEx::MyCutClass::~MyCutClass
virtual ~MyCutClass()
Definition
MyCutClass.h:19
AthPyEx::MyCutClass::MyCutClass
MyCutClass(double thr)
Definition
MyCutClass.h:18
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
AthPyEx
Definition
MyCutClass.h:13
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition
getMessageSvc.cxx:20
Generated on
for ATLAS Offline Software by
1.14.0