ATLAS Offline Software
Tracking
TrkEvent
TrkTruthData
TrkTruthData
TrackTruth.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Dear emacs, this is -*-c++-*-
6
#ifndef TRKPREPRAWDATATRUTH_TRACKTHRUTH_H
7
#define TRKPREPRAWDATATRUTH_TRACKTHRUTH_H
8
9
#include "
GeneratorObjects/HepMcParticleLink.h
"
10
14
class
TrackTruth
{
15
16
public
:
18
TrackTruth
() :
m_particleLink
(),
m_probability
(0) {}
19
20
TrackTruth
(
const
HepMcParticleLink
&
particleLink
,
float
probability
,
21
int
=0
/*FIXME: unused "flag" arg so that old code still compiles */
22
)
23
:
m_particleLink
(
particleLink
),
m_probability
(
probability
)
24
{}
25
26
const
HepMcParticleLink
&
particleLink
()
const
{
return
m_particleLink
; }
27
28
float
probability
()
const
{
return
m_probability
; }
29
30
private
:
31
HepMcParticleLink
m_particleLink
;
32
float
m_probability
;
// parameter indicating the quality of match
33
};
34
35
#endif // TRKPREPRAWDATATRUTH_TRACKTHRUTH_H
HepMcParticleLink.h
TrackTruth::m_probability
float m_probability
Definition:
TrackTruth.h:32
HepMcParticleLink
a link optimized in size for a GenParticle in a McEventCollection
Definition:
HepMcParticleLink.h:72
TrackTruth::particleLink
const HepMcParticleLink & particleLink() const
Definition:
TrackTruth.h:26
TrackTruth::m_particleLink
HepMcParticleLink m_particleLink
Definition:
TrackTruth.h:31
TrackTruth
MC particle associated with a reco track + the quality of match.
Definition:
TrackTruth.h:14
TrackTruth::probability
float probability() const
Definition:
TrackTruth.h:28
TrackTruth::TrackTruth
TrackTruth()
default ctr is required by POOL converters
Definition:
TrackTruth.h:18
TrackTruth::TrackTruth
TrackTruth(const HepMcParticleLink &particleLink, float probability, int=0)
Definition:
TrackTruth.h:20
Generated on Sun Dec 22 2024 21:20:37 for ATLAS Offline Software by
1.8.18