Validation
SiTrackerPhase2V
src
TrackerPhase2ValidationUtil.cc
Go to the documentation of this file.
1
#include "
Validation/SiTrackerPhase2V/interface/TrackerPhase2ValidationUtil.h
"
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
}
TrackerPhase2ValidationUtil.h
OfflineHarvestingSequence_cosmic.ptype
ptype
Definition:
OfflineHarvestingSequence_cosmic.py:7
rpcPointValidation_cfi.simHit
simHit
Definition:
rpcPointValidation_cfi.py:24
phase2tkutil::isPrimary
bool isPrimary(const SimTrack &simTrk, const PSimHit *simHit)
Definition:
TrackerPhase2ValidationUtil.cc:2
CoreSimTrack::trackId
unsigned int trackId() const
Definition:
CoreSimTrack.h:31
SimTrack
Definition:
SimTrack.h:9
SimTrack::vertIndex
int vertIndex() const
index of the vertex in the Event container (-1 if no vertex)
Definition:
SimTrack.h:33
PSimHit
Definition:
PSimHit.h:15
Generated for CMSSW Reference Manual by
1.8.16