CMS 3D CMS Logo

Typedefs | Functions
MtdSimTracksterFwd.h File Reference
#include "DataFormats/Common/interface/Ref.h"
#include "DataFormats/Common/interface/RefProd.h"
#include "DataFormats/Common/interface/RefVector.h"
#include <vector>

Go to the source code of this file.

Typedefs

typedef std::vector< MtdSimTracksterMtdSimTracksterCollection
 
typedef edm::RefVector< MtdSimTracksterCollectionMtdSimTracksterContainer
 
typedef edm::Ref< MtdSimTracksterCollectionMtdSimTracksterRef
 
typedef edm::RefProd< MtdSimTracksterCollectionMtdSimTracksterRefProd
 
typedef edm::RefVector< MtdSimTracksterCollectionMtdSimTracksterRefVector
 

Functions

std::ostream & operator<< (std::ostream &s, MtdSimTrackster const &tp)
 

Typedef Documentation

◆ MtdSimTracksterCollection

Definition at line 8 of file MtdSimTracksterFwd.h.

◆ MtdSimTracksterContainer

Definition at line 13 of file MtdSimTracksterFwd.h.

◆ MtdSimTracksterRef

Definition at line 10 of file MtdSimTracksterFwd.h.

◆ MtdSimTracksterRefProd

Definition at line 12 of file MtdSimTracksterFwd.h.

◆ MtdSimTracksterRefVector

Definition at line 11 of file MtdSimTracksterFwd.h.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
MtdSimTrackster const &  tp 
)

Definition at line 43 of file MtdSimTrackster.cc.

References alignCSCRings::s, and cmsswSequenceInfo::tp.

43  {
44  s << "CP momentum, q, ID, & Event #: " << tp.p4() << " " << tp.charge() << " " << tp.pdgId() << " "
45  << tp.eventId().bunchCrossing() << "." << tp.eventId().event() << std::endl;
46 
47  for (MtdSimTrackster::genp_iterator hepT = tp.genParticle_begin(); hepT != tp.genParticle_end(); ++hepT) {
48  s << " HepMC Track Momentum " << (*hepT)->momentum().rho() << std::endl;
49  }
50 
51  for (MtdSimTrackster::g4t_iterator g4T = tp.g4Track_begin(); g4T != tp.g4Track_end(); ++g4T) {
52  s << " Geant Track Momentum " << g4T->momentum() << std::endl;
53  s << " Geant Track ID & type " << g4T->trackId() << " " << g4T->type() << std::endl;
54  if (g4T->type() != tp.pdgId()) {
55  s << " Mismatch b/t MtdSimTrackster and Geant types" << std::endl;
56  }
57  }
58  s << " # of clusters = " << tp.clusters_.size() << std::endl;
59  return s;
60 }
std::vector< SimTrack >::const_iterator g4t_iterator
Definition: SimCluster.h:41