|
ATLAS Offline Software
|
Go to the documentation of this file.
42 return StatusCode::SUCCESS;
49 std::unique_ptr<eflowRecClusterContainer> theEFRecClusterContainer =
m_clusterCollectionTool->retrieve(theEflowCaloObjectContainer,
true);
52 if (caloMgrHandle.isValid()){
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);
61 for (
auto thisCaloCluster : *tempClusterContainer){
73 return StatusCode::SUCCESS;
77 return StatusCode::SUCCESS;
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;
This class extends the information about a xAOD::CaloCluster.
Base class for cluster processing tools called from CaloClusterMaker that operate on individual clust...
const_cell_iterator cell_begin() const
Iterator of the underlying CaloClusterCellLink (const version)
IdentifierHash calo_cell_hash(const Identifier cellId) const
create hash id from 'global' cell id
virtual void setStatus(const StatusIndicator &statusIndicator)
Set status.
const std::map< IdentifierHash, double > & getCellsWeight() const
Definition of CaloDetDescrManager.
Description of a calorimeter cluster.
::StatusCode StatusCode
StatusCode definition for legacy code.
xAOD::CaloCluster * getCluster()
Helper class for offline cell identifiers.
void reweightCell(cell_iterator it, const double weight)
Method to reweight a cell in the cluster (Beware: Kinematics not updated!)
CaloRecoStatus & recoStatus()
Accesssor to CaloRecoStatus (non-const)
StatusCode initialize(bool used=true)
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
This class provides the client interface for accessing the detector description information common to...
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
const_cell_iterator cell_end() const
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.
const CaloCell_ID * getCaloCell_ID() const
get calo cell ID helper
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...