ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
src
Egamma1BDT
Egamma1BDTAlgTool.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_EGAMMA1BDTALGTOOL_H
6
#define GLOBALSIM_EGAMMA1BDTALGTOOL_H
7
11
12
#include "
../GlobalSimComponents/IGlobalSimAlgTool.h
"
13
#include "
../IO/LArStripNeighborhood.h
"
14
#include "
../IO/eEmNbhoodTOB.h
"
15
#include "
../IO/eEmEg1BDTTOB.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 "
./Egamma1BDT/BDT.h
"
24
25
#include "
AthenaBaseComps/AthAlgTool.h
"
26
27
#include <string>
28
#include <vector>
29
30
namespace
GlobalSim
{
31
32
class
Egamma1BDTAlgTool
:
public
extends<AthAlgTool, IGlobalSimAlgTool> {
33
34
using
eEmEg1BDTTOBContainer
=
GlobalSim::IOBitwise::eEmEg1BDTTOBContainer
;
35
using
eEmNbhoodTOBContainer
=
GlobalSim::IOBitwise::eEmNbhoodTOBContainer
;
36
37
public
:
38
Egamma1BDTAlgTool
(
const
std::string&
type
,
39
const
std::string& name,
40
const
IInterface* parent);
41
42
virtual
~Egamma1BDTAlgTool
() =
default
;
43
44
StatusCode
initialize
()
override
;
45
46
virtual
StatusCode
run
(
const
std::unique_ptr<IDataCollector>&,
47
const
EventContext& ctx)
const override
;
48
49
virtual
std::string
toString
()
const override
;
50
51
static
constexpr
std::size_t
BDT_ouput_width
= 10;
52
53
private
:
54
55
56
Gaudi::Property<bool>
57
m_enableDump
{
this
,
58
"enableDump"
,
59
{
false
},
60
"flag to enable dumps"
};
61
62
SG::WriteHandleKey<std::vector<float>
>
63
m_BDTScoreKey
{
64
this
,
65
"BDTScoreKey"
,
66
"L1_eGamma1BDT"
};
67
68
// input to the BDT Algorithm
69
SG::ReadHandleKey<eEmNbhoodTOBContainer>
70
m_nbhdTOBContainerReadKey
{
71
this
,
72
"LArNeighborhoodTOBContainerKey"
,
73
"stripNeighborhoodTOBContainer"
,
74
"key to read inLArNeighborhoodTOBs"
};
75
76
SG::WriteHandleKey<eEmEg1BDTTOBContainer>
77
m_eEmEg1BDTTOBContainerKey
{
78
this
,
79
"eEmEg1BDTTOBContainerKey"
,
80
"eEmEg1BDTTOBContainer"
};
81
82
int
bitSetToInt
(std::bitset<BDT_ouput_width> bitSet)
const
;
83
std::vector<double>
combine_phi
(
const
IOBitwise::eEmNbhoodTOB
*)
const
;
84
85
// a neighborhood has 3 vectors of strip energies (phi_low, phi_center.
86
// phi_high). Provide the length thes vectors must have for the BDT to be
87
// evaluated
88
static
inline
constexpr
int
s_required_phi_len
= 17;
89
90
// the three strip energy vectors are combined to form a single vector.
91
// the length of this vector have the following length.
92
static
inline
constexpr
int
s_combination_len
= 18;
93
};
94
}
95
#endif
AthAlgTool.h
Digitizer.h
IDataCollector.h
IGlobalSimAlgTool.h
LArStripNeighborhood.h
BDT.h
GlobalSim::Egamma1BDTAlgTool::~Egamma1BDTAlgTool
virtual ~Egamma1BDTAlgTool()=default
GlobalSim::Egamma1BDTAlgTool::s_combination_len
static constexpr int s_combination_len
Definition
Egamma1BDTAlgTool.h:92
GlobalSim::Egamma1BDTAlgTool::run
virtual StatusCode run(const std::unique_ptr< IDataCollector > &, const EventContext &ctx) const override
Definition
Egamma1BDTAlgTool.cxx:37
GlobalSim::Egamma1BDTAlgTool::Egamma1BDTAlgTool
Egamma1BDTAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
Egamma1BDTAlgTool.cxx:19
GlobalSim::Egamma1BDTAlgTool::eEmNbhoodTOBContainer
GlobalSim::IOBitwise::eEmNbhoodTOBContainer eEmNbhoodTOBContainer
Definition
Egamma1BDTAlgTool.h:35
GlobalSim::Egamma1BDTAlgTool::m_enableDump
Gaudi::Property< bool > m_enableDump
Definition
Egamma1BDTAlgTool.h:57
GlobalSim::Egamma1BDTAlgTool::combine_phi
std::vector< double > combine_phi(const IOBitwise::eEmNbhoodTOB *) const
Definition
Egamma1BDTAlgTool.cxx:135
GlobalSim::Egamma1BDTAlgTool::eEmEg1BDTTOBContainer
GlobalSim::IOBitwise::eEmEg1BDTTOBContainer eEmEg1BDTTOBContainer
Definition
Egamma1BDTAlgTool.h:34
GlobalSim::Egamma1BDTAlgTool::m_BDTScoreKey
SG::WriteHandleKey< std::vector< float > > m_BDTScoreKey
Definition
Egamma1BDTAlgTool.h:63
GlobalSim::Egamma1BDTAlgTool::initialize
StatusCode initialize() override
Definition
Egamma1BDTAlgTool.cxx:25
GlobalSim::Egamma1BDTAlgTool::BDT_ouput_width
static constexpr std::size_t BDT_ouput_width
Definition
Egamma1BDTAlgTool.h:51
GlobalSim::Egamma1BDTAlgTool::bitSetToInt
int bitSetToInt(std::bitset< BDT_ouput_width > bitSet) const
Definition
Egamma1BDTAlgTool.cxx:128
GlobalSim::Egamma1BDTAlgTool::m_nbhdTOBContainerReadKey
SG::ReadHandleKey< eEmNbhoodTOBContainer > m_nbhdTOBContainerReadKey
Definition
Egamma1BDTAlgTool.h:70
GlobalSim::Egamma1BDTAlgTool::s_required_phi_len
static constexpr int s_required_phi_len
Definition
Egamma1BDTAlgTool.h:88
GlobalSim::Egamma1BDTAlgTool::toString
virtual std::string toString() const override
Definition
Egamma1BDTAlgTool.cxx:174
GlobalSim::Egamma1BDTAlgTool::m_eEmEg1BDTTOBContainerKey
SG::WriteHandleKey< eEmEg1BDTTOBContainer > m_eEmEg1BDTTOBContainerKey
Definition
Egamma1BDTAlgTool.h:77
GlobalSim::IOBitwise::eEmNbhoodTOB
Definition
eEmNbhoodTOB.h:29
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
eEmEg1BDTTOB.h
eEmNbhoodTOB.h
GlobalSim::IOBitwise::eEmEg1BDTTOBContainer
DataVector< GlobalSim::IOBitwise::eEmEg1BDTTOB > eEmEg1BDTTOBContainer
Definition
eEmEg1BDTTOB.h:78
GlobalSim::IOBitwise::eEmNbhoodTOBContainer
DataVector< GlobalSim::IOBitwise::eEmNbhoodTOB > eEmNbhoodTOBContainer
Definition
eEmNbhoodTOB.h:79
GlobalSim
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
Definition
BitSpec.h:23
type
Generated on
for ATLAS Offline Software by
1.17.0