Skip to content
Snippets Groups Projects

Add setting for configuring output of PGUN simulation (@adavis)

Merged Marco Cattaneo requested to merge modify_simconf_for_pgpv-reco14 into reco14-patches
1 file
+ 11
2
Compare changes
  • Side-by-side
  • Inline
@@ -24,8 +24,9 @@ class SimConf(LHCbConfigurableUser) :
,"Detectors" : ['Velo','PuVeto','TT','IT','OT','Rich','Muon','Spd','Prs','Ecal','Hcal'] # Active sub-detectors
,"PackingSequencers" : { } # The packing sequence to fill for each spillover event
,"DataType" : "" # Flag for backward compatibility with old data
,"SaveHepMC" : "True" # If False, do not save HepMC on output file
}
,"SaveHepMC" : True # If False, do not save HepMC on output file
,"pGun" : False # If using a PGUN configuration, write the "reco" vertex as well
}
def allEventLocations(self):
crossingList = [ '' ]
@@ -322,6 +323,14 @@ class SimConf(LHCbConfigurableUser) :
else:
simList = [ self.tapeLocation( slot, 'pSim', 'MCVertices' ) ]
#add PGun primary vertex writing
if self.getProp('pGun'):
simList += [
self.tapeLocation(slot, 'Rec/Vertex', 'Primary')
]
else:
pass
# main event is manditory, spillover events optional.
if slot != '':
tape.OptItemList += simList
Loading