ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
GlobalSim::LArStripNeighborhood Class Reference

Class to hold windows of LAr strip cells in a the neighbourhood of a eFexRoI. More...

#include <LArStripNeighborhood.h>

Collaboration diagram for GlobalSim::LArStripNeighborhood:

Public Member Functions

 LArStripNeighborhood (const StripDataVector &phi_low, const StripDataVector &phi_center, const StripDataVector &phi_high, const Coords &roiCoords, const Coords &cellCoords, std::size_t max_cell_pos)
 Constructor to define a LArStripNeighborhood from input objects. More...
 
const StripDataVectorphi_low () const
 Returns a vector of strip cell e/eta/phi data for the low phi row of the neighborhood. More...
 
const StripDataVectorphi_center () const
 Returns a vector of strip cell e/eta/phi data for the central phi row of the neighborhood. More...
 
const StripDataVectorphi_high () const
 Returns a vector of strip cell e/eta/phi data for the central high row of the neighborhood. More...
 
std::size_t maxCellIndex () const
 Returns the index of the maximum energy cell in this neighbourhood. More...
 
const CoordsroiCoords () const
 Returns the eta/phi coordinates of the RoI used to seed this neighbourhood. More...
 
const CoordscellCoords () const
 Returns the eta/phi coordinates of the maximum energy cell. More...
 
std::string to_string () const
 print out contents to string More...
 

Private Attributes

StripDataVector m_phi_low
 Parameter: Vector strip cell e/eta/phi, low phi row. More...
 
StripDataVector m_phi_center
 Parameter: Vector strip cell e/eta/phi, central phi row. More...
 
StripDataVector m_phi_high
 Parameter: Vector strip cell e/eta/phi, high phi row. More...
 
Coords m_roiCoords {0., 0.}
 Parameter: eta/Phi coordinate of the seed eFexRoITOB. More...
 
Coords m_cellCoords {0., 0.}
 Parameter: eta/phi coords of cell in RoI with maximum energy. More...
 
std::size_t m_max_cell_pos {0}
 Parameter: Index of the cell with the maximum energy. More...
 

Detailed Description

Class to hold windows of LAr strip cells in a the neighbourhood of a eFexRoI.

This class represents windows of LAr strip cells centred on a eFexRoI. It defines three rows of cells e/eta/phi — low, center, high — surrounding the eFexRoI. It defines which cell has the maximum energy, and the max_cell/RoI eta/phi coordinates are also stored.

Definition at line 37 of file LArStripNeighborhood.h.

Constructor & Destructor Documentation

◆ LArStripNeighborhood()

GlobalSim::LArStripNeighborhood::LArStripNeighborhood ( const StripDataVector phi_low,
const StripDataVector phi_center,
const StripDataVector phi_high,
const Coords roiCoords,
const Coords cellCoords,
std::size_t  max_cell_pos 
)

Constructor to define a LArStripNeighborhood from input objects.

Parameters
[in]phi_lowA vector of e/eta/phi coordinates for the low phi row
[in]phi_centerA vector of e/eta/phi coordinates for the center phi row
[in]phi_highA vector of e/eta/phi coordinates for the high phi row
[in]roiCoordsThe eta/phi coordinates of the eFexRoI that produced this object
[in]cellCoordsThe eta/phi coordinates of the maximum energy cell
[in]max_cell_posThe index of the maximum energy cell

To be used to create, and initilise a neighborhood of LAr Strip cells centred on a incoming eFeXRoITOB. The neighbourhood is organised as three rows of 17 strips in phi.

Definition at line 11 of file LArStripNeighborhood.cxx.

16  :
20  m_roiCoords{roi},
22  m_max_cell_pos{max_cell_pos}{
23  }

Member Function Documentation

◆ cellCoords()

const Coords& GlobalSim::LArStripNeighborhood::cellCoords ( ) const
inline

Returns the eta/phi coordinates of the maximum energy cell.

Definition at line 72 of file LArStripNeighborhood.h.

72 {return m_cellCoords;}

◆ maxCellIndex()

std::size_t GlobalSim::LArStripNeighborhood::maxCellIndex ( ) const
inline

Returns the index of the maximum energy cell in this neighbourhood.

Definition at line 67 of file LArStripNeighborhood.h.

67 {return m_max_cell_pos;}

◆ phi_center()

const StripDataVector& GlobalSim::LArStripNeighborhood::phi_center ( ) const
inline

Returns a vector of strip cell e/eta/phi data for the central phi row of the neighborhood.

Definition at line 62 of file LArStripNeighborhood.h.

62 {return m_phi_center;}

◆ phi_high()

const StripDataVector& GlobalSim::LArStripNeighborhood::phi_high ( ) const
inline

Returns a vector of strip cell e/eta/phi data for the central high row of the neighborhood.

Definition at line 64 of file LArStripNeighborhood.h.

64 {return m_phi_high;}

◆ phi_low()

const StripDataVector& GlobalSim::LArStripNeighborhood::phi_low ( ) const
inline

Returns a vector of strip cell e/eta/phi data for the low phi row of the neighborhood.

Definition at line 60 of file LArStripNeighborhood.h.

60 {return m_phi_low;}

◆ roiCoords()

const Coords& GlobalSim::LArStripNeighborhood::roiCoords ( ) const
inline

Returns the eta/phi coordinates of the RoI used to seed this neighbourhood.

Definition at line 70 of file LArStripNeighborhood.h.

70 {return m_roiCoords;}

◆ to_string()

std::string GlobalSim::LArStripNeighborhood::to_string ( ) const

print out contents to string

Definition at line 25 of file LArStripNeighborhood.cxx.

25  {
26  std::stringstream ss;
27  ss << "LArStripNeighborhood: roi coords ("
28  << roiCoords().first << ',' << roiCoords().second << ") cell coords ("
29  << cellCoords().first << ',' << cellCoords().second
30  << ") max_cell_pos " << maxCellIndex() << '\n';
31 
32  ss << "phi low: " << " [" << phi_low().size() <<"]\n";
33  for(const auto& sd : phi_low()) { ss << sd << '\n';}
34 
35  ss << '\n';
36 
37  ss << "phi center: " << " [" << phi_center().size() <<"]\n";
38  for(const auto& sd : phi_center()) { ss << sd << '\n';}
39 
40  ss << '\n';
41 
42  ss << "phi high: " << " [" << phi_high().size() <<"]\n";
43  for(const auto& sd : phi_high()) { ss << sd << '\n';}
44 
45  ss << '\n';
46  return ss.str();
47  }

Member Data Documentation

◆ m_cellCoords

Coords GlobalSim::LArStripNeighborhood::m_cellCoords {0., 0.}
private

Parameter: eta/phi coords of cell in RoI with maximum energy.

Definition at line 87 of file LArStripNeighborhood.h.

◆ m_max_cell_pos

std::size_t GlobalSim::LArStripNeighborhood::m_max_cell_pos {0}
private

Parameter: Index of the cell with the maximum energy.

Definition at line 89 of file LArStripNeighborhood.h.

◆ m_phi_center

StripDataVector GlobalSim::LArStripNeighborhood::m_phi_center
private

Parameter: Vector strip cell e/eta/phi, central phi row.

Definition at line 81 of file LArStripNeighborhood.h.

◆ m_phi_high

StripDataVector GlobalSim::LArStripNeighborhood::m_phi_high
private

Parameter: Vector strip cell e/eta/phi, high phi row.

Definition at line 83 of file LArStripNeighborhood.h.

◆ m_phi_low

StripDataVector GlobalSim::LArStripNeighborhood::m_phi_low
private

Parameter: Vector strip cell e/eta/phi, low phi row.

Definition at line 79 of file LArStripNeighborhood.h.

◆ m_roiCoords

Coords GlobalSim::LArStripNeighborhood::m_roiCoords {0., 0.}
private

Parameter: eta/Phi coordinate of the seed eFexRoITOB.

Definition at line 85 of file LArStripNeighborhood.h.


The documentation for this class was generated from the following files:
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
GlobalSim::LArStripNeighborhood::m_cellCoords
Coords m_cellCoords
Parameter: eta/phi coords of cell in RoI with maximum energy.
Definition: LArStripNeighborhood.h:87
GlobalSim::LArStripNeighborhood::phi_center
const StripDataVector & phi_center() const
Returns a vector of strip cell e/eta/phi data for the central phi row of the neighborhood.
Definition: LArStripNeighborhood.h:62
GlobalSim::LArStripNeighborhood::m_phi_center
StripDataVector m_phi_center
Parameter: Vector strip cell e/eta/phi, central phi row.
Definition: LArStripNeighborhood.h:81
GlobalSim::LArStripNeighborhood::m_phi_low
StripDataVector m_phi_low
Parameter: Vector strip cell e/eta/phi, low phi row.
Definition: LArStripNeighborhood.h:79
python.selector.AtlRunQuerySelectorLhcOlc.sd
sd
Definition: AtlRunQuerySelectorLhcOlc.py:611
GlobalSim::LArStripNeighborhood::cellCoords
const Coords & cellCoords() const
Returns the eta/phi coordinates of the maximum energy cell.
Definition: LArStripNeighborhood.h:72
GlobalSim::LArStripNeighborhood::m_phi_high
StripDataVector m_phi_high
Parameter: Vector strip cell e/eta/phi, high phi row.
Definition: LArStripNeighborhood.h:83
GlobalSim::LArStripNeighborhood::maxCellIndex
std::size_t maxCellIndex() const
Returns the index of the maximum energy cell in this neighbourhood.
Definition: LArStripNeighborhood.h:67
GlobalSim::LArStripNeighborhood::roiCoords
const Coords & roiCoords() const
Returns the eta/phi coordinates of the RoI used to seed this neighbourhood.
Definition: LArStripNeighborhood.h:70
GlobalSim::LArStripNeighborhood::phi_low
const StripDataVector & phi_low() const
Returns a vector of strip cell e/eta/phi data for the low phi row of the neighborhood.
Definition: LArStripNeighborhood.h:60
GlobalSim::LArStripNeighborhood::phi_high
const StripDataVector & phi_high() const
Returns a vector of strip cell e/eta/phi data for the central high row of the neighborhood.
Definition: LArStripNeighborhood.h:64
GlobalSim::LArStripNeighborhood::m_max_cell_pos
std::size_t m_max_cell_pos
Parameter: Index of the cell with the maximum energy.
Definition: LArStripNeighborhood.h:89
GlobalSim::LArStripNeighborhood::m_roiCoords
Coords m_roiCoords
Parameter: eta/Phi coordinate of the seed eFexRoITOB.
Definition: LArStripNeighborhood.h:85