ATLAS Offline Software
Loading...
Searching...
No Matches
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
14#include "../IO/eEmNbhoodTOB.h"
15#include "../IO/eEmEg1BDTTOB.h"
16
17
18#include "ap_int.h"
19#include "ap_fixed.h"
20#include "Digitizer.h"
21
22#include "./Egamma1BDT/BDT.h"
23
25
26#include <string>
27#include <vector>
28
29namespace GlobalSim {
30
31 class Egamma1BDTAlgTool: public extends<AthAlgTool, IGlobalSimAlgTool> {
32
35
36 public:
37 Egamma1BDTAlgTool(const std::string& type,
38 const std::string& name,
39 const IInterface* parent);
40
41 virtual ~Egamma1BDTAlgTool() = default;
42
43 StatusCode initialize() override;
44
45 virtual StatusCode run(const EventContext& ctx) const override;
46
47 virtual std::string toString() const override;
48
49 private:
50
51
52 Gaudi::Property<bool>
54 "enableDump",
55 {false},
56 "flag to enable dumps"};
57
60 this,
61 "BDTResultKey",
62 "BDTResult"};
63
64 // input to the BDT Algorithm
67 this,
68 "LArNeighborhoodTOBContainerReadKey",
69 "stripNeighborhoodTOBContainer",
70 "key to read inLArNeighborhoodTOBsReadKeys"};
71
72 std::vector<double> combine_phi(const IOBitwise::eEmNbhoodTOB*) const;
73
74 // a neighborhood has 3 vectors of strip energies (phi_low, phi_center.
75 // phi_high). Provide the length thes vectors must have for the BDT to be
76 // evaluated
77 static inline constexpr int s_required_phi_len = 17;
78
79 // the three strip energy vectors are combined to form a single vector.
80 // the length of this vector have the following length.
81 static inline constexpr int s_combination_len = 18;
82 };
83}
84#endif
virtual ~Egamma1BDTAlgTool()=default
static constexpr int s_combination_len
Egamma1BDTAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
GlobalSim::IOBitwise::eEmNbhoodTOBContainer eEmNbhoodTOBContainer
Gaudi::Property< bool > m_enableDump
std::vector< double > combine_phi(const IOBitwise::eEmNbhoodTOB *) const
GlobalSim::IOBitwise::eEmEg1BDTTOBContainer eEmEg1BDTTOBContainer
StatusCode initialize() override
virtual StatusCode run(const EventContext &ctx) const override
SG::ReadHandleKey< eEmNbhoodTOBContainer > m_nbhdTOBContainerReadKey
static constexpr int s_required_phi_len
SG::WriteHandleKey< eEmEg1BDTTOBContainer > m_BDTResultKey
virtual std::string toString() const override
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
DataVector< GlobalSim::IOBitwise::eEmNbhoodTOB > eEmNbhoodTOBContainer
DataVector< GlobalSim::IOBitwise::eEmEg1BDTTOB > eEmEg1BDTTOBContainer
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...