ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
src
FEX_Unpacker
eFexRoIAlgTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
./eFexRoIAlgTool.h
"
6
#include "
L1TopoEvent/eEmTOB.h
"
7
8
#include <cmath>
//for abs
9
10
namespace
GlobalSim
{
11
12
eFexRoIAlgTool::eFexRoIAlgTool
(
const
std::string&
type
,
13
const
std::string& name,
14
const
IInterface* parent):
15
AthAlgTool
(
type
, name, parent){
16
}
17
18
StatusCode
eFexRoIAlgTool::initialize
() {
19
CHECK
(
m_eEmRoIKey
.initialize());
20
21
return
StatusCode::SUCCESS;
22
}
23
24
StatusCode
25
eFexRoIAlgTool::RoIs
(std::vector<const xAOD::eFexEMRoI*>& selectedRoIs,
26
const
EventContext& ctx)
const
{
27
SG::ReadHandle<xAOD::eFexEMRoIContainer>
28
eFexEMRoIContainer(
m_eEmRoIKey
, ctx);
29
30
CHECK
(eFexEMRoIContainer.isValid());
31
32
33
34
/*
35
* eFexNumber() : 8 bit unsigned integer eFEX number
36
* et() : et value of the EM cluster in MeV
37
* etTOB() : et value of the EM cluster in units of 100 MeV
38
* eta() : floating point global eta
39
* phi() : floating point global phi
40
* iEtaTopo() : 40 x eta (custom function for L1Topo)
41
* iPhiTopo() : 20 x phi (custom function for L1Topo)
42
* RetaThresholds() : jet disc 1
43
* RhadThresholds() : jet disc 2
44
* WstotThresholds() : jet disc 3
45
*/
46
47
48
auto
roiSelector = [&etMin=
m_etMin
,
49
&etaMin=
m_etaMin
,
50
&etaMax=
m_etaMax
](
const
auto
& roi) {
51
52
auto
abs_eta = std::abs(roi->eta());
53
return
(etaMin <= abs_eta) and
54
(abs_eta < etaMax) and
55
(roi->et() > etMin);
56
};
57
58
std::copy_if((*eFexEMRoIContainer).begin(),
59
(*eFexEMRoIContainer).end(),
60
std::back_inserter(selectedRoIs),
61
std::move(roiSelector));
62
63
return
StatusCode::SUCCESS;
64
}
65
66
std::string
eFexRoIAlgTool::toString
()
const
{
67
std::string s =
"eFexRoIAlgTool: name"
+ name() +
'\n'
68
+
m_eEmRoIKey
.key() +
'\n'
;
69
return
s;
70
}
71
}
72
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
eEmTOB.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
GlobalSim::eFexRoIAlgTool::m_etaMin
Gaudi::Property< double > m_etaMin
Definition
eFexRoIAlgTool.h:50
GlobalSim::eFexRoIAlgTool::toString
virtual std::string toString() const
Definition
eFexRoIAlgTool.cxx:66
GlobalSim::eFexRoIAlgTool::m_eEmRoIKey
SG::ReadHandleKey< xAOD::eFexEMRoIContainer > m_eEmRoIKey
Definition
eFexRoIAlgTool.h:42
GlobalSim::eFexRoIAlgTool::initialize
StatusCode initialize() override
Definition
eFexRoIAlgTool.cxx:18
GlobalSim::eFexRoIAlgTool::RoIs
virtual StatusCode RoIs(std::vector< const xAOD::eFexEMRoI * > &, const EventContext &ctx) const
Definition
eFexRoIAlgTool.cxx:25
GlobalSim::eFexRoIAlgTool::m_etaMax
Gaudi::Property< double > m_etaMax
Definition
eFexRoIAlgTool.h:56
GlobalSim::eFexRoIAlgTool::eFexRoIAlgTool
eFexRoIAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
eFexRoIAlgTool.cxx:12
GlobalSim::eFexRoIAlgTool::m_etMin
Gaudi::Property< double > m_etMin
Definition
eFexRoIAlgTool.h:44
SG::ReadHandle
Definition
StoreGate/StoreGate/ReadHandle.h:67
eFexRoIAlgTool.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