10 #include <hlt/softwaretrigger/calculations/utilities.h>
17 namespace SoftwareTrigger {
18 double getRhoOfECLClusterWithMaximumRhoBelow(
const StoreObjPtr<ParticleList>& pions,
19 const StoreObjPtr<ParticleList>& gammas,
20 const double belowLimit)
22 double maximumRho = -1.;
24 for (
const Particle& particle : *pions) {
25 const ECLCluster* tmpCluster = particle.getECLCluster();
30 const double& currentRho = getRho(tmpCluster);
32 if (currentRho >= belowLimit) {
36 if (currentRho > maximumRho) {
37 maximumRho = currentRho;
41 for (
const Particle& particle : *gammas) {
42 const ECLCluster* tmpCluster = particle.getECLCluster();
47 const double& currentRho = getRho(tmpCluster);
49 if (currentRho >= belowLimit) {
53 if (currentRho > maximumRho) {
54 maximumRho = currentRho;