ATLAS Offline Software
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
17 public:
18 
19  // simple truth
20 
22  return truthColl->m_trackCollection;
23  }
25  return truthColl->m_trackCollection;
26  }
27 
28 
29  // detailed truth collection
30 
32  return truthColl->m_trackCollection;
33  }
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*/
TrackTruthCollectionAccessor::trackCollectionLink
static DataLink< TrackCollection > & trackCollectionLink(DetailedTrackTruthCollection *truthColl)
Definition: TrackTruthCollectionAccessor.h:31
TrackTruthCollectionAccessor::numPRDs
static const unsigned char * numPRDs(const SubDetHitStatistics *stat)
Definition: TrackTruthCollectionAccessor.h:49
TrackTruthCollectionAccessor::statsCommon
static SubDetHitStatistics & statsCommon(DetailedTrackTruth *dt)
Definition: TrackTruthCollectionAccessor.h:42
TrackTruthCollectionAccessor::numPRDs
static unsigned char * numPRDs(SubDetHitStatistics *stat)
Definition: TrackTruthCollectionAccessor.h:48
TrackTruthCollectionAccessor::statsTrack
static SubDetHitStatistics & statsTrack(DetailedTrackTruth *dt)
Definition: TrackTruthCollectionAccessor.h:43
SubDetHitStatistics
Definition: SubDetHitStatistics.h:34
TrackTruthCollectionAccessor::trackCollectionLink
static const DataLink< TrackCollection > & trackCollectionLink(const TrackTruthCollection *truthColl)
Definition: TrackTruthCollectionAccessor.h:24
TrackTruthCollection
Definition: TrackTruthCollection.h:21
DetailedTrackTruthCollection.h
TrackTruthCollection.h
TrackTruthCollectionAccessor::trackCollectionLink
static DataLink< TrackCollection > & trackCollectionLink(TrackTruthCollection *truthColl)
Definition: TrackTruthCollectionAccessor.h:21
TrackTruthCollectionAccessor::trackCollectionLink
static const DataLink< TrackCollection > & trackCollectionLink(const DetailedTrackTruthCollection *truthColl)
Definition: TrackTruthCollectionAccessor.h:35
CaloNoise_fillDB.dt
dt
Definition: CaloNoise_fillDB.py:58
DetailedTrackTruth.h
DetailedTrackTruthCollection::m_trackCollection
DataLink< TrackCollection > m_trackCollection
Definition: DetailedTrackTruthCollection.h:22
beamspotman.stat
stat
Definition: beamspotman.py:266
TruthTrajectory
Definition: TruthTrajectory.h:26
DetailedTrackTruth
Definition: DetailedTrackTruth.h:16
TrackTruthCollectionAccessor::statsTruth
static SubDetHitStatistics & statsTruth(DetailedTrackTruth *dt)
Definition: TrackTruthCollectionAccessor.h:44
TrackTruthCollection::m_trackCollection
DataLink< TrackCollection > m_trackCollection
Definition: TrackTruthCollection.h:23
SubDetHitStatistics.h
TrackTruthCollectionAccessor::trajectory
static TruthTrajectory & trajectory(DetailedTrackTruth *dt)
Definition: TrackTruthCollectionAccessor.h:45
TrackTruthCollectionAccessor
Definition: TrackTruthCollectionAccessor.h:16
DetailedTrackTruthCollection
Definition: DetailedTrackTruthCollection.h:20
TruthTrajectory.h