ATLAS Offline Software
Loading...
Searching...
No Matches
Egamma1BDTAlgTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef GLOBALSIM_EGAMMA1BDTALGTOOL_H
6#define GLOBALSIM_EGAMMA1BDTALGTOOL_H
7
11
15#include "../IO/eEmNbhoodTOB.h"
17#include "../IO/eEmEg1BDTTOB.h"
18#include "../IO/IeEmEg1BDTTOB.h" // constains const static parameters
19
20
21#include "ap_int.h"
22#include "ap_fixed.h"
23#include "Digitizer.h"
24
25#include "./Egamma1BDT/BDT.h"
26
28
29#include <string>
30#include <vector>
31
32namespace GlobalSim {
33 class Egamma1BDTAlgTool: public extends<AthAlgTool, IGlobalSimAlgTool> {
34
35 public:
36 Egamma1BDTAlgTool(const std::string& type,
37 const std::string& name,
38 const IInterface* parent);
39
40 virtual ~Egamma1BDTAlgTool() = default;
41
42 StatusCode initialize() override;
43
44 virtual StatusCode run(const EventContext& ctx) const override;
45
46 virtual std::string toString() const override;
47
48 private:
49
50
51 Gaudi::Property<bool>
53 "enableDump",
54 {false},
55 "flag to enable dumps"};
56
59 this,
60 "BDTResultKey",
61 "BDTResult"};
62
63 // input to the BDT Algorithm
66 this,
67 "LArNeighborhoodTOBContainerReadKey",
68 "stripNeighborhoodTOBContainer",
69 "key to read inLArNeighborhoodTOBsReadKeys"};
70
71 std::vector<double> combine_phi(const IOBitwise::eEmNbhoodTOB*) const;
72
73 // a neighborhood has 3 vectors of strip energies (phi_low, phi_center.
74 // phi_high). Provide the length thes vectors must have for the BDT to be
75 // evaluated
76 static inline constexpr int s_required_phi_len = 17;
77
78 // the three strip energy vectors are combined to form a single vector.
79 // the length of this vector have the following length.
80 static inline constexpr int s_combination_len = 18;
81 };
82}
83#endif
virtual ~Egamma1BDTAlgTool()=default
static constexpr int s_combination_len
Egamma1BDTAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< bool > m_enableDump
std::vector< double > combine_phi(const IOBitwise::eEmNbhoodTOB *) const
StatusCode initialize() override
SG::ReadHandleKey< IOBitwise::eEmNbhoodTOBContainer > m_nbhdTOBContainerReadKey
static constexpr int s_required_phi_len
virtual std::string toString() const override
SG::WriteHandleKey< IOBitwise::eEmEg1BDTTOBContainer > m_BDTResultKey
Class to hold an eFexRoI and LAr strip neighbourhood.
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.
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
Definition run.py:1