ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkTruthData
TrkTruthData
DetailedTrackTruth.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Dear emacs, this is -*-c++-*-
6
#ifndef DETAILEDTRACKTRUTH_H
7
#define DETAILEDTRACKTRUTH_H
8
9
#include "
TrkTruthData/SubDetHitStatistics.h
"
10
#include "
TrkTruthData/TruthTrajectory.h
"
11
12
#include "
AthenaKernel/CLASS_DEF.h
"
13
14
class
TrackTruthCollectionAccessor
;
15
16
class
DetailedTrackTruth
{
17
public
:
18
const
TruthTrajectory
&
trajectory
()
const
{
return
m_trajectory
; }
19
const
SubDetHitStatistics
&
statsCommon
()
const
{
return
m_hitsCommon
; }
20
const
SubDetHitStatistics
&
statsTrack
()
const
{
return
m_hitsTrack
; }
21
const
SubDetHitStatistics
&
statsTruth
()
const
{
return
m_hitsTruth
; }
22
23
DetailedTrackTruth
() {}
// for POOL
24
DetailedTrackTruth
(
const
TruthTrajectory
& traj,
25
const
SubDetHitStatistics
& hitsCommon,
26
const
SubDetHitStatistics
& hitsTrack,
27
const
SubDetHitStatistics
& hitsTruth)
28
:
m_hitsCommon
(hitsCommon),
29
m_hitsTrack
(hitsTrack),
30
m_hitsTruth
(hitsTruth),
31
m_trajectory
(traj)
32
{}
33
34
protected
:
35
friend
class
TrackTruthCollectionAccessor
;
// in TrackTruthTPCnv
36
SubDetHitStatistics
m_hitsCommon
;
37
SubDetHitStatistics
m_hitsTrack
;
38
SubDetHitStatistics
m_hitsTruth
;
39
TruthTrajectory
m_trajectory
;
40
};
41
42
//================================================================
43
inline
std::ostream&
operator<<
(std::ostream& os,
const
DetailedTrackTruth
& m) {
44
return
45
os<<
"DetailedTrackTruth(common="
<<m.statsCommon()
46
<<
", ontrack="
<<m.statsTrack()
47
<<
", ontruth="
<<m.statsTruth()
48
<<
", traj="
<<m.trajectory()<<
")"
;
49
}
50
51
CLASS_DEF
(
DetailedTrackTruth
, 148183402, 1)
52
53
#endif
/*DETAILEDTRACKTRUTH_H*/
CLASS_DEF.h
macros to associate a CLID to a type
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:67
operator<<
std::ostream & operator<<(std::ostream &os, const DetailedTrackTruth &m)
Definition
DetailedTrackTruth.h:43
SubDetHitStatistics.h
A struture to keep per-subdetector numbers of hits for truth matching.
TruthTrajectory.h
DetailedTrackTruth
Definition
DetailedTrackTruth.h:16
DetailedTrackTruth::statsTruth
const SubDetHitStatistics & statsTruth() const
Definition
DetailedTrackTruth.h:21
DetailedTrackTruth::DetailedTrackTruth
DetailedTrackTruth()
Definition
DetailedTrackTruth.h:23
DetailedTrackTruth::TrackTruthCollectionAccessor
friend class TrackTruthCollectionAccessor
Definition
DetailedTrackTruth.h:35
DetailedTrackTruth::m_hitsCommon
SubDetHitStatistics m_hitsCommon
Definition
DetailedTrackTruth.h:36
DetailedTrackTruth::trajectory
const TruthTrajectory & trajectory() const
Definition
DetailedTrackTruth.h:18
DetailedTrackTruth::m_hitsTrack
SubDetHitStatistics m_hitsTrack
Definition
DetailedTrackTruth.h:37
DetailedTrackTruth::m_hitsTruth
SubDetHitStatistics m_hitsTruth
Definition
DetailedTrackTruth.h:38
DetailedTrackTruth::m_trajectory
TruthTrajectory m_trajectory
Definition
DetailedTrackTruth.h:39
DetailedTrackTruth::statsTrack
const SubDetHitStatistics & statsTrack() const
Definition
DetailedTrackTruth.h:20
DetailedTrackTruth::DetailedTrackTruth
DetailedTrackTruth(const TruthTrajectory &traj, const SubDetHitStatistics &hitsCommon, const SubDetHitStatistics &hitsTrack, const SubDetHitStatistics &hitsTruth)
Definition
DetailedTrackTruth.h:24
DetailedTrackTruth::statsCommon
const SubDetHitStatistics & statsCommon() const
Definition
DetailedTrackTruth.h:19
SubDetHitStatistics
Definition
SubDetHitStatistics.h:34
TrackTruthCollectionAccessor
Definition
TrackTruthCollectionAccessor.h:16
TruthTrajectory
A TruthTrajectory is a chain of charged MC particles connected through the mother-daughter relationsh...
Definition
TruthTrajectory.h:26
Generated on
for ATLAS Offline Software by
1.17.0