ATLAS Offline Software
Loading...
Searching...
No Matches
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
12
13namespace AthPyEx {
14
16{
17public:
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
29private:
30 double m_Thr;
31};
32
33} // namespace AthPyEx
34
35#endif
#define endmsg
bool isAccepted(const Analysis::Electron &e)
Definition MyCutClass.h:21
virtual ~MyCutClass()
Definition MyCutClass.h:19
MyCutClass(double thr)
Definition MyCutClass.h:18
singleton-like access to IMessageSvc via open function and helper
IMessageSvc * getMessageSvc(bool quiet=false)