ATLAS Offline Software
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 
11 
12 #include "AthenaKernel/CLASS_DEF.h"
13 
15 
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
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
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*/
DetailedTrackTruth::m_hitsTrack
SubDetHitStatistics m_hitsTrack
Definition: DetailedTrackTruth.h:37
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
SubDetHitStatistics
Definition: SubDetHitStatistics.h:34
DetailedTrackTruth::statsTruth
const SubDetHitStatistics & statsTruth() const
Definition: DetailedTrackTruth.h:21
DetailedTrackTruth::statsCommon
const SubDetHitStatistics & statsCommon() const
Definition: DetailedTrackTruth.h:19
DetailedTrackTruth::m_trajectory
TruthTrajectory m_trajectory
Definition: DetailedTrackTruth.h:39
DetailedTrackTruth::m_hitsCommon
SubDetHitStatistics m_hitsCommon
Definition: DetailedTrackTruth.h:36
DetailedTrackTruth::statsTrack
const SubDetHitStatistics & statsTrack() const
Definition: DetailedTrackTruth.h:20
DetailedTrackTruth::m_hitsTruth
SubDetHitStatistics m_hitsTruth
Definition: DetailedTrackTruth.h:38
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
TruthTrajectory
Definition: TruthTrajectory.h:26
DetailedTrackTruth
Definition: DetailedTrackTruth.h:16
DetailedTrackTruth::DetailedTrackTruth
DetailedTrackTruth(const TruthTrajectory &traj, const SubDetHitStatistics &hitsCommon, const SubDetHitStatistics &hitsTrack, const SubDetHitStatistics &hitsTruth)
Definition: DetailedTrackTruth.h:24
SubDetHitStatistics.h
operator<<
std::ostream & operator<<(std::ostream &os, const DetailedTrackTruth &m)
Definition: DetailedTrackTruth.h:43
TrackTruthCollectionAccessor
Definition: TrackTruthCollectionAccessor.h:16
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
DetailedTrackTruth::trajectory
const TruthTrajectory & trajectory() const
Definition: DetailedTrackTruth.h:18
TruthTrajectory.h
DetailedTrackTruth::DetailedTrackTruth
DetailedTrackTruth()
Definition: DetailedTrackTruth.h:23
CLASS_DEF.h
macros to associate a CLID to a type