|
ATLAS Offline Software
|
Go to the documentation of this file.
19 std::unique_ptr<xAOD::CaloCluster> cluster = std::make_unique<xAOD::CaloCluster>();
21 if (cellCont) cluster->
addCellLink(std::make_unique<CaloClusterCellLink>(cellCont));
27 const double eta0,
const double phi0,
48 if (cellCont) cluster->
addCellLink(std::make_unique<CaloClusterCellLink>(cellCont));
57 clusColl.
record (std::make_unique<xAOD::CaloClusterContainer>(),
58 std::make_unique<xAOD::CaloClusterAuxContainer>());
67 auto cellLinks = std::make_unique<CaloClusterCellLinkContainer>();
73 cl->setLink(cellLinks.get(), sg);
76 return h.record (std::move (cellLinks));
81 const EventContext& ctx,
86 cl->setLink(outClusterContainerCellLink.
ptr(), ctx);
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
static std::unique_ptr< xAOD::CaloCluster > makeCluster(const CaloCellContainer *cellCont)
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
ClusterSize
Enumeration to identify different cluster sizes.
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...
static IProxyDict * store()
Fetch the current store.
Description of a calorimeter cluster.
void setPhi0(flt_t)
Set raw of cluster seed.
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
static void copyContainer(const xAOD::CaloClusterContainer *oldColl, xAOD::CaloClusterContainer *newColl)
Deep copy of a cluster container.
void clear()
Erase all the elements in the collection.
Helpers for checking error return status codes and reporting errors.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void makePrivateStore()
Create a new (empty) private store for this object.
Container class for CaloCell.
void addCellLink(CaloClusterCellLink *CCCL)
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
void setClusterSize(const ClusterSize)
Get cluster size.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
size_type size() const noexcept
Returns the number of elements in the collection.