![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
48 #include "GaudiKernel/IChronoStatSvc.h"
57 ISvcLocator* pSvcLocator)
60 , m_towerCellLinkOutput(
"")
61 , m_towerMakerTool(this)
62 , m_towerCorrectionTools(this)
63 , m_towerCalibratorTool(this)
64 , m_chrono(
"ChronoStatSvc",
name)
101 ATH_MSG_ERROR(
"Failed to retrieve essential tower maker tool"
110 ATH_MSG_ERROR(
"Failed to retrieve requested tower correction tools "
113 ATH_MSG_DEBUG(
"Successfully retrieved tower correction tools "
127 msg(MSG::INFO) <<
"Will use ChronoStatSvc to monitor ClusterMaker and ClusterCorrection tools" <<
endmsg;
141 return StatusCode::SUCCESS;
147 return StatusCode::SUCCESS;
159 std::string chronoName(this->
name()+std::string(
"_"));
168 fClus->setRawE (fClus->e() );
169 fClus->setRawEta(fClus->eta());
170 fClus->setRawPhi(fClus->phi());
171 fClus->setRawM (fClus->m() );
189 fClus->setRawE (fClus->e() );
190 fClus->setRawEta(fClus->eta());
191 fClus->setRawPhi(fClus->phi());
192 fClus->setRawM (fClus->m() );
207 ATH_MSG_DEBUG(
"Created tower container (of type xAOD::CaloClusterContainer) with " << clusColl->
size() <<
" towers");
211 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const CaloCell_ID * m_caloCellID
Identifier helper.
ToolHandle< CaloTowerCollectionProcessor > m_towerMakerTool
Tower makers.
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool m_chronoTools
Use ChronotStatSvc to monitor each tool.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
ToolHandle< CaloTowerCollectionProcessor > m_towerCalibratorTool
Tower calibrator(s)
Description of a calorimeter cluster.
CaloTopoTowerMaker(const std::string &name, ISvcLocator *pSvcLocator)
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
virtual StatusCode initialize() override
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_towerOutput
the name of the key in StoreGate for the output CaloClusterContainer
const std::string & getOutputContainerName() const
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_towerCellLinkOutput
the name of the key in StoreGate for the output CaloClusterCellLinkContainer
virtual StatusCode execute(const EventContext &ctx) const override
Helpers for checking error return status codes and reporting errors.
bool m_useLCWCalibration
Use LCW calibration for topo-towers (default is true)
bool m_saveSignalState
Keep the individual results of each correction.
size_type size() const noexcept
Returns the number of elements in the collection.
ToolHandleArray< CaloClusterCollectionProcessor > m_towerCorrectionTools
Tower (cluster) moment makers.
ServiceHandle< IChronoStatSvc > m_chrono
Handle to the ChronoStatSvc.
virtual ~CaloTopoTowerMaker() override
virtual StatusCode finalize() override
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size