ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigGepPerf
src
EratioMaker.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2025 CERN
3
* for the benefit of the ATLAS collaboration
4
*/
5
6
#ifndef TRIGGEPPERF_ERATIO_H
7
#define TRIGGEPPERF_ERATIO_H
8
9
#include <vector>
10
#include <utility>
11
#include <cmath>
12
#include "
xAODTrigger/eFexEMRoIContainer.h
"
13
#include "
TrigGepPerf/GepCellMap.h
"
14
#include "Math/Vector4D.h"
15
16
namespace
Gep
{
17
18
// Auxiliary structure for Eratio result, and init values to 0.
19
struct
EratioObj
{
20
double
seedEta
{0.};
21
double
seedPhi
{0.};
22
double
E1
{0.};
23
double
E2
{0.};
24
double
Eratio
{0.};
25
};
26
27
class
EratioMaker
{
28
public
:
29
30
// Constructor
31
EratioMaker
(
const
GepCellMap
& caloCellsMap);
32
33
// Main method to get Eratio for each seed
34
const
EratioObj
makeEratio
(
const
ROOT::Math::PtEtaPhiEVector obj)
const
;
35
36
private
:
37
// Auxiliary methods - intermediate steps
38
std::vector<std::vector<GepCaloCell>>
makeWindow
(
const
ROOT::Math::PtEtaPhiEVector &obj)
const
;
39
std::pair<double, double>
findLocalMaxima
(
const
std::vector<std::vector<GepCaloCell>>& window)
const
;
40
double
computeEratio
(
double
E1,
double
E2)
const
;
41
42
// Attributes
43
const
GepCellMap
&
m_caloCellsMap
;
44
};
45
46
}
// namespace Gep
47
48
#endif
// TRIGGEPPERF_ERATIO_H
GepCellMap.h
Gep::EratioMaker::findLocalMaxima
std::pair< double, double > findLocalMaxima(const std::vector< std::vector< GepCaloCell > > &window) const
Definition
EratioMaker.cxx:94
Gep::EratioMaker::computeEratio
double computeEratio(double E1, double E2) const
Definition
EratioMaker.cxx:149
Gep::EratioMaker::EratioMaker
EratioMaker(const GepCellMap &caloCellsMap)
Definition
EratioMaker.cxx:15
Gep::EratioMaker::makeEratio
const EratioObj makeEratio(const ROOT::Math::PtEtaPhiEVector obj) const
Definition
EratioMaker.cxx:158
Gep::EratioMaker::makeWindow
std::vector< std::vector< GepCaloCell > > makeWindow(const ROOT::Math::PtEtaPhiEVector &obj) const
Definition
EratioMaker.cxx:27
Gep::EratioMaker::m_caloCellsMap
const GepCellMap & m_caloCellsMap
Definition
EratioMaker.h:43
Gep::GepCellMap
Definition
GepCellMap.h:17
eFexEMRoIContainer.h
Gep
Definition
BasicGepClusterMaker.h:13
Gep::EratioObj
Definition
EratioMaker.h:19
Gep::EratioObj::Eratio
double Eratio
Definition
EratioMaker.h:24
Gep::EratioObj::E1
double E1
Definition
EratioMaker.h:22
Gep::EratioObj::E2
double E2
Definition
EratioMaker.h:23
Gep::EratioObj::seedPhi
double seedPhi
Definition
EratioMaker.h:21
Gep::EratioObj::seedEta
double seedEta
Definition
EratioMaker.h:20
Generated on
for ATLAS Offline Software by
1.14.0