Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /SimG4Core/SaveSimTrackAction/README is written in an unsupported language. File is not indexed.

0001 To save SimTracks with particle code (PDG code) from a list, need
0002 to activate the watcher SaveSimTrack specifying the codes in .cfg file:
0003  
0004 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0005     SaveSimTrack = cms.PSet(
0006          PDGCodes  = cms.untracked.vint32([2212])
0007     ),
0008     type  = cms.string('SaveSimTrack')
0009 ) )               
0010 
0011 will save all particles of code 2212.