ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
src
IO
LArStripNeighborhood.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArStripNeighborhood.h
"
6
7
#include <sstream>
8
9
namespace
GlobalSim
{
10
11
LArStripNeighborhood::LArStripNeighborhood
(
const
StripDataVector
&
phi_low
,
12
const
StripDataVector
&
phi_center
,
13
const
StripDataVector
&
phi_high
,
14
const
Coords
& roi,
15
const
Coords
& cell,
16
std::size_t max_cell_pos) :
17
m_phi_low
{
phi_low
},
18
m_phi_center
{
phi_center
},
19
m_phi_high
{
phi_high
},
20
m_roiCoords
{roi},
21
m_cellCoords
{cell},
22
m_max_cell_pos
{max_cell_pos}{
23
}
24
25
std::string
LArStripNeighborhood::to_string
()
const
{
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
}
48
}
49
50
std::ostream&
51
operator<<
(std::ostream& os,
52
const
GlobalSim::LArStripNeighborhood
& n) {
53
os << n.to_string();
54
return
os;
55
}
56
57
58
59
60
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
operator<<
std::ostream & operator<<(std::ostream &os, const GlobalSim::LArStripNeighborhood &n)
Definition
LArStripNeighborhood.cxx:51
LArStripNeighborhood.h
GlobalSim::LArStripNeighborhood
Class to hold windows of LAr strip cells in a the neighbourhood of a eFexRoI.
Definition
LArStripNeighborhood.h:37
GlobalSim::LArStripNeighborhood::to_string
std::string to_string() const
print out contents to string
Definition
LArStripNeighborhood.cxx:25
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_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::m_phi_low
StripDataVector m_phi_low
Parameter: Vector strip cell e/eta/phi, low phi row.
Definition
LArStripNeighborhood.h:79
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::roiCoords
const Coords & roiCoords() const
Returns the eta/phi coordinates of the RoI used to seed this neighbourhood.
Definition
LArStripNeighborhood.h:70
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::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::maxCellIndex
std::size_t maxCellIndex() const
Returns the index of the maximum energy cell in this neighbourhood.
Definition
LArStripNeighborhood.h:67
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_phi_center
StripDataVector m_phi_center
Parameter: Vector strip cell e/eta/phi, central phi row.
Definition
LArStripNeighborhood.h:81
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::cellCoords
const Coords & cellCoords() const
Returns the eta/phi coordinates of the maximum energy cell.
Definition
LArStripNeighborhood.h:72
GlobalSim::LArStripNeighborhood::m_roiCoords
Coords m_roiCoords
Parameter: eta/Phi coordinate of the seed eFexRoITOB.
Definition
LArStripNeighborhood.h:85
GlobalSim
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
Definition
Trigger/TrigT1/Global/GlobalSimulation/src/Egamma1BDT/Egamma1BDT/BDT.h:11
GlobalSim::StripDataVector
std::vector< StripData > StripDataVector
Definition
LArStripNeighborhood.h:24
GlobalSim::Coords
std::pair< double, double > Coords
Definition
LArStripNeighborhood.h:25
Generated on
for ATLAS Offline Software by
1.17.0