CMS 3D CMS Logo

Functions
SimTrack.cc File Reference
#include "SimDataFormats/Track/interface/SimTrack.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &o, const SimTrack &t)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const SimTrack t 
)

Definition at line 18 of file SimTrack.cc.

References SimTrack::genpartIndex(), and SimTrack::vertIndex().

19 {
20  return o << (SimTrack::Core)(t) << ", "
21  << t.vertIndex() << ", "
22  << t.genpartIndex();
23 }
CoreSimTrack Core
Definition: SimTrack.h:11
int genpartIndex() const
index of the corresponding Generator particle in the Event container (-1 if no Genpart) ...
Definition: SimTrack.h:33
int vertIndex() const
index of the vertex in the Event container (-1 if no vertex)
Definition: SimTrack.h:29