ATLAS Offline Software
PhysicsAnalysis
PyAnalysis
PyAnalysisExamples
PyAnalysisExamples
MyDetObj.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PYANALYSISEXAMPLES_MYDETOBJ_H
6
#define PYANALYSISEXAMPLES_MYDETOBJ_H
7
8
#include <string>
9
10
#include "
AthenaKernel/CLASS_DEF.h
"
11
12
namespace
AthPyEx
{
13
14
class
MyDetObj
15
{
16
public
:
17
MyDetObj
(
const
std::string &
name
) :
m_name
(
name
) { }
18
virtual
~MyDetObj
() {}
19
20
const
std::string&
name
() {
return
m_name
; }
21
22
private
:
23
std::string
m_name
;
24
};
25
26
}
// namespace AthPyEx
27
28
CLASS_DEF
(
AthPyEx::MyDetObj
, 105730742, 1)
29
30
#endif
31
AthPyEx::MyDetObj::~MyDetObj
virtual ~MyDetObj()
Definition:
MyDetObj.h:18
AthPyEx
Definition:
MyCutClass.h:13
AthPyEx::MyDetObj
Definition:
MyDetObj.h:15
AthPyEx::MyDetObj::m_name
std::string m_name
Definition:
MyDetObj.h:23
AthPyEx::MyDetObj::name
const std::string & name()
Definition:
MyDetObj.h:20
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition:
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
CLASS_DEF.h
macros to associate a CLID to a type
AthPyEx::MyDetObj::MyDetObj
MyDetObj(const std::string &name)
Definition:
MyDetObj.h:17
Generated on Thu Nov 7 2024 21:22:39 for ATLAS Offline Software by
1.8.18