ATLAS Offline Software
Loading...
Searching...
No Matches
jet::CaloCellFastMap Class Reference

#include <MissingCellListTool.h>

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

Public Types

typedef Tile< CellPosition, typename CellPosition::DR2tile_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 !
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
size_t tileIndex_i (int ix, int iy) const
 retrieve the tile index from its integer coordinates.

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 90 of file MissingCellListTool.h.

Member Typedef Documentation

◆ tile_t

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

Definition at line 87 of file TiledEtaPhiMap.h.

Constructor & Destructor Documentation

◆ ~CaloCellFastMap()

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

Definition at line 92 of file MissingCellListTool.h.

92{}

Member Function Documentation

◆ cells() [1/2]

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

Definition at line 99 of file MissingCellListTool.h.

99{return m_allCells;}

◆ cells() [2/2]

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

Definition at line 98 of file MissingCellListTool.h.

98{return m_allCells;}

◆ cellsInDeltaR()

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

Definition at line 93 of file MissingCellListTool.h.

93 {
94 CellPosition p(eta,phi,Identifier(), (CellPosition::CaloSample) 0);
95 return pointsInDr( p , r);
96 }
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
std::vector< CellPosition > pointsInDr(CellPosition &p, double r) const
int r
Definition globals.cxx:22
CaloCell_ID::CaloSample CaloSample

◆ clear()

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

◆ init()

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

◆ insert()

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

◆ pointsInDr()

std::vector< CellPosition > JetTiledMap::TiledEtaPhiMap< CellPosition, typename CellPosition::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 CellPosition::DR2 >::reset ( )
inlinevirtualinherited

Definition at line 101 of file TiledEtaPhiMap.h.

101{m_tiles.clear();m_size=0;}
An eta-phi map providing a relatively fast way of retrieving points at a given distance of a point in...

◆ setEtaRange()

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

Definition at line 105 of file TiledEtaPhiMap.h.

◆ size()

unsigned int JetTiledMap::TiledEtaPhiMap< CellPosition, typename CellPosition::DR2 >::size ( ) const
inlineinherited

Definition at line 103 of file TiledEtaPhiMap.h.

103{return m_size;} ;

◆ tileIndex()

size_t JetTiledMap::TiledEtaPhiMap< CellPosition, typename CellPosition::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=static_cast<int>(m_ndivX)-1;
124 int indy = int((M_PI-p.y())/m_sizeY);
125 if(indy>=static_cast<int>(m_ndivY)) indy=static_cast<int>(m_ndivY)-1;
126
127 return tileIndex_i(indx,indy);
128 }
size_t tileIndex_i(int ix, int iy) const

◆ tileIndex_i()

size_t JetTiledMap::TiledEtaPhiMap< CellPosition, typename CellPosition::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 101 of file MissingCellListTool.h.

◆ m_etarange

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

Definition at line 109 of file TiledEtaPhiMap.h.

109{} ;

◆ m_halfetarange

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

Definition at line 110 of file TiledEtaPhiMap.h.

110{};

◆ m_ndivX

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

Definition at line 112 of file TiledEtaPhiMap.h.

◆ m_ndivY

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

Definition at line 112 of file TiledEtaPhiMap.h.

◆ m_rmax

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

Definition at line 111 of file TiledEtaPhiMap.h.

111{};

◆ m_size

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

Definition at line 115 of file TiledEtaPhiMap.h.

115{};

◆ m_sizeX

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

Definition at line 113 of file TiledEtaPhiMap.h.

113{},m_sizeY{};

◆ m_sizeY

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

Definition at line 113 of file TiledEtaPhiMap.h.

113{},m_sizeY{};

◆ m_tiles

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

Definition at line 133 of file TiledEtaPhiMap.h.


The documentation for this class was generated from the following file: