ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetRecTools
SiClusterizationTool
src
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
8
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
9
#include "
StoreGate/ReadCondHandleKey.h
"
10
#include "
StoreGate/WriteCondHandleKey.h
"
11
12
#include "
PoolSvc/IPoolSvc.h
"
13
14
#include "
TrkNeuralNetworkUtils/NeuralNetworkToHistoTool.h
"
15
16
#include "
SiClusterizationTool/TTrainedNetworkCollection.h
"
17
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
18
#include <string>
19
20
#include "TFile.h"
21
22
class
IPoolSvc
;
23
class
TTrainedNetwork
;
24
25
namespace
InDet
{
26
29
class
TTrainedNetworkCondAlg
:
public
AthCondAlgorithm
{
30
31
public
:
32
33
TTrainedNetworkCondAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
34
~TTrainedNetworkCondAlg
() =
default
;
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
43
ServiceHandle
<
IPoolSvc
>
m_poolsvc
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
48
SG::ReadCondHandleKey<CondAttrListCollection>
m_readKey
49
{
this
,
"ReadKey"
,
"/PIXEL/PixelClustering/PixelClusNNCalib"
,
"Cool folder name for the cluster NN input histogram file."
};
50
51
SG::WriteCondHandleKey<TTrainedNetworkCollection>
m_writeKey
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
AthCondAlgorithm.h
Base class for conditions algorithms.
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
IPoolSvc.h
This file contains the class definition for the IPoolSvc interface class.
NeuralNetworkToHistoTool.h
ReadCondHandleKey.h
TTrainedNetworkCollection.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
IPoolSvc
This class provides the interface to the APR persistency software.
Definition
IPoolSvc.h:35
InDet::TTrainedNetworkCondAlg::m_thresholdIndicator
Gaudi::Property< std::string > m_thresholdIndicator
Definition
TTrainedNetworkCondAlg.h:78
InDet::TTrainedNetworkCondAlg::finalize
StatusCode finalize() override final
Definition
TTrainedNetworkCondAlg.cxx:35
InDet::TTrainedNetworkCondAlg::execute
StatusCode execute(const EventContext &ctx) const override final
Definition
TTrainedNetworkCondAlg.cxx:103
InDet::TTrainedNetworkCondAlg::m_poolsvc
ServiceHandle< IPoolSvc > m_poolsvc
Definition
TTrainedNetworkCondAlg.h:44
InDet::TTrainedNetworkCondAlg::m_weightIndicator
Gaudi::Property< std::string > m_weightIndicator
Definition
TTrainedNetworkCondAlg.h:75
InDet::TTrainedNetworkCondAlg::m_networkToHistoTool
ToolHandle< Trk::NeuralNetworkToHistoTool > m_networkToHistoTool
Definition
TTrainedNetworkCondAlg.h:46
InDet::TTrainedNetworkCondAlg::initialize
StatusCode initialize() override final
Definition
TTrainedNetworkCondAlg.cxx:25
InDet::TTrainedNetworkCondAlg::m_layerInfoHistogram
Gaudi::Property< std::string > m_layerInfoHistogram
Definition
TTrainedNetworkCondAlg.h:69
InDet::TTrainedNetworkCondAlg::m_layerPrefix
Gaudi::Property< std::string > m_layerPrefix
Definition
TTrainedNetworkCondAlg.h:72
InDet::TTrainedNetworkCondAlg::retrieveNetwork
TTrainedNetwork * retrieveNetwork(TFile &input_file, const std::string &folder) const
Definition
TTrainedNetworkCondAlg.cxx:57
InDet::TTrainedNetworkCondAlg::TTrainedNetworkCondAlg
TTrainedNetworkCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TTrainedNetworkCondAlg.cxx:21
InDet::TTrainedNetworkCondAlg::m_nnOrder
Gaudi::Property< std::vector< std::string > > m_nnOrder
Definition
TTrainedNetworkCondAlg.h:55
InDet::TTrainedNetworkCondAlg::~TTrainedNetworkCondAlg
~TTrainedNetworkCondAlg()=default
InDet::TTrainedNetworkCondAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition
TTrainedNetworkCondAlg.h:49
InDet::TTrainedNetworkCondAlg::m_getInputsInfo
Gaudi::Property< bool > m_getInputsInfo
Definition
TTrainedNetworkCondAlg.h:81
InDet::TTrainedNetworkCondAlg::m_writeKey
SG::WriteCondHandleKey< TTrainedNetworkCollection > m_writeKey
Definition
TTrainedNetworkCondAlg.h:52
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
ServiceHandle
Definition
ClusterMakerTool.h:36
TTrainedNetwork
Definition
InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h:21
const
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
std
STL namespace.
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0