ATLAS Offline Software
Loading...
Searching...
No Matches
TrackTruthCollectionAccessor.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 TRACKTRUTHCOLLECTIONACCESSOR_H
7#define TRACKTRUTHCOLLECTIONACCESSOR_H
8
14
15// A class to access private data members of TrackTruthCollection from the convertors
17public:
18
19 // simple truth
20
25 return truthColl->m_trackCollection;
26 }
27
28
29 // detailed truth collection
30
34
36 return truthColl->m_trackCollection;
37 }
38
39
40 // detailed truth item
41
42 static SubDetHitStatistics& statsCommon(DetailedTrackTruth *dt) { return dt->m_hitsCommon; }
43 static SubDetHitStatistics& statsTrack(DetailedTrackTruth *dt) { return dt->m_hitsTrack; }
44 static SubDetHitStatistics& statsTruth(DetailedTrackTruth *dt) { return dt->m_hitsTruth; }
45 static TruthTrajectory& trajectory(DetailedTrackTruth *dt) { return dt->m_trajectory; }
46
47 // SubDetHitStatistics
48 static unsigned char* numPRDs(SubDetHitStatistics *stat) { return stat->m_numPRDs; }
49 static const unsigned char* numPRDs(const SubDetHitStatistics *stat) { return stat->m_numPRDs; }
50
51};
52
53#endif/*TRACKTRUTHCOLLECTIONACCESSOR_H*/
A struture to keep per-subdetector numbers of hits for truth matching.
DataLink< TrackCollection > m_trackCollection
static const unsigned char * numPRDs(const SubDetHitStatistics *stat)
static SubDetHitStatistics & statsCommon(DetailedTrackTruth *dt)
static SubDetHitStatistics & statsTruth(DetailedTrackTruth *dt)
static const DataLink< TrackCollection > & trackCollectionLink(const DetailedTrackTruthCollection *truthColl)
static const DataLink< TrackCollection > & trackCollectionLink(const TrackTruthCollection *truthColl)
static unsigned char * numPRDs(SubDetHitStatistics *stat)
static DataLink< TrackCollection > & trackCollectionLink(DetailedTrackTruthCollection *truthColl)
static DataLink< TrackCollection > & trackCollectionLink(TrackTruthCollection *truthColl)
static SubDetHitStatistics & statsTrack(DetailedTrackTruth *dt)
static TruthTrajectory & trajectory(DetailedTrackTruth *dt)
DataLink< TrackCollection > m_trackCollection
A TruthTrajectory is a chain of charged MC particles connected through the mother-daughter relationsh...