Skip to content

Commit

Permalink
Merge pull request #40003 from mmusich/CPEFastTrackRefitter
Browse files Browse the repository at this point in the history
add a `TransientTrackingRechitBuilder` for `CPEFast`
  • Loading branch information
cmsbuild authored Nov 14, 2022
2 parents 39ddd42 + fd4f0a4 commit 83efc18
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions RecoLocalTracker/SiPixelRecHits/src/PixelCPEFast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,6 @@ void PixelCPEFast::errorFromTemplates(DetParam const& theDetParam,
LocalPoint PixelCPEFast::localPosition(DetParam const& theDetParam, ClusterParam& theClusterParamBase) const {
ClusterParamGeneric& theClusterParam = static_cast<ClusterParamGeneric&>(theClusterParamBase);

assert(!theClusterParam.with_track_angle);

if (useErrorsFromTemplates_) {
errorFromTemplates(theDetParam, theClusterParam, theClusterParam.theCluster->charge());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ TkTransientTrackingRecHitBuilderESProducer::TkTransientTrackingRecHitBuilderESPr
ppToken_ = c.consumes(edm::ESInputTag("", pname));
}

if (pname == "PixelCPEFast") {
edm::LogWarning("TkTransientTrackingRecHitBuilderESProducer")
<< "\n\t\t WARNING!\n 'PixelCPEFast' has been chosen as PixelCPE choice.\n"
<< " Track angles will NOT be used in the CPE estimation!\n";
}

auto const mname = p.getParameter<std::string>("Matcher");
if (mname != "Fake") {
mpToken_ = c.consumes(edm::ESInputTag("", mname));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from RecoTracker.TkSeedingLayers.TTRHBuilderWithoutAngle4PixelPairs_cfi import *
from RecoTracker.TkSeedingLayers.TTRHBuilderWithoutAngle4PixelTriplets_cfi import *
#TransientTRH builder with template
from RecoLocalTracker.SiPixelRecHits.PixelCPEFastESProducer_cfi import *
from RecoLocalTracker.SiPixelRecHits.PixelCPETemplateReco_cfi import *
from RecoLocalTracker.SiPixelRecHits.PixelCPEClusterRepair_cfi import *
from RecoLocalTracker.Phase2TrackerRecHits.Phase2StripCPEESProducer_cfi import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
Matcher = 'StandardMatcher',
ComputeCoarseLocalPositionFromDisk = False)

TTRHBuilderFast = ttrhbwr.clone(ComponentName = 'WithoutAngleFast',
PixelCPE = 'PixelCPEFast')

from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
trackingPhase2PU140.toModify(ttrhbwr,
Phase2StripCPE = 'Phase2StripCPE',
Expand Down

0 comments on commit 83efc18

Please sign in to comment.