CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 22 of file SimTrack.cc.

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

23 {
24  return o << (SimTrack::Core)(t) << ", "
25  << t.vertIndex() << ", "
26  << t.genpartIndex();
27 }
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