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
TTrainedNetwork
;
23
24
namespace
InDet
{
25
28
class
TTrainedNetworkCondAlg
:
public
AthCondAlgorithm
{
29
30
public
:
31
32
TTrainedNetworkCondAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
33
~TTrainedNetworkCondAlg
() =
default
;
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
42
ServiceHandle
<
IPoolSvc
>
m_poolsvc
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
47
SG::ReadCondHandleKey<CondAttrListCollection>
m_readKey
48
{
this
,
"ReadKey"
,
"/PIXEL/PixelClustering/PixelClusNNCalib"
,
"Cool folder name for the cluster NN input histogram file."
};
49
50
SG::WriteCondHandleKey<TTrainedNetworkCollection>
m_writeKey
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
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:77
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:43
InDet::TTrainedNetworkCondAlg::m_weightIndicator
Gaudi::Property< std::string > m_weightIndicator
Definition
TTrainedNetworkCondAlg.h:74
InDet::TTrainedNetworkCondAlg::m_networkToHistoTool
ToolHandle< Trk::NeuralNetworkToHistoTool > m_networkToHistoTool
Definition
TTrainedNetworkCondAlg.h:45
InDet::TTrainedNetworkCondAlg::initialize
StatusCode initialize() override final
Definition
TTrainedNetworkCondAlg.cxx:25
InDet::TTrainedNetworkCondAlg::m_layerInfoHistogram
Gaudi::Property< std::string > m_layerInfoHistogram
Definition
TTrainedNetworkCondAlg.h:68
InDet::TTrainedNetworkCondAlg::m_layerPrefix
Gaudi::Property< std::string > m_layerPrefix
Definition
TTrainedNetworkCondAlg.h:71
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:54
InDet::TTrainedNetworkCondAlg::~TTrainedNetworkCondAlg
~TTrainedNetworkCondAlg()=default
InDet::TTrainedNetworkCondAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition
TTrainedNetworkCondAlg.h:48
InDet::TTrainedNetworkCondAlg::m_getInputsInfo
Gaudi::Property< bool > m_getInputsInfo
Definition
TTrainedNetworkCondAlg.h:80
InDet::TTrainedNetworkCondAlg::m_writeKey
SG::WriteCondHandleKey< TTrainedNetworkCollection > m_writeKey
Definition
TTrainedNetworkCondAlg.h:51
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