ATLAS Offline Software
Loading...
Searching...
No Matches
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>
12
25
26class TruthTrajectory : public std::vector<HepMcParticleLink> {};
27
28template<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
37CLASS_DEF(TruthTrajectory, 115990571, 1)
38
39#endif/*TRUTHTRAJECTORY_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
Ostream & operator<<(Ostream &os, const TruthTrajectory &m)
A TruthTrajectory is a chain of charged MC particles connected through the mother-daughter relationsh...