CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrackerPhase2ValidationUtil.cc
Go to the documentation of this file.
2 bool phase2tkutil::isPrimary(const SimTrack& simTrk, const PSimHit* simHit) {
3  bool retval = false;
4  unsigned int trkId = simTrk.trackId();
5  if (trkId != simHit->trackId())
6  return retval;
7  int vtxIndex = simTrk.vertIndex();
8  int ptype = simHit->processType();
9  return ((vtxIndex == 0) && (ptype == 0));
10 }
bool isPrimary(const SimTrack &simTrk, const PSimHit *simHit)
int vertIndex() const
index of the vertex in the Event container (-1 if no vertex)
Definition: SimTrack.h:33
unsigned int trackId() const
Definition: CoreSimTrack.h:31
unsigned short processType() const
Definition: PSimHit.h:120
unsigned int trackId() const
Definition: PSimHit.h:106