test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
G4TrackToParticleID.cc
Go to the documentation of this file.
2 
3 #include "G4Track.hh"
4 
6 
7 int G4TrackToParticleID::particleID(const G4Track * g4trk)
8 {
9  int particleID_ = g4trk->GetDefinition()->GetPDGEncoding();
10  if (0 == particleID_) {
11  edm::LogWarning("SimG4CoreNotification")
12  << "G4TrackToParticleID: unknown code for track Id = " << g4trk->GetTrackID();
13  particleID_ = -99;
14  }
15  return particleID_;
16 }
static int particleID(const G4Track *)