34 theClusterShapeCacheToken(
73 const std::vector<SeedingLayerSetsHits::SeedingLayer>& thirdLayers) {
91 int size = thirdLayers.size();
95 for (
int il = 0; il <
size; il++)
102 for (OrderedHitPairs::const_iterator ip = pairs.begin(); ip != pairs.end(); ip++) {
104 vector<const TrackingRecHit*>
recHits(3);
105 vector<GlobalPoint>
points(3);
107 recHits[0] = (*ip).inner()->hit();
108 recHits[1] = (*ip).outer()->hit();
114 for (
int i = 0;
i < 2;
i++)
122 for (
int il = 0; il <
size; il++) {
126 cerr <<
" check layer " <<
layer->subDetector() <<
" " <<
layer->location() << endl;
138 vector<Hit> thirdHits = thirdHitMap[il]->
hits(phiRange.
min(), phiRange.
max());
139 typedef vector<Hit>::const_iterator IH;
141 for (IH th = thirdHits.begin(), eh = thirdHits.end(); th < eh; ++th) {
151 vector<GlobalVector> globalDirs;
154 cerr <<
" not compatible: multiple scattering" << endl;
178 cerr <<
" not compatible: cluster shape" << endl;
189 delete[] thirdHitMap;
198 const std::vector<const DetLayer*>& thirdLayerDetLayer,
199 const int nThirdLayers) {
200 throw cms::Exception(
"Error") <<
"PixelTripletLowPtGenerator::hitTriplets is not implemented \n";
PixelTripletLowPtGenerator(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
void getTracker(const edm::EventSetup &es)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > m_geomToken
void hitTriplets(const TrackingRegion ®ion, OrderedHitTriplets &trs, const edm::Event &ev, const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayerSet &pairLayers, const std::vector< SeedingLayerSetsHits::SeedingLayer > &thirdLayers) override
edm::ESGetToken< ClusterShapeHitFilter, CkfComponentsRecord > m_clusterFilterToken
constexpr std::array< uint8_t, layerIndexSize > layer
std::unique_ptr< TripletFilter > theFilter
bool checkMultipleScattering
LayerCacheType * theLayerCache
bool getData(T &iHolder) const
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > m_magfieldToken
const TrackerGeomDet * idToDet(DetId) const override
std::vector< Hit > hits(float phiMin, float phiMax) const
edm::EDGetTokenT< SiPixelClusterShapeCache > theClusterShapeCacheToken
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
SeedingHitSet::ConstRecHitPointer Hit
BaseTrackerRecHit const * Hit
std::unique_ptr< HitPairGeneratorFromLayerPair > thePairGenerator
const TrackerGeometry * theTracker
GlobalPoint getGlobalPosition(const TrackingRecHit *recHit)
void getRanges(const DetLayer *layer, float phi[], float rz[])
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
~PixelTripletLowPtGenerator() override
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > m_msmakerToken
double nSigMultipleScattering
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > m_topoToken
edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > m_ttrhBuilderToken
bool isCompatibleWithMultipleScattering(GlobalPoint g3, const std::vector< const TrackingRecHit *> &h, std::vector< GlobalVector > &localDirs, const MultipleScatteringParametrisationMaker &msmaker)