ATLAS Offline Software
LArStripNeighborhood.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GLOBALSIM_LARSTRIPNEIGHBORHOOD_H
6 #define GLOBALSIM_LARSTRIPNEIGHBORHOOD_H
7 
8 #include "StripData.h"
9 
10 #include <vector>
11 #include <memory>
12 #include <ostream>
13 
14 namespace GlobalSim {
15  class LArStripNeighborhood;
16 }
17 
18 
19 std::ostream&
20 operator<< (std::ostream&, const GlobalSim::LArStripNeighborhood&);
21 
22 namespace GlobalSim {
23 
24  using StripDataVector = std::vector<StripData>;
25 
26  using Coords = std::pair<double, double>;
27 
29  public:
30 
31 
35  const Coords& roiCoords,
36  const Coords& cellCoords,
37  std::size_t max_cell_pos);
38 
39  const StripDataVector& phi_low() const {return m_phi_low;}
40  const StripDataVector& phi_center() const {return m_phi_center;}
41  const StripDataVector& phi_high() const {return m_phi_high;}
42 
43  std::size_t maxCellIndex() const {return m_max_cell_pos;}
44 
45  const Coords& roiCoords() const {return m_roiCoords;}
46  const Coords& cellCoords() const {return m_cellCoords;}
47 
48  private:
49  friend std::ostream& ::operator<<(std::ostream&,
50  const LArStripNeighborhood&);
55  // coords of cell in RoI with maximum energy
57  std::size_t m_max_cell_pos{0};
58  };
59 }
60 
61 #endif
GlobalSim::LArStripNeighborhood::m_cellCoords
Coords m_cellCoords
Definition: LArStripNeighborhood.h:56
GlobalSim::LArStripNeighborhood::phi_center
const StripDataVector & phi_center() const
Definition: LArStripNeighborhood.h:40
GlobalSim::LArStripNeighborhood::m_phi_center
StripDataVector m_phi_center
Definition: LArStripNeighborhood.h:52
GlobalSim::Coords
std::pair< double, double > Coords
Definition: LArStripNeighborhood.h:26
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)
Definition: LArStripNeighborhood.cxx:11
GlobalSim::LArStripNeighborhood::m_phi_low
StripDataVector m_phi_low
Definition: LArStripNeighborhood.h:51
GlobalSim
AlgTool to obtain a selection of eFex RoIs read in from the event store.
Definition: dump.h:8
GlobalSim::LArStripNeighborhood::cellCoords
const Coords & cellCoords() const
Definition: LArStripNeighborhood.h:46
GlobalSim::LArStripNeighborhood::m_phi_high
StripDataVector m_phi_high
Definition: LArStripNeighborhood.h:53
GlobalSim::LArStripNeighborhood::maxCellIndex
std::size_t maxCellIndex() const
Definition: LArStripNeighborhood.h:43
GlobalSim::LArStripNeighborhood::roiCoords
const Coords & roiCoords() const
Definition: LArStripNeighborhood.h:45
GlobalSim::LArStripNeighborhood::phi_low
const StripDataVector & phi_low() const
Definition: LArStripNeighborhood.h:39
GlobalSim::LArStripNeighborhood::phi_high
const StripDataVector & phi_high() const
Definition: LArStripNeighborhood.h:41
StripData.h
GlobalSim::LArStripNeighborhood
Definition: LArStripNeighborhood.h:28
GlobalSim::StripDataVector
std::vector< StripData > StripDataVector
Definition: LArStripNeighborhood.h:24
GlobalSim::LArStripNeighborhood::m_max_cell_pos
std::size_t m_max_cell_pos
Definition: LArStripNeighborhood.h:57
GlobalSim::LArStripNeighborhood::m_roiCoords
Coords m_roiCoords
Definition: LArStripNeighborhood.h:54
operator<<
std::ostream & operator<<(std::ostream &, const GlobalSim::LArStripNeighborhood &)
Definition: LArStripNeighborhood.cxx:27