#include <CaloComputeSWcellWeights.h>
Definition at line 31 of file CaloComputeSWcellWeights.h.
◆ StoreGateSvc_t
◆ CaloComputeSWcellWeights() [1/2]
| CaloComputeSWcellWeights::CaloComputeSWcellWeights |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ CaloComputeSWcellWeights() [2/2]
| CaloComputeSWcellWeights::CaloComputeSWcellWeights |
( |
| ) |
|
|
private |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ 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 46 of file CaloComputeSWcellWeights.cxx.
48{
49
50
52
53 std::map<IdentifierHash,double> WeightMap;
54
56 for (
const CaloCell* cell : *cluster) {
58 WeightMap[myHashId] += cell->e();
59 }
60 }
61
65 for( ;cellIter!=cellIterEnd;cellIter++) {
66 const CaloCell*
cell = *cellIter;
67 IdentifierHash myHashId =
cell->caloDDE()->calo_hash();
68 double WEIGHT=(
cell->e())/WeightMap[myHashId];
70 }
72 }
73
74 return StatusCode::SUCCESS;
75}
Data object for each calorimeter readout cell.
void reweight(const weight_t newWeight)
Update the weight.
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.
This is a "hash" representation of an Identifier.
CaloClusterCellLink::iterator cell_iterator
Iterator of the underlying CaloClusterCellLink (non-const version)
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
◆ execute() [2/2]
◆ 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
◆ 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
◆ CaloComputeSWcellWeights_versions
| list CaloComputeSWcellWeights.CaloComputeSWcellWeights_versions |
Initial value:= [
['', cls,
['CaloComputeSWcellWeights.CaloComputeSWcellWeights_parms',
CALOCORR_NOPOOL]],
]
Definition at line 29 of file CaloComputeSWcellWeights.py.
◆ cls
| CaloComputeSWcellWeights.cls = CompFactory.CaloComputeSWcellWeights |
◆ m_detStore
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: