ATLAS Offline Software
TestBeam
TBEvent
TBEvent
TBIdentifiedParticle.h
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#include "
AthenaKernel/CLASS_DEF.h
"
8
9
#ifndef TBIDENTIFIEDPARTICLE
10
#define TBIDENTIFIEDPARTICLE
11
12
class
TBIdentifiedParticle
13
{
14
public
:
15
enum
ParticleName
{
16
UNKNOWN
,
17
ELECTRON
,
18
PION
,
19
MUON
20
};
21
22
23
TBIdentifiedParticle
();
24
TBIdentifiedParticle
(
const
ParticleName
name
) {
m_name
=
name
;}
25
inline
void
setParticle
(
const
ParticleName
name
) {
m_name
=
name
;}
26
inline
ParticleName
getParticle
()
const
{
return
m_name
;}
27
28
29
private
:
30
ParticleName
m_name
;
31
32
};
33
34
CLASS_DEF
(
TBIdentifiedParticle
, 78364895,1 )
35
// TBIdentifiedParticle
36
#endif
TBIdentifiedParticle::setParticle
void setParticle(const ParticleName name)
Definition:
TBIdentifiedParticle.h:25
TBIdentifiedParticle::PION
@ PION
Definition:
TBIdentifiedParticle.h:18
TBIdentifiedParticle::m_name
ParticleName m_name
Definition:
TBIdentifiedParticle.h:30
xAOD::Muon_v1
Class describing a Muon.
Definition:
Muon_v1.h:38
TBIdentifiedParticle::ParticleName
ParticleName
Definition:
TBIdentifiedParticle.h:15
TBIdentifiedParticle::UNKNOWN
@ UNKNOWN
Definition:
TBIdentifiedParticle.h:16
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
TBIdentifiedParticle::getParticle
ParticleName getParticle() const
Definition:
TBIdentifiedParticle.h:26
TBIdentifiedParticle::ELECTRON
@ ELECTRON
Definition:
TBIdentifiedParticle.h:17
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
TBIdentifiedParticle
Definition:
TBIdentifiedParticle.h:13
CLASS_DEF.h
macros to associate a CLID to a type
TBIdentifiedParticle::TBIdentifiedParticle
TBIdentifiedParticle()
Definition:
TBIdentifiedParticle.cxx:7
TBIdentifiedParticle::TBIdentifiedParticle
TBIdentifiedParticle(const ParticleName name)
Definition:
TBIdentifiedParticle.h:24
Generated on Thu Nov 7 2024 21:27:13 for ATLAS Offline Software by
1.8.18