Skip to content
Snippets Groups Projects

Make CaloClusterizationTool const

Merged Carla Marin Benito requested to merge caloreco_caloclusterizationtool into master
Files
4
@@ -12,7 +12,6 @@
// ============================================================================
#include "CaloUtils/ClusterFunctors.h"
#include "CaloUtils/CaloNeighbours.h"
#include "CaloInterfaces/ICounterLevel.h"
// local
#include "CaloClusterizationTool.h"
#include "TaggedCellFunctor.h"
@@ -127,7 +126,7 @@ inline StatusCode CaloClusterizationTool::setEXYCluster( LHCb::CaloCluster* clus
cluster->entries().end () ,
detector , E , X , Y );
///
if(counterStat->isVerbose())counter("Cluster energy") += E;
m_clusterEnergy += E;
if( sc.isSuccess() ){
cluster->position().parameters()( LHCb::CaloPosition::E ) = E ;
cluster->position().parameters()( LHCb::CaloPosition::X ) = X ;
@@ -147,7 +146,6 @@ StatusCode CaloClusterizationTool::initialize()
if( sc.isFailure() )
{ return Error("Could not initialize base class CaloAlgorithm",sc);}
counterStat = tool<ICounterLevel>("CounterLevel");
return StatusCode::SUCCESS;
}
@@ -352,7 +350,7 @@ unsigned int CaloClusterizationTool::_clusterize( std::vector<LHCb::CaloCluster*
if( digit->e() <= 0 ) {
itTagSeed++;
if(counterStat->isQuiet())counter("Negative seed energy") += digit->e();
m_negativeSeed += digit->e();
continue; // does not keep cluster with seed.energy <= 0
}
@@ -398,7 +396,7 @@ unsigned int CaloClusterizationTool::_clusterize( std::vector<LHCb::CaloCluster*
cluster->position().setZ( zPosition( cluster.get() ) );
// put cluster to the output
clusters.push_back( cluster.release() );
if(counterStat->isVerbose())counter("Cluster size")+= clusters.back()->entries().size();
m_clusterEnergy += clusters.back()->entries().size();
}
itTagClustered1 = itTagClustered2;
itTagSeed++;
Loading