17 init(theGeometry, tTopo);
33 init(theGeometry,tTopo);
81 for(
unsigned int i=0;
i<theLayersInSets.size(); ++
i) {
91 for(
unsigned int i=0;
i<theLayersInSets.size(); ++
i){
93 theLayersInSets[
i][1].subDet==theSeedHitSecond.
subDetId() && theLayersInSets[
i][1].idLayer==theSeedHitSecond.
layerNumber()
102 for(
unsigned int i=0;
i<theLayersInSets.size(); ++
i){
104 theLayersInSets[
i][1].subDet==theSeedHitSecond.
subDetId() && theLayersInSets[
i][1].idLayer==theSeedHitSecond.
layerNumber() &&
105 theLayersInSets[
i][2].subDet==theSeedHitThird.
subDetId() && theLayersInSets[
i][2].idLayer==theSeedHitThird.
layerNumber()
116 bool isOnDet =
false;
118 for (
unsigned idet=0; idet<whichDet.size(); ++idet ) {
120 switch ( whichDet[idet] ) {
144 if(seedingAlgo ==
"TobTecLayerPairs"){
153 if(seedingAlgo ==
"PixelLessPairs"){
155 }
else if (seedingAlgo ==
"TobTecLayerPairs"){
158 }
else if (seedingAlgo ==
"MixedTriplets"){
163 std::cout <<
"DEBUG - this should never happen" << std::endl;
175 if ( isOnDet )
break;
185 bool isAProperPair =
false;
187 unsigned int anotherSubDetId = anotherHit.
subDetId();
188 unsigned int anotherLayerNumber = anotherHit.
layerNumber();
192 ( anotherSubDetId == 1 && anotherLayerNumber == 2) ||
193 ( anotherSubDetId == 1 && anotherLayerNumber == 3) ||
194 ( anotherSubDetId == 2 && anotherLayerNumber == 1) ||
195 ( anotherSubDetId == 2 && anotherLayerNumber == 2) ) ) ||
198 ( anotherSubDetId == 1 && anotherLayerNumber == 3) ||
199 ( anotherSubDetId == 2 && anotherLayerNumber == 1) ||
200 ( anotherSubDetId == 2 && anotherLayerNumber == 2) ) ) ||
203 ( anotherSubDetId == 2 && anotherLayerNumber == 2 ) ) ||
206 ( anotherSubDetId == 6 && anotherLayerNumber == 1 ) ||
207 ( anotherSubDetId == 6 && anotherLayerNumber == 2 ) ) ) ||
210 ( anotherSubDetId == 6 && anotherLayerNumber == 2 ) ) ||
213 ( anotherSubDetId == 6 && anotherLayerNumber == 3 ) ) ||
218 (( anotherSubDetId == 3 && anotherLayerNumber == 2 ) ||
219 ( anotherSubDetId == 4 && anotherLayerNumber == 1 )) ) ||
222 ( anotherSubDetId == 4 && anotherLayerNumber == 2 ) ) ||
225 ( anotherSubDetId == 4 && anotherLayerNumber == 3 ) ) ||
228 ( anotherSubDetId == 6 && anotherLayerNumber == 1 ) ) ||
231 ( ( anotherSubDetId == 6 && anotherLayerNumber == 4 ) ||
232 ( anotherSubDetId == 6 && anotherLayerNumber == 5 )) ) ||
235 ( anotherSubDetId == 6 && anotherLayerNumber == 5 ) ) ||
240 (( anotherSubDetId == 5 && anotherLayerNumber == 2 ) ||
241 ( anotherSubDetId == 6 && anotherLayerNumber == 1 )) ) ||
244 ( anotherSubDetId == 6 && anotherLayerNumber == 2 ) ) ||
247 ( anotherSubDetId == 6 && anotherLayerNumber == 3 ) ) ||
250 ( anotherSubDetId == 6 && anotherLayerNumber == 4 ) ) ||
254 ( anotherSubDetId == 6 && anotherLayerNumber == 5 ) ) ||
257 ( anotherSubDetId == 6 && anotherLayerNumber == 6 ) ) ||
260 ( anotherSubDetId == 6 && anotherLayerNumber == 7 ) ) ;
262 return isAProperPair;
269 bool isAProperPair =
false;
271 unsigned int anotherSubDetId = anotherHit.
subDetId();
272 unsigned int anotherLayerNumber = anotherHit.
layerNumber();
276 ( anotherSubDetId == 1 && anotherLayerNumber == 2) ||
277 ( anotherSubDetId == 2 && anotherLayerNumber == 1) ) ) ||
280 ( anotherSubDetId == 1 && anotherLayerNumber == 3) ) ||
283 ( anotherSubDetId == 2 && anotherLayerNumber == 2) ) ||
286 ( anotherSubDetId == 6 && anotherLayerNumber == 2 ) );
288 return isAProperPair;
296 bool isAProperTriplet =
false;
298 unsigned int anotherSubDetId = anotherHit.
subDetId();
299 unsigned int anotherLayerNumber = anotherHit.
layerNumber();
300 unsigned int yetAnotherSubDetId = yetAnotherHit.
subDetId();
301 unsigned int yetAnotherLayerNumber = yetAnotherHit.
layerNumber();
305 ( anotherSubDetId == 1 && anotherLayerNumber == 2) && (
306 ( yetAnotherSubDetId == 1 && yetAnotherLayerNumber == 3) ||
307 ( yetAnotherSubDetId == 2 && yetAnotherLayerNumber == 1) ||
308 ( yetAnotherSubDetId == 3 && yetAnotherLayerNumber == 1) ) ) ||
311 ( anotherSubDetId == 1 && anotherLayerNumber == 3) &&
312 ( yetAnotherSubDetId == 3 && yetAnotherLayerNumber == 1) ) ||
315 ( anotherSubDetId == 1 && anotherLayerNumber == 3) &&
316 ( yetAnotherSubDetId == 3 && yetAnotherLayerNumber == 1) ) ||
319 ( anotherSubDetId == 2 && anotherLayerNumber == 1) && (
320 ( yetAnotherSubDetId == 2 && yetAnotherLayerNumber == 2) ||
321 ( yetAnotherSubDetId == 4 && yetAnotherLayerNumber == 1) ||
322 ( yetAnotherSubDetId == 4 && yetAnotherLayerNumber == 2) ) ) ||
325 ( anotherSubDetId == 2 && anotherLayerNumber == 2 ) && (
326 ( yetAnotherSubDetId == 6 && yetAnotherLayerNumber == 1 ) ||
327 ( yetAnotherSubDetId == 6 && yetAnotherLayerNumber == 2 ) ) ) ||
330 ( anotherSubDetId == 3 && anotherLayerNumber == 2 ) &&
331 ( yetAnotherSubDetId == 3 && yetAnotherLayerNumber == 3 ) );
333 return isAProperTriplet;
unsigned int theLayerNumber
unsigned int tibLayer(const DetId &id) const
unsigned int tidRing(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
unsigned int tidWheel(const DetId &id) const
unsigned int theCylinderNumber
TrackerRecHit()
Default Constructor.
unsigned int theRingNumber
bool makesATripletWith(const TrackerRecHit &anotherHit, const TrackerRecHit &yetAnotherHit) const
Check if a triplet is on the proper combination of detectors.
void init(const TrackerGeometry *theGeometry, const TrackerTopology *tTopo)
Initialization at construction time.
const GeomDet * theGeomDet
bool makesAPairWith3rd(const TrackerRecHit &anotherHit) const
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
virtual const GeomDet * idToDet(DetId) const
unsigned int pxbLayer(const DetId &id) const
unsigned int layerNumber() const
The Layer Number.
const GSSiTrackerRecHit2DLocalPos * hit() const
bool makesAPairWith(const TrackerRecHit &anotherHit) const
Check if a pair is on the proper combination of detectors.
bool isOnRequestedDet(const std::vector< unsigned int > &whichDet, const std::string &seedingAlgo) const
Check if the hit is on one of the requested detector.
unsigned int subDetId() const
The subdet Id.
DetId geographicalId() const
unsigned int tecWheel(const DetId &id) const
unsigned int tobLayer(const DetId &id) const