ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12
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
23namespace GlobalSim {
24 using StripDataVector = std::vector<StripData>;
25 using Coords = std::pair<double, double>;
26
27
36
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
93std::ostream&
94operator<< (std::ostream&, const GlobalSim::LArStripNeighborhood&);
95
96#endif //GLOBALSIM_LARSTRIPNEIGHBORHOOD_H
std::ostream & operator<<(std::ostream &, const GlobalSim::LArStripNeighborhood &)
Class to hold windows of LAr strip cells in a the neighbourhood of a eFexRoI.
std::string to_string() const
print out contents to string
Coords m_cellCoords
Parameter: eta/phi coords of cell in RoI with maximum energy.
const StripDataVector & phi_low() const
Returns a vector of strip cell e/eta/phi data for the low phi row of the neighborhood.
StripDataVector m_phi_low
Parameter: Vector strip cell e/eta/phi, low phi row.
const StripDataVector & phi_center() const
Returns a vector of strip cell e/eta/phi data for the central phi row of the neighborhood.
const Coords & roiCoords() const
Returns the eta/phi coordinates of the RoI used to seed this neighbourhood.
StripDataVector m_phi_high
Parameter: Vector strip cell e/eta/phi, high phi row.
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.
std::size_t maxCellIndex() const
Returns the index of the maximum energy cell in this neighbourhood.
std::size_t m_max_cell_pos
Parameter: Index of the cell with the maximum energy.
StripDataVector m_phi_center
Parameter: Vector strip cell e/eta/phi, central phi row.
const StripDataVector & phi_high() const
Returns a vector of strip cell e/eta/phi data for the central high row of the neighborhood.
const Coords & cellCoords() const
Returns the eta/phi coordinates of the maximum energy cell.
Coords m_roiCoords
Parameter: eta/Phi coordinate of the seed eFexRoITOB.
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
std::vector< StripData > StripDataVector
std::pair< double, double > Coords