#include <CaloClusterStoreHelper.h>
Definition at line 20 of file CaloClusterStoreHelper.h.
◆ AddContainerWriteHandle()
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and records them to SG.
- Parameters
-
| clusColl | SG write handle key of ClusterContainer |
- Returns
- status code indicating sucess or failure
Definition at line 53 of file CaloClusterStoreHelper.cxx.
53 {
54
55
57 clusColl.
record (std::make_unique<xAOD::CaloClusterContainer>(),
58 std::make_unique<xAOD::CaloClusterAuxContainer>());
60}
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ copyContainer()
Deep copy of a cluster container.
- Parameters
-
| old | The container to copy. |
- Returns
- Copy of the container and its clusters (an owning DV).
Definition at line 91 of file CaloClusterStoreHelper.cxx.
91 {
92
97 *newClu=*oldCluster;
98
99 }
100 }
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
void clear()
Erase all the elements in the collection.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
◆ finalizeClusters() [1/2]
Definition at line 80 of file CaloClusterStoreHelper.cxx.
84{
86 cl->setLink(outClusterContainerCellLink.
ptr(), ctx);
87 }
88}
pointer_type ptr()
Dereference the pointer.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
◆ finalizeClusters() [2/2]
Finalize clusters (move CaloClusterCellLink to a separate container).
Definition at line 64 of file CaloClusterStoreHelper.cxx.
66{
67 auto cellLinks = std::make_unique<CaloClusterCellLinkContainer>();
68
69
70
73 cl->setLink(cellLinks.get(), sg);
74 }
75
76 return h.record (std::move (cellLinks));
77}
static IProxyDict * store()
Fetch the current store.
◆ makeCluster() [1/5]
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
- Parameters
-
- Returns
- unique_ptr to a CaloCluster object.
Definition at line 13 of file CaloClusterStoreHelper.cxx.
13 {
14 return makeCluster (DataLink<CaloCellContainer> (cellCont));
15}
static std::unique_ptr< xAOD::CaloCluster > makeCluster(const CaloCellContainer *cellCont)
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
◆ makeCluster() [2/5]
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
- Parameters
-
| cellCont | pointer to the underlying CaloCellContainer |
| eta0 | seed \( \eta \) of cluster |
| phi0 | seed \( \varphi \) of cluster |
| clusterSize | |
- Returns
- unique_ptr to a CaloCluster object
Definition at line 26 of file CaloClusterStoreHelper.cxx.
28 {
30 cluster->setEta0(eta0);
31 cluster->setPhi0(phi0);
32 cluster->setClusterSize(clusterSize);
33 return cluster;
34}
◆ makeCluster() [3/5]
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
- Parameters
-
- Returns
- unique_ptr to a CaloCluster object.
Definition at line 18 of file CaloClusterStoreHelper.cxx.
18 {
19 std::unique_ptr<xAOD::CaloCluster> cluster = std::make_unique<xAOD::CaloCluster>();
20 cluster->makePrivateStore();
21 if (cellCont) cluster->addCellLink(std::make_unique<CaloClusterCellLink>(cellCont));
22 return cluster;
23}
◆ makeCluster() [4/5]
◆ makeCluster() [5/5]
Creates a valid CaloCluster and pushes it into the cluster container.
- Parameters
-
- Returns
- Pointer to a CaloCluster object
Definition at line 44 of file CaloClusterStoreHelper.cxx.
45 {
46
48 if (cellCont) cluster->
addCellLink(std::make_unique<CaloClusterCellLink>(cellCont));
49 return cluster;
50}
void addCellLink(CaloClusterCellLink *CCCL)
The documentation for this class was generated from the following files: