ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkTruthData
TrkTruthData
TruthTrajectory.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 TRUTHTRAJECTORY_H
7
#define TRUTHTRAJECTORY_H
8
9
#include <vector>
10
#include "
GeneratorObjects/HepMcParticleLink.h
"
11
#include "
AthenaKernel/CLASS_DEF.h
"
12
25
26
class
TruthTrajectory
:
public
std::vector<HepMcParticleLink> {};
27
28
template
<
class
Ostream> Ostream&
operator<<
(Ostream& os,
const
TruthTrajectory
& m) {
29
os<<
"TruthTrajectory("
;
30
for
(
unsigned
i=0; i<m.size(); ) {
31
os<<m[i];
32
if
(++i<m.size()) os<<
","
;
33
}
34
return
os<<
")"
;
35
}
36
37
CLASS_DEF
(
TruthTrajectory
, 115990571, 1)
38
39
#endif
/*TRUTHTRAJECTORY_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
HepMcParticleLink.h
operator<<
Ostream & operator<<(Ostream &os, const TruthTrajectory &m)
Definition
TruthTrajectory.h:28
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