#include <LowPtClusterShapeSeedComparitor.h>
◆ LowPtClusterShapeSeedComparitor()
Definition at line 79 of file LowPtClusterShapeSeedComparitor.cc.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
std::string theShapeFilterLabel_
const edm::ESGetToken< ClusterShapeHitFilter, CkfComponentsRecord > clusterShapeHitFilterESToken_
edm::EDGetTokenT< SiPixelClusterShapeCache > thePixelClusterShapeCacheToken
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyESToken_
◆ ~LowPtClusterShapeSeedComparitor()
LowPtClusterShapeSeedComparitor::~LowPtClusterShapeSeedComparitor |
( |
| ) |
|
|
inlineoverride |
◆ compatible() [1/3]
bool LowPtClusterShapeSeedComparitor::compatible |
( |
const SeedingHitSet & |
hits | ) |
const |
|
overridevirtual |
Implements SeedComparitor.
Definition at line 94 of file LowPtClusterShapeSeedComparitor.cc.
References cms::cuda::assert(), Exception, HitInfo::getInfo(), hfClusterShapes_cfi::hits, mps_fire::i, TrackingRecHit::isValid(), LogDebug, LogTrace, and convertSQLiteXML::ok.
100 throw cms::Exception(
"LogicError") <<
"LowPtClusterShapeSeedComparitor: init(EventSetup) method was not called";
104 getGlobalPos(
hits, globalPoss);
109 bool ok = getGlobalDirs(globalPoss, globalDirs);
115 LogDebug(
"LowPtClusterShapeSeedComparitor") <<
"curvarture 0:" 116 <<
"\nnHits: " <<
hits.size() <<
" will say the seed is good anyway.";
120 for (
int i = 0;
i < 3;
i++) {
124 edm::LogError(
"LowPtClusterShapeSeedComparitor") <<
"this is not a pixel cluster";
134 LogDebug(
"LowPtClusterShapeSeedComparitor") <<
"about to compute compatibility." 135 <<
"hit ptr: " << pixelRecHit <<
"global direction:" << globalDirs[
i];
138 LogTrace(
"LowPtClusterShapeSeedComparitor")
const TrackerTopology * trackerTopology_
Log< level::Error, false > LogError
bool isCompatible(const SiPixelRecHit &recHit, const LocalVector &ldir, const SiPixelClusterShapeCache &clusterShapeCache, PixelData const *pd=nullptr) const
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
edm::Handle< SiPixelClusterShapeCache > thePixelClusterShapeCache
const ClusterShapeHitFilter * clusterShapeHitFilter_
◆ compatible() [2/3]
◆ compatible() [3/3]
◆ init()
Implements SeedComparitor.
Definition at line 88 of file LowPtClusterShapeSeedComparitor.cc.
References clusterShapeHitFilter_, clusterShapeHitFilterESToken_, MillePedeFileConverter_cfg::e, edm::EventSetup::getData(), thePixelClusterShapeCache, thePixelClusterShapeCacheToken, trackerTopology_, and trackerTopologyESToken_.
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
const TrackerTopology * trackerTopology_
const edm::ESGetToken< ClusterShapeHitFilter, CkfComponentsRecord > clusterShapeHitFilterESToken_
edm::Handle< SiPixelClusterShapeCache > thePixelClusterShapeCache
edm::EDGetTokenT< SiPixelClusterShapeCache > thePixelClusterShapeCacheToken
const ClusterShapeHitFilter * clusterShapeHitFilter_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyESToken_
◆ clusterShapeHitFilter_
◆ clusterShapeHitFilterESToken_
◆ thePixelClusterShapeCache
◆ thePixelClusterShapeCacheToken
◆ theShapeFilterLabel_
std::string LowPtClusterShapeSeedComparitor::theShapeFilterLabel_ |
|
private |
◆ trackerTopology_
const TrackerTopology* LowPtClusterShapeSeedComparitor::trackerTopology_ = nullptr |
|
private |
◆ trackerTopologyESToken_