ATLAS Offline Software
LArStripNeighborhood.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
13 #ifndef GLOBALSIM_LARSTRIPNEIGHBORHOOD_H
14 #define GLOBALSIM_LARSTRIPNEIGHBORHOOD_H
15 
16 #include "StripData.h"
17 
18 #include <ostream>
19 #include <vector>
20 #include <utility> //std::pair
21 #include <iosfwd>
22 
23 namespace GlobalSim {
24  using StripDataVector = std::vector<StripData>;
25  using Coords = std::pair<double, double>;
26 
27 
38  public:
39 
55  const Coords& roiCoords,
56  const Coords& cellCoords,
57  std::size_t max_cell_pos);
58 
60  const StripDataVector& phi_low() const {return m_phi_low;}
62  const StripDataVector& phi_center() const {return m_phi_center;}
64  const StripDataVector& phi_high() const {return m_phi_high;}
65 
67  std::size_t maxCellIndex() const {return m_max_cell_pos;}
68 
70  const Coords& roiCoords() const {return m_roiCoords;}
72  const Coords& cellCoords() const {return m_cellCoords;}
73 
75  std::string to_string() const;
76 
77  private:
89  std::size_t m_max_cell_pos{0};
90  };
91 }//End of namespace
92 
93 std::ostream&
94 operator<< (std::ostream&, const GlobalSim::LArStripNeighborhood&);
95 
96 #endif //GLOBALSIM_LARSTRIPNEIGHBORHOOD_H
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::Coords
std::pair< double, double > Coords
Definition: LArStripNeighborhood.h:25
GlobalSim::LArStripNeighborhood::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.
Definition: LArStripNeighborhood.cxx:11
GlobalSim::LArStripNeighborhood::m_phi_low
StripDataVector m_phi_low
Parameter: Vector strip cell e/eta/phi, low phi row.
Definition: LArStripNeighborhood.h:79
GlobalSim::LArStripNeighborhood::to_string
std::string to_string() const
print out contents to string
Definition: LArStripNeighborhood.cxx:25
GlobalSim
AlgTool to read in LArStripNeighborhoods, and run the ERatio Algorithm.
Definition: dump.h:8
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
StripData.h
GlobalSim::LArStripNeighborhood
Class to hold windows of LAr strip cells in a the neighbourhood of a eFexRoI.
Definition: LArStripNeighborhood.h:37
GlobalSim::StripDataVector
std::vector< StripData > StripDataVector
Definition: LArStripNeighborhood.h:24
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
operator<<
std::ostream & operator<<(std::ostream &, const GlobalSim::LArStripNeighborhood &)
Definition: LArStripNeighborhood.cxx:51