- Timestamp:
- May 18, 2016, 11:25:44 AM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 5658083
- Parents:
- 786028a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/VertexFinder.cc
r786028a r641cb3d 121 121 if (!clusterIDToInt.at (cluster->first).at ("ndf")) 122 122 continue; 123 123 124 // Grow the cluster if GrowSeeds is true 124 125 if (fGrowSeeds) … … 127 128 // If the cluster still has fewer than MinNDF tracks, release the tracks; 128 129 // otherwise, mark the seed track as claimed 130 129 131 if ((int) clusterIDToInt.at (cluster->first).at ("ndf") < fMinNDF) 130 132 { … … 162 164 for (map<unsigned, map<string, int> >::const_iterator cluster = clusterIDToInt.begin (); cluster != clusterIDToInt.end (); cluster++) 163 165 { 166 164 167 if (cluster->second.at ("ndf") < fMinNDF) 165 168 continue; … … 167 170 } 168 171 sort (clusterSumPT2.begin (), clusterSumPT2.end (), secondDescending); 172 169 173 for (vector<pair<unsigned, double> >::const_iterator cluster = clusterSumPT2.begin (); cluster != clusterSumPT2.end (); cluster++) 170 174 { … … 272 276 if (!nearTracks.size ()) 273 277 { 274 for (map<unsigned, map<string, double> >::const_iterator track = trackIDToDouble.begin (); track != trackIDToDouble.end (); track++) 278 279 for (map<unsigned, map<string, double> >::const_iterator track = trackIDToDouble.begin (); track != trackIDToDouble.end (); track++) 275 280 { 276 281 if (trackIDToBool.at (track->first).at ("claimed") || trackIDToInt.at (track->first).at ("clusterIndex") == (int) clusterIndex) 277 282 continue; 283 284 Double_t sz_tr = track->second.at ("ez") * track->second.at ("z"); 285 Double_t sz_vt = clusterIDToDouble.at (clusterIndex).at ("ez") * clusterIDToDouble.at (clusterIndex).at ("z"); 286 278 287 double distance = fabs (clusterIDToDouble.at (clusterIndex).at ("z") - track->second.at ("z")) / hypot (clusterIDToDouble.at (clusterIndex).at ("ez"), track->second.at ("ez")); 288 //double distance = fabs (clusterIDToDouble.at (clusterIndex).at ("z") - track->second.at ("z")) / hypot (sz_vt, sz_tr); 279 289 if (nearestDistance < 0.0 || distance < nearestDistance) 280 290 { … … 286 296 } 287 297 } 298 288 299 else 289 300 { … … 300 311 } 301 312 } 302 313 303 314 // If no tracks within Sigma of the cluster were found, stop growing. 304 315 done = nearestDistance > fSigma || nearestDistance < 0.0;
Note:
See TracChangeset
for help on using the changeset viewer.