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 IPoolSvc;
23class TTrainedNetwork;
24
25namespace InDet {
26
30
31 public:
32
33 TTrainedNetworkCondAlg (const std::string& name, ISvcLocator* pSvcLocator);
35
36 StatusCode initialize() override final;
37 StatusCode execute(const EventContext& ctx) const override final;
38 StatusCode finalize() override final;
39
40 private:
41 TTrainedNetwork* retrieveNetwork(TFile &input_file, const std::string& folder) const;
42
44 {this, "PoolSvc", "PoolSvc", "The service to retrieve files by GUID."};
45 ToolHandle<Trk::NeuralNetworkToHistoTool> m_networkToHistoTool
46 {this,"NetworkToHistoTool", "Trk::NeuralNetworkToHistoTool/NeuralNetworkToHistoTool", "Tool to create a neural network from a set of histograms." };
47
49 {this, "ReadKey", "/PIXEL/PixelClustering/PixelClusNNCalib", "Cool folder name for the cluster NN input histogram file."};
50
52 {this, "WriteKey", "PixelClusterNN", "The conditions statore key for the pixel cluster NNs"};
53
54 Gaudi::Property< std::vector<std::string> > m_nnOrder
55 {this, "NetworkNames", {
56 "NumberParticles_NoTrack/",
57 "ImpactPoints1P_NoTrack/",
58 "ImpactPoints2P_NoTrack/",
59 "ImpactPoints3P_NoTrack/",
60 "ImpactPointErrorsX1_NoTrack/",
61 "ImpactPointErrorsX2_NoTrack/",
62 "ImpactPointErrorsX3_NoTrack/",
63 "ImpactPointErrorsY1_NoTrack/",
64 "ImpactPointErrorsY2_NoTrack/",
65 "ImpactPointErrorsY3_NoTrack/"},
66 "List of network names, which are created in this order"};
67
68 Gaudi::Property<std::string> m_layerInfoHistogram
69 {this, "LayerInfoHistogram", "LayersInfo","Name about the layer info histogram."};
70
71 Gaudi::Property<std::string> m_layerPrefix
72 {this, "LayerPrefix", "Layer", "Prefix of the pre layer weight and threshold histograms."};
73
74 Gaudi::Property<std::string> m_weightIndicator
75 {this, "LayerWeightIndicator", "_weights", "Suffix of the weight histograms."};
76
77 Gaudi::Property<std::string> m_thresholdIndicator
78 {this, "LayerThresholdIndicator", "_thresholds","Suffix of the threshold histograms."};
79
80 Gaudi::Property<bool> m_getInputsInfo
81 {this, "GetInputsInfo", false,"Also read a histogram which contains information about the inputs (Run I)."};
82};
83}
84#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 LCG POOL 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