Back to home page

Project CMSSW displayed by LXR

 
 

    


Last indexation completed on 2024-12-12 03:12:41 UTC

 
  Name Size Date (UTC) Last indexed Description
  Name Size Date (UTC) Last indexed Description
&quote;folder&quote; Parent directory - 2024-12-12 03:06:42

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

module.cc 212 bytes 2019-05-03 22:08:00 2024-04-06 12:30:31

include "FWCore/PluginManager/interface/ModuleDef.h"

SaveSimTrack.cc 1568 bytes 2024-05-01 14:55:18 2024-05-10 02:21:28

include "SimG4Core/SaveSimTrackAction/interface/SaveSimTrack.h"