32 theClusterShapeCacheToken(
54 theFilter = std::make_unique<TripletFilter>(es);
71 const std::vector<SeedingLayerSetsHits::SeedingLayer>& thirdLayers) {
89 int size = thirdLayers.size();
93 for (
int il = 0; il <
size; il++)
100 for (OrderedHitPairs::const_iterator ip = pairs.begin(); ip != pairs.end(); ip++) {
102 vector<const TrackingRecHit*>
recHits(3);
103 vector<GlobalPoint>
points(3);
105 recHits[0] = (*ip).inner()->hit();
106 recHits[1] = (*ip).outer()->hit();
112 for (
int i = 0;
i < 2;
i++)
120 for (
int il = 0; il <
size; il++) {
124 cerr <<
" check layer " <<
layer->subDetector() <<
" " <<
layer->location() << endl;
136 vector<Hit> thirdHits = thirdHitMap[il]->
hits(phiRange.
min(), phiRange.
max());
137 typedef vector<Hit>::const_iterator IH;
139 for (IH th = thirdHits.begin(), eh = thirdHits.end(); th < eh; ++th) {
149 vector<GlobalVector> globalDirs;
152 cerr <<
" not compatible: multiple scattering" << endl;
176 cerr <<
" not compatible: cluster shape" << endl;
187 delete[] thirdHitMap;
196 const std::vector<const DetLayer*>& thirdLayerDetLayer,
197 const int nThirdLayers) {
198 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
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)