ATLAS Offline Software
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
jet::CaloCellFastMap Class Reference

#include <MissingCellListTool.h>

Inheritance diagram for jet::CaloCellFastMap:
Collaboration diagram for jet::CaloCellFastMap:

Public Types

typedef Tile< CellPosition, typename POINT::DR2 > tile_t
 

Public Member Functions

virtual ~CaloCellFastMap ()
 
std::vector< CellPositioncellsInDeltaR (double eta, double phi, double r) const
 
const cellset_tcells () const
 
cellset_tcells ()
 
void init (double rmax)
 
void insert (CellPosition &p)
 
std::vector< CellPositionpointsInDr (CellPosition &p, double r) const
 retrieve all points within deltaR of p. WARNING !! wrong results if r>rmax ! More...
 
virtual void clear ()
 
virtual void reset ()
 
unsigned int size () const
 
void setEtaRange (double r)
 

Protected Member Functions

size_t tileIndex (CellPosition &p) const
 index of the tile containing p More...
 
size_t tileIndex_i (int ix, int iy) const
 retrieve the tile index from its integer coordinates. More...
 

Protected Attributes

cellset_t m_allCells
 
double m_etarange
 
double m_halfetarange
 
double m_rmax
 
size_t m_ndivX
 
size_t m_ndivY
 
double m_sizeX
 
double m_sizeY
 
unsigned int m_size
 
std::vector< tile_tm_tiles
 

Detailed Description

Definition at line 89 of file MissingCellListTool.h.

Member Typedef Documentation

◆ tile_t

typedef Tile<CellPosition , typename POINT::DR2 > JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::tile_t
inherited

Definition at line 87 of file TiledEtaPhiMap.h.

Constructor & Destructor Documentation

◆ ~CaloCellFastMap()

virtual jet::CaloCellFastMap::~CaloCellFastMap ( )
inlinevirtual

Definition at line 91 of file MissingCellListTool.h.

91 {}

Member Function Documentation

◆ cells() [1/2]

cellset_t& jet::CaloCellFastMap::cells ( )
inline

Definition at line 98 of file MissingCellListTool.h.

98 {return m_allCells;}

◆ cells() [2/2]

const cellset_t& jet::CaloCellFastMap::cells ( ) const
inline

Definition at line 97 of file MissingCellListTool.h.

97 {return m_allCells;}

◆ cellsInDeltaR()

std::vector<CellPosition> jet::CaloCellFastMap::cellsInDeltaR ( double  eta,
double  phi,
double  r 
) const
inline

Definition at line 92 of file MissingCellListTool.h.

92  {
93  CellPosition p(eta,phi,Identifier(), (CellPosition::CaloSample) 0);
94  return pointsInDr( p , r);
95  }

◆ clear()

virtual void JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::clear
virtualinherited

◆ init()

void JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::init ( double  rmax)
inherited

◆ insert()

void JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::insert ( CellPosition &  p)
inherited

◆ pointsInDr()

std::vector<CellPosition > JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::pointsInDr ( CellPosition &  p,
double  r 
) const
inherited

retrieve all points within deltaR of p. WARNING !! wrong results if r>rmax !

◆ reset()

virtual void JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::reset
inlinevirtualinherited

Definition at line 101 of file TiledEtaPhiMap.h.

101 {m_tiles.clear();m_size=0;}

◆ setEtaRange()

void JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::setEtaRange ( double  r)
inlineinherited

Definition at line 105 of file TiledEtaPhiMap.h.

◆ size()

unsigned int JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::size
inlineinherited

Definition at line 103 of file TiledEtaPhiMap.h.

103 {return m_size;} ;

◆ tileIndex()

size_t JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::tileIndex ( CellPosition &  p) const
inlineprotectedinherited

index of the tile containing p

Definition at line 119 of file TiledEtaPhiMap.h.

119  {
120 
121  int indx = int( (p.x()+m_halfetarange)/m_sizeX) ;
122  if(indx<0) indx=0;
123  if(indx>=static_cast<int>(m_ndivX)) indx=m_ndivX-1;
124  int indy = int((M_PI-p.y())/m_sizeY);
125  if(indy>=static_cast<int>(m_ndivY)) indy=m_ndivY-1;
126 
127  return tileIndex_i(indx,indy);
128  }

◆ tileIndex_i()

size_t JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::tileIndex_i ( int  ix,
int  iy 
) const
inlineprotectedinherited

retrieve the tile index from its integer coordinates.

Definition at line 131 of file TiledEtaPhiMap.h.

131 {return ix*m_ndivY + iy;};

Member Data Documentation

◆ m_allCells

cellset_t jet::CaloCellFastMap::m_allCells
protected

Definition at line 100 of file MissingCellListTool.h.

◆ m_etarange

double JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::m_etarange
protectedinherited

Definition at line 109 of file TiledEtaPhiMap.h.

◆ m_halfetarange

double JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::m_halfetarange
protectedinherited

Definition at line 110 of file TiledEtaPhiMap.h.

◆ m_ndivX

size_t JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::m_ndivX
protectedinherited

Definition at line 112 of file TiledEtaPhiMap.h.

◆ m_ndivY

size_t JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::m_ndivY
protectedinherited

Definition at line 112 of file TiledEtaPhiMap.h.

◆ m_rmax

double JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::m_rmax
protectedinherited

Definition at line 111 of file TiledEtaPhiMap.h.

◆ m_size

unsigned int JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::m_size
protectedinherited

Definition at line 115 of file TiledEtaPhiMap.h.

◆ m_sizeX

double JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::m_sizeX
protectedinherited

Definition at line 113 of file TiledEtaPhiMap.h.

◆ m_sizeY

double JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::m_sizeY
protectedinherited

Definition at line 113 of file TiledEtaPhiMap.h.

◆ m_tiles

std::vector<tile_t> JetTiledMap::TiledEtaPhiMap< CellPosition , typename POINT::DR2 >::m_tiles
protectedinherited

Definition at line 133 of file TiledEtaPhiMap.h.


The documentation for this class was generated from the following file:
jet::CellPosition::CaloSample
CaloCell_ID::CaloSample CaloSample
Definition: MissingCellListTool.h:60
beamspotman.r
def r
Definition: beamspotman.py:676
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
JetTiledMap::TiledEtaPhiMap< CellPosition >::m_sizeY
double m_sizeY
Definition: TiledEtaPhiMap.h:113
M_PI
#define M_PI
Definition: ActiveFraction.h:11
JetTiledMap::TiledEtaPhiMap< CellPosition >::m_halfetarange
double m_halfetarange
Definition: TiledEtaPhiMap.h:110
JetTiledMap::TiledEtaPhiMap< CellPosition >::pointsInDr
std::vector< CellPosition > pointsInDr(CellPosition &p, double r) const
retrieve all points within deltaR of p. WARNING !! wrong results if r>rmax !
JetTiledMap::TiledEtaPhiMap< CellPosition >::tileIndex_i
size_t tileIndex_i(int ix, int iy) const
retrieve the tile index from its integer coordinates.
Definition: TiledEtaPhiMap.h:131
JetTiledMap::TiledEtaPhiMap< CellPosition >::m_etarange
double m_etarange
Definition: TiledEtaPhiMap.h:109
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
JetTiledMap::TiledEtaPhiMap< CellPosition >::m_ndivX
size_t m_ndivX
Definition: TiledEtaPhiMap.h:112
JetTiledMap::TiledEtaPhiMap< CellPosition >::m_sizeX
double m_sizeX
Definition: TiledEtaPhiMap.h:113
JetTiledMap::TiledEtaPhiMap< CellPosition >::m_size
unsigned int m_size
Definition: TiledEtaPhiMap.h:115
jet::CaloCellFastMap::m_allCells
cellset_t m_allCells
Definition: MissingCellListTool.h:100
JetTiledMap::TiledEtaPhiMap< CellPosition >::m_ndivY
size_t m_ndivY
Definition: TiledEtaPhiMap.h:112
JetTiledMap::TiledEtaPhiMap< CellPosition >::m_tiles
std::vector< tile_t > m_tiles
Definition: TiledEtaPhiMap.h:131