19 base_class(
type, name, parent)
42 return StatusCode::SUCCESS;
49 std::unique_ptr<eflowRecClusterContainer> theEFRecClusterContainer =
m_clusterCollectionTool->retrieve(theEflowCaloObjectContainer,
true);
53 for (
auto thisEFlowRecCluster : *theEFRecClusterContainer)
applyLocalWeight(thisEFlowRecCluster,**caloMgrHandle);
55 else ATH_MSG_WARNING(
"Invalid pointer to CaloDetDescrManage: Did NOT calibrate any topoclusters.");
58 std::unique_ptr<xAOD::CaloClusterContainer> tempClusterContainer =
m_clusterCollectionTool->execute(theEflowCaloObjectContainer,
true);
59 const EventContext& ctx=Gaudi::Hive::currentContext();
61 for (
auto thisCaloCluster : *tempClusterContainer){
73 return StatusCode::SUCCESS;
77 return StatusCode::SUCCESS;
83 ATH_CHECK(calibTool->execute(ctx,cluster));
84 return StatusCode::SUCCESS;
91 const std::map<IdentifierHash, double> weightMap = theEFRecClusters->
getCellsWeight();
96 for (;cellIter != theCluster->
cell_end(); ++cellIter) {
99 if (
const auto pWeight = weightMap.find(myHashId); pWeight!=weightMap.end()){
100 const double weight = pWeight->second;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Base class for cluster processing tools called from CaloClusterMaker that operate on individual clust...
Definition of CaloDetDescrManager.
IdentifierHash calo_cell_hash(const Identifier cellId) const
create hash id from 'global' cell id
Helper class for offline cell identifiers.
Data object for each calorimeter readout cell.
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
static void calculateKine(xAOD::CaloCluster *clu, const bool useweight=true, const bool updateLayers=true, const bool useGPUCriteria=false)
Helper class to calculate cluster kinematics based on cells.
This class provides the client interface for accessing the detector description information common to...
const CaloCell_ID * getCaloCell_ID() const
get calo cell ID helper
virtual void setStatus(const StatusIndicator &statusIndicator)
Set status.
This is a "hash" representation of an Identifier.
This class extends the information about a xAOD::CaloCluster.
xAOD::CaloCluster * getCluster()
const std::map< IdentifierHash, double > & getCellsWeight() const
void reweightCell(cell_iterator it, const double weight)
Method to reweight a cell in the cluster (Beware: Kinematics not updated!)
CaloClusterCellLink::iterator cell_iterator
Iterator of the underlying CaloClusterCellLink (non-const version)
const_cell_iterator cell_end() const
const_cell_iterator cell_begin() const
Iterator of the underlying CaloClusterCellLink (const version)
CaloRecoStatus & recoStatus()
Accesssor to CaloRecoStatus (non-const)
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.