Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phase1 Pixel Triplets Seeding by CA - LayerCache cleared after use #15862

Merged
merged 5 commits into from Sep 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -144,6 +144,9 @@ void CAHitTripletGenerator::hitTriplets(const TrackingRegion& region,

ca.findTriplets(hitDoublets, foundTriplets, region, caThetaCut, caPhiCut,
caHardPtCut);

theLayerCache.clear();

unsigned int numberOfFoundTriplets = foundTriplets.size();

const QuantityDependsPtEval maxChi2Eval = maxChi2.evaluator(es);
Expand Down
Expand Up @@ -10,7 +10,8 @@
),
useBendingCorrection = cms.bool(False),
CAThetaCut = cms.double(0.00125),
CAPhiCut = cms.double(1),
CAPhiCut = cms.double(0.1),
CAHardPtCut = cms.double(0),
)


@@ -0,0 +1,38 @@
import FWCore.ParameterSet.Config as cms

def customiseForTripletsByCellularAutomaton(process):
for module in process._Process__producers.values():
if not hasattr(module, "OrderedHitsFactoryPSet"):
continue
pset = getattr(module, "OrderedHitsFactoryPSet")
if not hasattr(pset, "ComponentName"):
continue
if not (pset.ComponentName == "StandardHitTripletGenerator"):
continue
# Adjust seeding layers
seedingLayersName = module.OrderedHitsFactoryPSet.SeedingLayers.getModuleLabel()



# Configure seed generator / pixel track producer
Triplets = module.OrderedHitsFactoryPSet.clone()
from RecoPixelVertexing.PixelTriplets.CAHitTripletGenerator_cfi import CAHitTripletGenerator as _CAHitTripletGenerator

module.OrderedHitsFactoryPSet = _CAHitTripletGenerator.clone(
ComponentName = cms.string("CAHitTripletGenerator"),
extraHitRPhitolerance = Triplets.GeneratorPSet.extraHitRPhitolerance,
maxChi2 = dict(
pt1 = 0.8, pt2 = 2,
value1 = 20, value2 = 10,
enabled = True,
),
useBendingCorrection = True,
SeedingLayers = cms.InputTag(seedingLayersName),
CAThetaCut = cms.double(0.0015),
CAPhiCut = cms.double(0.01),
CAHardPtCut = cms.double(0),
)

if hasattr(Triplets.GeneratorPSet, "SeedComparitorPSet"):
pset.SeedComparitorPSet = Triplets.GeneratorPSet.SeedComparitorPSet
return process
Expand Up @@ -33,6 +33,7 @@ def customiseForTripletsHLTPixelTracksByCellularAutomaton(process):
SeedingLayers = cms.InputTag(seedingLayersName),
CAThetaCut = cms.double(0.0015),
CAPhiCut = cms.double(0.01),
CAHardPtCut = cms.double(0),
)

if hasattr(triplets.GeneratorPSet, "SeedComparitorPSet"):
Expand Down