File indexing completed on 2024-04-06 12:29:01
0001 #include "RecoTracker/TransientTrackingRecHit/interface/TkTransientTrackingRecHitBuilder.h"
0002
0003
0004
0005 #include "FWCore/Utilities/interface/Exception.h"
0006
0007 #include "DataFormats/TrackingRecHit/interface/InvalidTrackingRecHit.h"
0008 #include "DataFormats/TrackerRecHit2D/interface/SiStripMatchedRecHit2D.h"
0009 #include "DataFormats/TrackerRecHit2D/interface/ProjectedSiStripRecHit2D.h"
0010 #include "RecoTracker/TransientTrackingRecHit/interface/ProjectedRecHit2D.h"
0011
0012
0013
0014 #include "Utilities/General/interface/ClassName.h"
0015 #include <typeinfo>
0016
0017 TkTransientTrackingRecHitBuilder::TkTransientTrackingRecHitBuilder(const TrackingGeometry* trackingGeometry,
0018 const PixelClusterParameterEstimator* pCPE,
0019 const StripClusterParameterEstimator* sCPE,
0020 const SiStripRecHitMatcher* matcher,
0021 bool computeCoarseLocalPositionFromDisk)
0022 : tGeometry_(trackingGeometry),
0023 pixelCPE(pCPE),
0024 stripCPE(sCPE),
0025 theMatcher(matcher),
0026 theComputeCoarseLocalPosition(computeCoarseLocalPositionFromDisk),
0027 phase2OTCPE(nullptr) {}
0028
0029 TkTransientTrackingRecHitBuilder::TkTransientTrackingRecHitBuilder(
0030 const TrackingGeometry* trackingGeometry,
0031 const PixelClusterParameterEstimator* pCPE,
0032 const ClusterParameterEstimator<Phase2TrackerCluster1D>* ph2StripCPE)
0033 : tGeometry_(trackingGeometry),
0034 pixelCPE(pCPE),
0035 stripCPE(nullptr),
0036 theMatcher(nullptr),
0037 theComputeCoarseLocalPosition(false),
0038 phase2OTCPE(ph2StripCPE) {}
0039
0040 TransientTrackingRecHit::RecHitPointer TkTransientTrackingRecHitBuilder::build(const TrackingRecHit* p) const {
0041
0042
0043 return (*p).cloneSH();
0044 }