#include <CaloClusterRemoveDuplicates.h>
◆ StoreGateSvc_t
◆ CaloClusterRemoveDuplicates() [1/2]
| CaloClusterRemoveDuplicates::CaloClusterRemoveDuplicates |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 31 of file CaloClusterRemoveDuplicates.cxx.
35{
36 declareProperty ("deta_cut", m_deta_cut = 0.05 );
37 declareProperty ("dphi_cut", m_dphi_cut = 0.05 );
38}
◆ CaloClusterRemoveDuplicates() [2/2]
| CaloClusterRemoveDuplicates::CaloClusterRemoveDuplicates |
( |
| ) |
|
|
private |
◆ compare()
Definition at line 89 of file CaloClusterRemoveDuplicates.cxx.
91{
92
93 double deta = fabs ( clus1->
eta() - clus2->
eta() );
94 double dphi = fabs ( clus1->
phi() - clus2->
phi() );
95
96
97 if( fabs( dphi - 6.283185 ) < m_dphi_cut ) dphi = dphi - 6.283185;
98
99 if( deta <= m_deta_cut && dphi <= m_dphi_cut ){
100
101 if( clus2->
et() > clus1->
et() ){
102 return 1;
103 }
104 else if( clus1->
et() >= clus2->
et() ){
105 return 2;
106 }
107 }
108
109 return 0 ;
110
111}
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
◆ 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 41 of file CaloClusterRemoveDuplicates.cxx.
43{
44
46
48 clus_iterator iter1 = clusColl->begin();
49
51 for( ;iter1!=clusColl->end(); ) {
52 int comparison = 0;
53
54 clus_iterator iter2 = iter1;
55 for( iter2++ ; iter2!=clusColl->end() ; ){
56
57 comparison = compare( (*iter1) , (*iter2) );
58
59 if( comparison == 1 ){
60 break;
61 }
62 else if( comparison == 2 ){
63
64
65 iter2 = clusColl->erase(iter2);
66 }
67 else{
68
69 iter2++;
70 }
71 }
72
73 if( comparison == 1){
74
75
76 iter1 = clusColl->erase(iter1);
77 }
78 else{
79
80 ++iter1;
81 }
82 }
84
85 return StatusCode::SUCCESS;
86}
DataModel_detail::iterator< DataVector > iterator
◆ 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
◆ CaloClusterRemoveDuplicates_versions
| list CaloClusterRemoveDuplicates.CaloClusterRemoveDuplicates_versions |
Initial value:= [
['', cls,
['CaloClusterRemoveDuplicates.CaloClusterRemoveDuplicates_parms',
CALOCORR_NOPOOL]],
]
Definition at line 14 of file CaloClusterRemoveDuplicates.py.
◆ cls
| CaloClusterRemoveDuplicates.cls = CompFactory.CaloClusterRemoveDuplicates |
◆ m_deta_cut
| float CaloClusterRemoveDuplicates::m_deta_cut |
|
private |
◆ m_detStore
◆ m_dphi_cut
| float CaloClusterRemoveDuplicates::m_dphi_cut |
|
private |
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: