ATLAS Offline Software
Loading...
Searching...
No Matches
TTrainedNetworkCondAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef _InDet_TTrainedNetworkCondAlg_H_
6#define _InDet_TTrainedNetworkCondAlg_H_
7
11
12#include "PoolSvc/IPoolSvc.h"
13
15
18#include <string>
19
20#include "TFile.h"
21
22class TTrainedNetwork;
23
24namespace InDet {
25
29
30 public:
31
32 TTrainedNetworkCondAlg (const std::string& name, ISvcLocator* pSvcLocator);
34
35 StatusCode initialize() override final;
36 StatusCode execute(const EventContext& ctx) const override final;
37 StatusCode finalize() override final;
38
39 private:
40 TTrainedNetwork* retrieveNetwork(TFile &input_file, const std::string& folder) const;
41
43 {this, "PoolSvc", "PoolSvc", "The service to retrieve files by GUID."};
44 ToolHandle<Trk::NeuralNetworkToHistoTool> m_networkToHistoTool
45 {this,"NetworkToHistoTool", "Trk::NeuralNetworkToHistoTool/NeuralNetworkToHistoTool", "Tool to create a neural network from a set of histograms." };
46
48 {this, "ReadKey", "/PIXEL/PixelClustering/PixelClusNNCalib", "Cool folder name for the cluster NN input histogram file."};
49
51 {this, "WriteKey", "PixelClusterNN", "The conditions statore key for the pixel cluster NNs"};
52
53 Gaudi::Property< std::vector<std::string> > m_nnOrder
54 {this, "NetworkNames", {
55 "NumberParticles_NoTrack/",
56 "ImpactPoints1P_NoTrack/",
57 "ImpactPoints2P_NoTrack/",
58 "ImpactPoints3P_NoTrack/",
59 "ImpactPointErrorsX1_NoTrack/",
60 "ImpactPointErrorsX2_NoTrack/",
61 "ImpactPointErrorsX3_NoTrack/",
62 "ImpactPointErrorsY1_NoTrack/",
63 "ImpactPointErrorsY2_NoTrack/",
64 "ImpactPointErrorsY3_NoTrack/"},
65 "List of network names, which are created in this order"};
66
67 Gaudi::Property<std::string> m_layerInfoHistogram
68 {this, "LayerInfoHistogram", "LayersInfo","Name about the layer info histogram."};
69
70 Gaudi::Property<std::string> m_layerPrefix
71 {this, "LayerPrefix", "Layer", "Prefix of the pre layer weight and threshold histograms."};
72
73 Gaudi::Property<std::string> m_weightIndicator
74 {this, "LayerWeightIndicator", "_weights", "Suffix of the weight histograms."};
75
76 Gaudi::Property<std::string> m_thresholdIndicator
77 {this, "LayerThresholdIndicator", "_thresholds","Suffix of the threshold histograms."};
78
79 Gaudi::Property<bool> m_getInputsInfo
80 {this, "GetInputsInfo", false,"Also read a histogram which contains information about the inputs (Run I)."};
81};
82}
83#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
This file contains the class definition for the IPoolSvc interface class.
Base class for conditions algorithms.
This class provides the interface to the APR persistency software.
Definition IPoolSvc.h:35
Gaudi::Property< std::string > m_thresholdIndicator
StatusCode finalize() override final
StatusCode execute(const EventContext &ctx) const override final
ServiceHandle< IPoolSvc > m_poolsvc
Gaudi::Property< std::string > m_weightIndicator
ToolHandle< Trk::NeuralNetworkToHistoTool > m_networkToHistoTool
StatusCode initialize() override final
Gaudi::Property< std::string > m_layerInfoHistogram
Gaudi::Property< std::string > m_layerPrefix
TTrainedNetwork * retrieveNetwork(TFile &input_file, const std::string &folder) const
TTrainedNetworkCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::vector< std::string > > m_nnOrder
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Gaudi::Property< bool > m_getInputsInfo
SG::WriteCondHandleKey< TTrainedNetworkCollection > m_writeKey
Primary Vertex Finder.
STL namespace.
#define private
Definition testRead.cxx:27