ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12namespace AthPyEx {
13
15{
16public:
17 MyDetObj (const std::string &name) : m_name(name) { }
18 virtual ~MyDetObj () {}
19
20 const std::string& name () { return m_name; }
21
22private:
23 std::string m_name;
24};
25
26} // namespace AthPyEx
27
28CLASS_DEF(AthPyEx::MyDetObj, 105730742, 1)
29
30#endif
31
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
virtual ~MyDetObj()
Definition MyDetObj.h:18
std::string m_name
Definition MyDetObj.h:23
const std::string & name()
Definition MyDetObj.h:20
MyDetObj(const std::string &name)
Definition MyDetObj.h:17