ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
src
Egamma1BDT
eRatioAlgTool_UCL.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef GLOBALSIM_EGAMMA1ERATIOALGTOOL_H
6
#define GLOBALSIM_EGAMMA1ERATIOALGTOOL_H
7
11
12
#include "
../GlobalSimComponents/IGlobalSimAlgTool.h
"
13
#include "
../IO/LArStripNeighborhood.h
"
14
#include "
../IO/eEmNbhoodTOB.h
"
15
#include "
../IO/eEmEg1eRatioTOB.h
"
16
17
#include "
../Utilities/IDataCollector.h
"
18
19
#include "ap_int.h"
20
#include "ap_fixed.h"
21
#include "
../Utilities/Digitizer.h
"
22
23
#include "
AthenaBaseComps/AthAlgTool.h
"
24
25
#include <string>
26
#include <vector>
27
28
namespace
GlobalSim
{
29
class
eRatioAlgTool_UCL
:
public
extends<AthAlgTool, IGlobalSimAlgTool> {
30
31
public
:
32
eRatioAlgTool_UCL
(
const
std::string&
type
,
33
const
std::string& name,
34
const
IInterface* parent);
35
36
virtual
~eRatioAlgTool_UCL
() =
default
;
37
38
StatusCode
initialize
()
override
;
39
40
virtual
StatusCode
run
(
const
std::unique_ptr<IDataCollector>&,
41
const
EventContext& ctx)
const override
;
42
43
virtual
std::string
toString
()
const override
;
44
45
private
:
46
47
Gaudi::Property<bool>
48
m_enableDump
{
this
,
49
"enableDump"
,
50
{
false
},
51
"flag to enable dumps"
};
52
53
// input to the eRatio Algorithm
54
SG::ReadHandleKey<IOBitwise::eEmNbhoodTOBContainer>
55
m_nbhdTOBContainerReadKey
{
56
this
,
57
"LArNeighborhoodTOBContainerReadKey"
,
58
"stripNeighborhoodTOBContainer"
,
59
"key to read inLArNeighborhoodTOBsReadKeys"
};
60
61
SG::WriteHandleKey<std::vector<float>
>
62
m_eRatioKey
{
63
this
,
64
"eRatioKey"
,
65
"eRatio"
};
66
67
SG::WriteHandleKey<std::vector<float>
>
68
m_eRatioSimpleKey
{
69
this
,
70
"eRatioSimpleKey"
,
71
"eRatioSimple"
};
72
73
std::vector<double>
combine_phi
(
const
IOBitwise::eEmNbhoodTOB
*)
const
;
74
ap_int<16>
secondPeakSearch
(
const
std::vector<ap_int<16>>& input,
const
ap_int<16> peak,
75
const
int
startCell,
const
int
endCell,
76
const
ap_int<16> noiseMargin)
const
;
77
78
// a neighborhood has 3 vectors of strip energies (phi_low, phi_center.
79
// phi_high). Provide the length thes vectors must have for the eRatio to be
80
// evaluated
81
static
inline
constexpr
int
s_required_phi_len
= 17;
82
83
// the three strip energy vectors are combined to form a single vector.
84
// the length of this vector have the following length.
85
static
inline
constexpr
int
s_combination_len
= 51;
86
};
87
}
88
#endif
AthAlgTool.h
Digitizer.h
IDataCollector.h
IGlobalSimAlgTool.h
LArStripNeighborhood.h
GlobalSim::IOBitwise::eEmNbhoodTOB
Definition
eEmNbhoodTOB.h:29
GlobalSim::eRatioAlgTool_UCL::secondPeakSearch
ap_int< 16 > secondPeakSearch(const std::vector< ap_int< 16 > > &input, const ap_int< 16 > peak, const int startCell, const int endCell, const ap_int< 16 > noiseMargin) const
Definition
eRatioAlgTool_UCL.cxx:126
GlobalSim::eRatioAlgTool_UCL::combine_phi
std::vector< double > combine_phi(const IOBitwise::eEmNbhoodTOB *) const
Definition
eRatioAlgTool_UCL.cxx:170
GlobalSim::eRatioAlgTool_UCL::eRatioAlgTool_UCL
eRatioAlgTool_UCL(const std::string &type, const std::string &name, const IInterface *parent)
Definition
eRatioAlgTool_UCL.cxx:16
GlobalSim::eRatioAlgTool_UCL::toString
virtual std::string toString() const override
Definition
eRatioAlgTool_UCL.cxx:198
GlobalSim::eRatioAlgTool_UCL::run
virtual StatusCode run(const std::unique_ptr< IDataCollector > &, const EventContext &ctx) const override
Definition
eRatioAlgTool_UCL.cxx:32
GlobalSim::eRatioAlgTool_UCL::m_nbhdTOBContainerReadKey
SG::ReadHandleKey< IOBitwise::eEmNbhoodTOBContainer > m_nbhdTOBContainerReadKey
Definition
eRatioAlgTool_UCL.h:55
GlobalSim::eRatioAlgTool_UCL::~eRatioAlgTool_UCL
virtual ~eRatioAlgTool_UCL()=default
GlobalSim::eRatioAlgTool_UCL::m_enableDump
Gaudi::Property< bool > m_enableDump
Definition
eRatioAlgTool_UCL.h:48
GlobalSim::eRatioAlgTool_UCL::s_combination_len
static constexpr int s_combination_len
Definition
eRatioAlgTool_UCL.h:85
GlobalSim::eRatioAlgTool_UCL::initialize
StatusCode initialize() override
Definition
eRatioAlgTool_UCL.cxx:22
GlobalSim::eRatioAlgTool_UCL::m_eRatioKey
SG::WriteHandleKey< std::vector< float > > m_eRatioKey
Definition
eRatioAlgTool_UCL.h:62
GlobalSim::eRatioAlgTool_UCL::m_eRatioSimpleKey
SG::WriteHandleKey< std::vector< float > > m_eRatioSimpleKey
Definition
eRatioAlgTool_UCL.h:68
GlobalSim::eRatioAlgTool_UCL::s_required_phi_len
static constexpr int s_required_phi_len
Definition
eRatioAlgTool_UCL.h:81
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
eEmEg1eRatioTOB.h
eEmNbhoodTOB.h
GlobalSim
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
Definition
Trigger/TrigT1/Global/GlobalSimulation/src/Egamma1BDT/Egamma1BDT/BDT.h:11
type
Generated on
for ATLAS Offline Software by
1.17.0