|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "CaloEvent/CaloClusterContainer.h"
9 #include "CaloDetDescr/CaloDetDescrElement.h"
12 #include "GaudiKernel/MsgStream.h"
32 const std::string&
name,
48 clus_iterator iter1 = clusColl->
begin();
51 for( ;iter1!=clusColl->
end(); ) {
54 clus_iterator iter2 = iter1;
55 for( iter2++ ; iter2!=clusColl->
end() ; ){
57 comparison =
compare( (*iter1) , (*iter2) );
59 if( comparison == 1 ){
62 else if( comparison == 2 ){
65 iter2 = clusColl->
erase(iter2);
76 iter1 = clusColl->
erase(iter1);
85 return StatusCode::SUCCESS;
93 double deta = fabs ( clus1->
eta() - clus2->
eta() );
94 double dphi = fabs ( clus1->
phi() - clus2->
phi() );
97 if( fabs( dphi - 6.283185 ) <
m_dphi_cut ) dphi = dphi - 6.283185;
101 if( clus2->
et() > clus1->
et() ){
104 else if( clus1->
et() >= clus2->
et() ){
virtual double phi() const
The azimuthal angle ( ) of the particle.
DataModel_detail::iterator< DataVector > iterator
Standard iterator.
StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *clusColl) const override
Execute on an entire collection of clusters.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
int compare(xAOD::CaloCluster *clus1, xAOD::CaloCluster *clus2) const
Definition of CaloDetDescrManager.
Description of a calorimeter cluster.
virtual double eta() const
The pseudorapidity ( ) of the particle.
::StatusCode StatusCode
StatusCode definition for legacy code.
CaloClusterRemoveDuplicates()
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
An STL vector of pointers that by default owns its pointed-to elements.
iterator erase(iterator position)
Remove element at a given position.
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.