 |
ATLAS Offline Software
|
Go to the documentation of this file.
12 const std::string&
type,
13 const std::string&
name,
16 , m_selectionString(
"")
19 declareProperty(
"deltaR",
m_dr = 0.5);
27 ATH_CHECK(m_InputCellsSGKey.initialize());
28 ATH_CHECK(m_OutputClusterSGKey.initialize());
29 ATH_CHECK(m_OutputCellLinkSGKey.initialize());
32 if (!m_selectionString.empty()) {
33 ATH_CHECK(initializeParser(m_selectionString));
35 return StatusCode::SUCCESS;
42 return StatusCode::SUCCESS;
57 ATH_MSG_ERROR(
"Couldn't retrieve egamma container with key: " << m_SGKey);
58 return StatusCode::FAILURE;
61 unsigned int nEgammas(egammas->
size());
63 return StatusCode::SUCCESS;
70 "Couldn't retrieve cell container with key: " << m_InputCellsSGKey);
71 return StatusCode::FAILURE;
78 if (!m_selectionString.empty()) {
79 std::vector<int>
entries = m_parser->evaluateAsVector();
83 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your selection string "
84 "used e-gamma objects");
85 return StatusCode::FAILURE;
108 m_OutputCellLinkSGKey);
111 return StatusCode::SUCCESS;
static std::unique_ptr< xAOD::CaloCluster > makeCluster(const CaloCellContainer *cellCont)
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
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...
const_pointer_type cptr()
Dereference the pointer.
StatusCode addBranches() const
void egammaSelect(xAOD::CaloCluster *inputCl, const CaloCellContainer *inputcells, const CaloDetDescrManager *caloMgr, const xAOD::Egamma *eg, const double dr)
CellsInConeThinning(const std::string &type, const std::string &name, const IInterface *parent)
Description of a calorimeter cluster.
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
Container class for CaloCell.
This class provides the client interface for accessing the detector description information common to...
size_type size() const noexcept
Returns the number of elements in the collection.