Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:29:14

0001 #include "Validation/SiTrackerPhase2V/interface/TrackerPhase2ValidationUtil.h"
0002 bool phase2tkutil::isPrimary(const SimTrack& simTrk, const PSimHit* simHit) {
0003   bool retval = false;
0004   unsigned int trkId = simTrk.trackId();
0005   if (trkId != simHit->trackId())
0006     return retval;
0007   int vtxIndex = simTrk.vertIndex();
0008   int ptype = simHit->processType();
0009   return ((vtxIndex == 0) && (ptype == 0));
0010 }