Changeset 70bb4cb in git for modules/UniqueObjectFinder.cc
- Timestamp:
- Jan 22, 2019, 5:04:07 PM (6 years ago)
- Branches:
- ImprovedOutputFile, Timing, llp, master
- Children:
- 8a11cdc
- Parents:
- 3b3d0ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/UniqueObjectFinder.cc
r3b3d0ad r70bb4cb 67 67 void UniqueObjectFinder::Init() 68 68 { 69 // use GetUniqueID algorithm to find unique objects (faster than the default Overlaps method) 70 fUseUniqueID = GetBool("UseUniqueID", false); 71 69 72 // import arrays with output from other modules 70 73 … … 146 149 while((previousCandidate = static_cast<Candidate*>(iterator.Next()))) 147 150 { 148 if( candidate->Overlaps(previousCandidate))151 if(fUseUniqueID) 149 152 { 150 return kFALSE; 153 if(candidate->GetUniqueID() == previousCandidate->GetUniqueID()) 154 { 155 return kFALSE; 156 } 157 } 158 else 159 { 160 if(candidate->Overlaps(previousCandidate)) 161 { 162 return kFALSE; 163 } 151 164 } 152 165 }
Note:
See TracChangeset
for help on using the changeset viewer.