Skip to content

Commit

Permalink
Merge pull request #14131 from davidlange6/for803p2
Browse files Browse the repository at this point in the history
Fastsim tracking memory leak fix and rawaodsim event content definition
  • Loading branch information
davidlange6 committed Apr 19, 2016
2 parents cb2be01 + b73dfa8 commit 19c8bcb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
20 changes: 19 additions & 1 deletion Configuration/EventContent/python/EventContent_cff.py
Expand Up @@ -769,9 +769,27 @@ def SwapKeepAndDrop(l):
MINIAODEventContent.outputCommands.extend(MicroEventContent.outputCommands)
MINIAODSIMEventContent.outputCommands.extend(MicroEventContentMC.outputCommands)

#
#
# RAWSIM Data Tier definition
# Meant as means to temporarily hold the RAW + AODSIM information as to allow the
# L1+HLT to be rerun at a later time.
#
RAWAODSIMEventContent = cms.PSet(
outputCommands = cms.untracked.vstring('drop *'),
eventAutoFlushCompressedSize=cms.untracked.int32(15*1024*1024),
compressionAlgorithm=cms.untracked.string("LZMA"),
compressionLevel=cms.untracked.int32(4)
)

RAWAODSIMEventContent.outputCommands.extend(AODSIMEventContent.outputCommands)
RAWAODSIMEventContent.outputCommands.extend(L1TriggerRAW.outputCommands)
RAWAODSIMEventContent.outputCommands.extend(HLTriggerRAW.outputCommands)


# in fastsim, normal digis are edaliases of simdigis
# drop the simdigis to avoid complaints from the outputmodule related to duplicated branches
if eras.fastSim.isChosen():
for _entry in [FEVTDEBUGHLTEventContent,FEVTDEBUGEventContent,RECOSIMEventContent,AODSIMEventContent]:
for _entry in [FEVTDEBUGHLTEventContent,FEVTDEBUGEventContent,RECOSIMEventContent,AODSIMEventContent,RAWAODSIMEventContent]:
fastSimEC.dropSimDigis(_entry.outputCommands)

12 changes: 7 additions & 5 deletions FastSimulation/Tracking/plugins/TrajectorySeedProducer.cc
Expand Up @@ -193,12 +193,14 @@ void TrajectorySeedProducer::produce(edm::Event& e, const edm::EventSetup& es)
std::vector<BaseTrackerRecHit const *> innerHits(1,(const BaseTrackerRecHit*) innerHit->hit());
std::vector<BaseTrackerRecHit const *> outerHits(1,(const BaseTrackerRecHit*) outerHit->hit());

const RecHitsSortedInPhi* ihm=new RecHitsSortedInPhi (innerHits, selectedTrackingRegion->origin(), innerLayer);
const RecHitsSortedInPhi* ohm=new RecHitsSortedInPhi (outerHits, selectedTrackingRegion->origin(), outerLayer);

HitDoublets result(*ihm,*ohm);
HitPairGeneratorFromLayerPair::doublets(*selectedTrackingRegion,*innerLayer,*outerLayer,*ihm,*ohm,es,0,result);
//const RecHitsSortedInPhi* ihm=new RecHitsSortedInPhi (innerHits, selectedTrackingRegion->origin(), innerLayer);
//const RecHitsSortedInPhi* ohm=new RecHitsSortedInPhi (outerHits, selectedTrackingRegion->origin(), outerLayer);
const RecHitsSortedInPhi ihm(innerHits, selectedTrackingRegion->origin(), innerLayer);
const RecHitsSortedInPhi ohm(outerHits, selectedTrackingRegion->origin(), outerLayer);

HitDoublets result(ihm,ohm);
HitPairGeneratorFromLayerPair::doublets(*selectedTrackingRegion,*innerLayer,*outerLayer,ihm,ohm,es,0,result);

if(result.size()!=0)
{
return true;
Expand Down

0 comments on commit 19c8bcb

Please sign in to comment.