#include <CaloClusterCopier.h>
Definition at line 34 of file CaloClusterCopier.h.
◆ StoreGateSvc_t
◆ CaloClusterCopier()
| CaloClusterCopier::CaloClusterCopier |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 28 of file CaloClusterCopier.cxx.
30 :
34{
35 declareInterface<CaloClusterCollectionProcessor> (this);
40}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
bool m_useClusterPosition
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clustersKey
xAOD::CaloCluster::ClusterSize m_clusterSize
◆ ~CaloClusterCopier()
| CaloClusterCopier::~CaloClusterCopier |
( |
| ) |
|
|
overridevirtualdefault |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ DeclareInterfaceID()
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ execute() [1/2]
Execute on an entire collection of clusters.
- Parameters
-
| collection | The container of clusters. param ctx The event context. |
Implements CaloClusterCollectionProcessor.
Definition at line 66 of file CaloClusterCopier.cxx.
68{
70 SG::ReadHandle<xAOD::CaloClusterContainer> inputContainer(
m_clustersKey, ctx);
71
74 for(;
it!=it_e;++
it) {
77
82 } else {
85 }
86
88
90
91
92
93
96
97 int nhit = 0;
98 for(; it_cell!=it_cell_e; ++it_cell) {
100 ++nhit;
101 }
102
105 }
106 }
107 }
108
109 ATH_MSG_DEBUG(
"Done with copying clusters, number of clusters= " << clusColl->size());
110 return StatusCode::SUCCESS;
111}
unsigned index() const
Accessor for the index of the cell in the CaloCellContainer.
static void calculateKine(xAOD::CaloCluster *clu, const bool useweight=true, const bool updateLayers=true, const bool useGPUCriteria=false)
Helper class to calculate cluster kinematics based on cells.
static std::unique_ptr< xAOD::CaloCluster > makeCluster(const CaloCellContainer *cellCont)
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
DataModel_detail::const_iterator< DataVector > const_iterator
CaloClusterCellLink::const_iterator const_cell_iterator
Iterator of the underlying CaloClusterCellLink (explicitly const version)
void setClusterSize(const ClusterSize)
Get cluster size.
void setPhi0(flt_t)
Set raw of cluster seed.
bool addCell(const unsigned index, const double weight)
Method to add a cell to the cluster (Beware: Kinematics not updated!)
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
◆ execute() [2/2]
Execute on an entire collection of clusters.
- Parameters
-
| collection | The container of clusters. (deprecated) |
Reimplemented from CaloClusterCollectionProcessor.
Definition at line 50 of file CaloClusterCollectionProcessor.h.
51 {
52 return execute (Gaudi::Hive::currentContext(), collection);
53 }
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *) const override
Execute on an entire collection of clusters.
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ getClusterSize()
| void CaloClusterCopier::getClusterSize |
( |
| ) |
|
Definition at line 114 of file CaloClusterCopier.cxx.
114 {
115
116 if(
name()==
"LArgamClusterMaker.larClusterCopier"){
118 }
else if(
name()==
"LAr35ClusterMaker.larClusterCopier35"){
120 }
else if(
name()==
"LAr37ClusterMaker.larClusterCopier37"){
122 }
else if(
name()==
"LArgamClusterMaker.larClusterCopiergam"){
124 }
else if(
name()==
"LArgam35ClusterMaker.larClusterCopiergam35"){
126 }
else if(
name()==
"LArgam37ClusterMaker.larClusterCopiergam37"){
128 }
else if (
name()==
"EMTopo35ClusterMaker.TopoEMCopier35") {
130 }
131
133
134}
◆ initialize()
| StatusCode CaloClusterCopier::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 48 of file CaloClusterCopier.cxx.
48 {
49
50 ATH_MSG_INFO(
" Careful: CaloClusterCopier only copy eta0 phi0" );
51
54
55
56 } else {
58 }
60
61 return StatusCode::SUCCESS;
62
63}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_clusterSize
◆ m_clustersKey
◆ m_copyCells
| bool CaloClusterCopier::m_copyCells |
|
private |
◆ m_detStore
◆ m_etCut
| float CaloClusterCopier::m_etCut |
|
private |
◆ m_evtStore
◆ m_useClusterPosition
| bool CaloClusterCopier::m_useClusterPosition |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: