77 if (pairs.
size() == 0)
return;
83 for(
int il=0; il<
size; il++)
90 for(OrderedHitPairs::const_iterator ip = pairs.begin();
91 ip!= pairs.end(); ip++)
94 vector<const TrackingRecHit*> recHits(3);
95 vector<GlobalPoint> points(3);
97 recHits[0] = (*ip).inner()->hit();
98 recHits[1] = (*ip).outer()->hit();
105 for(
int i=0;
i<2;
i++)
110 thePrediction(region,
111 points[0],points[1], es,
115 for(
int il=0; il<
size; il++)
122 <<
" " << layer->
location() << endl;
127 thePrediction.getRanges(layer, phi,rz);
134 vector<Hit> thirdHits = thirdHitMap[il]->
hits(phiRange.min(),phiRange.max());
135 typedef vector<Hit>::const_iterator IH;
137 for (IH th=thirdHits.begin(), eh=thirdHits.end(); th < eh; ++th)
140 recHits[2] = (*th)->hit();
148 vector<GlobalVector> globalDirs;
149 if(thePrediction.isCompatibleWithMultipleScattering
150 (points[2], recHits, globalDirs, es) ==
false)
153 cerr <<
" not compatible: multiple scattering" << endl;
178 cerr <<
" not compatible: cluster shape" << endl;
189 delete [] thirdHitMap;
static std::string getInfo(const DetId &id)
void getTracker(const edm::EventSetup &es)
virtual Location location() const =0
Which part of the detector (barrel, endcap)
const DetLayer * detLayer() const
std::vector< Hit > hits(float phiMin, float phiMax) const
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
TripletFilter * theFilter
HitPairGenerator * thePairGenerator
virtual unsigned int size() const
virtual void hitPairs(const TrackingRegion ®, OrderedHitPairs &prs, const edm::EventSetup &es)
bool checkMultipleScattering
LayerCacheType * theLayerCache
std::vector< ctfseeding::SeedingLayer > theLayers
TransientTrackingRecHit::ConstRecHitPointer Hit
GlobalPoint getGlobalPosition(const TrackingRecHit *recHit)
bool checkTrack(std::vector< const TrackingRecHit * > recHits, std::vector< LocalVector > localDirs)
double nSigMultipleScattering
tuple size
Write out results.