ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Rec::ParticleCellAssociation Class Reference

class storing calorimeter cell association with IParticle objects More...

#include <ParticleCellAssociation.h>

Inheritance diagram for Rec::ParticleCellAssociation:
Collaboration diagram for Rec::ParticleCellAssociation:

Public Types

typedef std::vector< std::pair< const CaloCell *, ParticleCellIntersection * > > CellIntersections
 typedef for vector of cell intersections More...
 
typedef std::vector< const CaloCell * > Data
 typedef of Cell vector More...
 

Public Member Functions

 ParticleCellAssociation (const Trk::CaloExtension *caloExtension, Data &&data, float coneSize, const CellIntersections &&intersections, const CaloCellContainer *container=0)
 constructor More...
 
virtual ~ParticleCellAssociation ()
 destructor More...
 
const CellIntersectionscellIntersections () const
 access to all intersected cells More...
 
const ParticleCellIntersectioncellIntersection (const CaloCell &cell) const
 access to cell intersection of a give cell, returns zero if the cell was not intersected More...
 
const CaloCellContainercontainer () const
 access to container More...
 
const Trk::CaloExtensioncaloExtension () const
 return calo extension More...
 
const Datadata () const
 return vector of associated objects More...
 
float associationConeSize () const
 return cone-size used for association More...
 
void updateData (Data &&data, float coneSize)
 update data More...
 

Private Member Functions

 ParticleCellAssociation (const ParticleCellAssociation &)=delete
 no copying nor deletion More...
 
const ParticleCellAssociationoperator= (const ParticleCellAssociation &)=delete
 

Private Attributes

CellIntersections m_cellInteresections
 list of intersected cells More...
 
const CaloCellContainerm_container
 pointer to the container More...
 
const Trk::CaloExtensionm_caloExtension
 CaloExtension. More...
 
Data m_data
 cell information More...
 
float m_associationConeSize
 cone size used for association More...
 

Detailed Description

class storing calorimeter cell association with IParticle objects

Definition at line 19 of file ParticleCellAssociation.h.

Member Typedef Documentation

◆ CellIntersections

typedef for vector of cell intersections

Definition at line 22 of file ParticleCellAssociation.h.

◆ Data

typedef std::vector<const CaloCell * > Rec::ParticleCaloAssociation< const CaloCell * >::Data
inherited

typedef of Cell vector

Definition at line 19 of file ParticleCaloAssociation.h.

Constructor & Destructor Documentation

◆ ParticleCellAssociation() [1/2]

Rec::ParticleCellAssociation::ParticleCellAssociation ( const Trk::CaloExtension caloExtension,
Data &&  data,
float  coneSize,
const CellIntersections &&  intersections,
const CaloCellContainer container = 0 
)

constructor

◆ ~ParticleCellAssociation()

Rec::ParticleCellAssociation::~ParticleCellAssociation ( )
virtual

destructor

Definition at line 18 of file ParticleCellAssociation.cxx.

18  {
19  for( auto el : m_cellInteresections ){
20  delete el.second;
21  }
22  }

◆ ParticleCellAssociation() [2/2]

Rec::ParticleCellAssociation::ParticleCellAssociation ( const ParticleCellAssociation )
privatedelete

no copying nor deletion

Member Function Documentation

◆ associationConeSize()

float Rec::ParticleCaloAssociation< const CaloCell * >::associationConeSize
inlineinherited

return cone-size used for association

Definition at line 34 of file ParticleCaloAssociation.h.

68  {
69  return m_associationConeSize;
70  }

◆ caloExtension()

const Trk::CaloExtension & Rec::ParticleCaloAssociation< const CaloCell * >::caloExtension
inlineinherited

return calo extension

Definition at line 28 of file ParticleCaloAssociation.h.

73  {
74  return *m_caloExtension;
75  }

◆ cellIntersection()

const ParticleCellIntersection * Rec::ParticleCellAssociation::cellIntersection ( const CaloCell cell) const
inline

access to cell intersection of a give cell, returns zero if the cell was not intersected

Definition at line 53 of file ParticleCellAssociation.h.

53  {
54  auto pos = std::find_if( m_cellInteresections.begin(), m_cellInteresections.end(),
55  [&]( const std::pair<const CaloCell*,ParticleCellIntersection*>& entry ){
56  return entry.first == &cell;
57  });
58  if( pos != m_cellInteresections.end() ) return pos->second;
59  return 0;
60  }

◆ cellIntersections()

const CellIntersections& Rec::ParticleCellAssociation::cellIntersections ( ) const
inline

access to all intersected cells

Definition at line 32 of file ParticleCellAssociation.h.

32 { return m_cellInteresections; }

◆ container()

const CaloCellContainer * Rec::ParticleCellAssociation::container ( ) const
inline

access to container

Definition at line 62 of file ParticleCellAssociation.h.

62  {
63  return m_container;
64  }

◆ data()

return vector of associated objects

Definition at line 31 of file ParticleCaloAssociation.h.

78  {
79  return m_data;
80  }

◆ operator=()

const ParticleCellAssociation& Rec::ParticleCellAssociation::operator= ( const ParticleCellAssociation )
privatedelete

◆ updateData()

void Rec::ParticleCaloAssociation< const CaloCell * >::updateData ( Data &&  data,
float  coneSize 
)
inlineinherited

update data

Definition at line 43 of file ParticleCaloAssociation.h.

83  {
84  m_data = data;
86  }

Member Data Documentation

◆ m_associationConeSize

float Rec::ParticleCaloAssociation< const CaloCell * >::m_associationConeSize
privateinherited

cone size used for association

Definition at line 63 of file ParticleCaloAssociation.h.

◆ m_caloExtension

const Trk::CaloExtension* Rec::ParticleCaloAssociation< const CaloCell * >::m_caloExtension
privateinherited

CaloExtension.

Definition at line 57 of file ParticleCaloAssociation.h.

◆ m_cellInteresections

CellIntersections Rec::ParticleCellAssociation::m_cellInteresections
private

list of intersected cells

Definition at line 46 of file ParticleCellAssociation.h.

◆ m_container

const CaloCellContainer* Rec::ParticleCellAssociation::m_container
private

pointer to the container

Definition at line 49 of file ParticleCellAssociation.h.

◆ m_data

Data Rec::ParticleCaloAssociation< const CaloCell * >::m_data
privateinherited

cell information

Definition at line 60 of file ParticleCaloAssociation.h.


The documentation for this class was generated from the following files:
Rec::ParticleCellAssociation::m_container
const CaloCellContainer * m_container
pointer to the container
Definition: ParticleCellAssociation.h:49
Rec::ParticleCellAssociation::m_cellInteresections
CellIntersections m_cellInteresections
list of intersected cells
Definition: ParticleCellAssociation.h:46
Rec::ParticleCaloAssociation< const CaloCell * >::m_caloExtension
const Trk::CaloExtension * m_caloExtension
CaloExtension.
Definition: ParticleCaloAssociation.h:57
Rec::ParticleCaloAssociation< const CaloCell * >::m_associationConeSize
float m_associationConeSize
cone size used for association
Definition: ParticleCaloAssociation.h:63
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
Rec::ParticleCaloAssociation< const CaloCell * >::m_data
Data m_data
cell information
Definition: ParticleCaloAssociation.h:60
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
xAOD::Iso::coneSize
float coneSize(IsolationConeSize type)
convert Isolation Size into cone size
Definition: IsolationHelpers.h:27
Rec::ParticleCaloAssociation< const CaloCell * >::data
const Data & data() const
return vector of associated objects
Definition: ParticleCaloAssociation.h:78