Add an option to use the angular distance instead of cartesian for IsolatedHitMergingAlgorithm - #34
Conversation
andresailer
left a comment
There was a problem hiding this comment.
Looks generally good. Just some minor nitpicking.
| minDistance = distance; | ||
| pBestHostCluster = cache.pCluster; | ||
| bestHostClusterEnergy = cache.energy; |
There was a problem hiding this comment.
Either align all on the = or don't align any.
There was a problem hiding this comment.
Fixed (now align all =)
| PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::GetCurrentList(*this, pCaloHitList)); | ||
|
|
||
| for (CaloHitList::const_iterator hitIterI = pCaloHitList->begin(); hitIterI != pCaloHitList->end(); ++hitIterI) | ||
| for (CaloHitList::const_iterator hitIter = pCaloHitList->begin(); hitIter != pCaloHitList->end(); ++hitIter) |
There was a problem hiding this comment.
Why not go for a range based loop here, when you change the variable anyway? Although I don't understand why the variable name was changed.
There was a problem hiding this comment.
Now I use the range-based loop here (indeed there was no reason to use iterator here)
|
|
||
| //------------------------------------------------------------------------------------------------------------------------------------------ | ||
|
|
||
| StatusCode IsolatedHitMergingAlgorithm::GetDistanceToHit(const ClusterCache &cache, |
There was a problem hiding this comment.
Why change the return type of this function? Am I missing where this does not return STATUS_CODE_SUCCESS?
There was a problem hiding this comment.
Now this function returns float same as before.
Add an option to use the angular distance instead of cartesian for
IsolatedHitMergingAlgorithm. Stripped from #33 asIsolatedHitMergingAlgorithmis being used in CLD'sPandoraSettingsDefault.xml.Validated that the behavior is bit-by-bit identical when using the default values for the new options, using k4GaudiPandora's
run_Pandora_ttbarCI workflow and the following comparison script (similar to the existingcompare-pfos.pyscript, but Gaudi vs Gaudi instead marlin vs Gaudi).compare-gaudi-identical.py (click to expand)