ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
15
17public:
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
34protected:
35 friend class TrackTruthCollectionAccessor; // in TrackTruthTPCnv
40};
41
42//================================================================
43inline 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
51CLASS_DEF(DetailedTrackTruth, 148183402, 1)
52
53#endif/*DETAILEDTRACKTRUTH_H*/
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::ostream & operator<<(std::ostream &os, const DetailedTrackTruth &m)
A struture to keep per-subdetector numbers of hits for truth matching.
const SubDetHitStatistics & statsTruth() const
friend class TrackTruthCollectionAccessor
SubDetHitStatistics m_hitsCommon
const TruthTrajectory & trajectory() const
SubDetHitStatistics m_hitsTrack
SubDetHitStatistics m_hitsTruth
TruthTrajectory m_trajectory
const SubDetHitStatistics & statsTrack() const
DetailedTrackTruth(const TruthTrajectory &traj, const SubDetHitStatistics &hitsCommon, const SubDetHitStatistics &hitsTrack, const SubDetHitStatistics &hitsTruth)
const SubDetHitStatistics & statsCommon() const
A TruthTrajectory is a chain of charged MC particles connected through the mother-daughter relationsh...