|
ATLAS Offline Software
|
Go to the documentation of this file.
12 const std::string&
type,
13 const std::string&
name,
16 , m_selectionString(
"")
19 declareInterface<DerivationFramework::IAugmentationTool>(
this);
28 ATH_CHECK(m_InputCellsSGKey.initialize());
29 ATH_CHECK(m_OutputClusterSGKey.initialize());
30 ATH_CHECK(m_OutputCellLinkSGKey.initialize());
33 if (!m_selectionString.empty()) {
34 ATH_CHECK(initializeParser(m_selectionString));
36 return StatusCode::SUCCESS;
43 return StatusCode::SUCCESS;
58 ATH_MSG_ERROR(
"Couldn't retrieve egamma container with key: " << m_SGKey);
59 return StatusCode::FAILURE;
62 unsigned int nEgammas(egammas->
size());
64 return StatusCode::SUCCESS;
71 "Couldn't retrieve cell container with key: " << m_InputCellsSGKey);
72 return StatusCode::FAILURE;
79 if (!m_selectionString.empty()) {
80 std::vector<int>
entries = m_parser->evaluateAsVector();
84 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your selection string "
85 "used e-gamma objects");
86 return StatusCode::FAILURE;
109 m_OutputCellLinkSGKey);
112 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.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StatusCode addBranches() const
Pass the thinning service
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.