ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::LayerMaterialAnalyser Class Reference

LayerMaterialProperties creator for CompoundLayerMaterial. More...

#include <LayerMaterialAnalyser.h>

Inheritance diagram for Trk::LayerMaterialAnalyser:
Collaboration diagram for Trk::LayerMaterialAnalyser:

Public Member Functions

 LayerMaterialAnalyser (const std::string &, const std::string &, const IInterface *)
 Constructor.
 ~LayerMaterialAnalyser ()
 Destructor.
StatusCode initialize ()
 AlgTool initialize method.
StatusCode finalize ()
 AlgTool finalize method.
StatusCode analyseLayerMaterial (const Layer &lay) const
 process the layer - after material creation and loading
StatusCode analyseLayerMaterial (const Layer &lay, const LayerMaterialProperties &lmp) const
 process the layer material proerties - after material creation and before loading
StatusCode analyseLayerMaterial (const Layer &lay, const MaterialPropertiesMatrix &lmr) const
 process the layer material record - before material creation
StatusCode analyseLayerMaterial (const Layer &lay, const LayerMaterialRecord &lmr) const
 process the layer material record - before material creation
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
 DeclareInterfaceID (ILayerMaterialAnalyser, 1, 0)
 Creates the InterfaceID and interfaceID() method.

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

StatusCode analyse (const Layer &lay, const MaterialPropertiesMatrix &lmr, const std::vector< std::vector< unsigned int > > *bCounter=0) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

std::string m_layerMaterialName
TTree * m_validationTree
 The validation tree.
std::string m_validationTreeName
 validation tree name - to be accessed by this from root
std::string m_validationTreeDescription
 validation tree description - second argument in TTree
std::string m_validationTreeFolder
 stream/folder to for the TTree to be written out
int m_layerIndex
 the layer index given by the TrackingGeometry
int m_layerType
 the type of the layer 1 - cylinder, 2 - disk
std::vector< float > * m_layerTranslation
 center of the transform
std::vector< float > * m_layerRotation
 orientation of the layer
float m_layerDimension0
 dimension 0 : cylinder r, disk r_min
float m_layerDimension1
 dimension 1 : cylinder z, disk r_max
int m_layerBins
 total number of bins - loc0 * loc 1
int m_layerBins0
 total number of bins - loc 0
int m_layerBins1
 total number of bins - loc 0
std::vector< int > * m_bin0
 bin 0
std::vector< int > * m_bin1
 bin 1
std::vector< float > * m_thickness
 gathered thickness from material mapping/material properties
std::vector< float > * m_X0
 gathered X0 from material mapping/material properties
std::vector< float > * m_L0
 gathered L0 from material mapping/material properties
std::vector< float > * m_A
 gathered A from material mapping/material properties
std::vector< float > * m_Z
 gathered Z from material mapping/material properties
std::vector< float > * m_Rho
 gathered rho from material mapping/material properties
std::vector< int > * m_elements
 gathered number of elements from material mapping/material properties
std::vector< int > * m_binCounter
 how often was this bin hit / used
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ LayerMaterialAnalyser()

Trk::LayerMaterialAnalyser::LayerMaterialAnalyser ( const std::string & t,
const std::string & n,
const IInterface * p )

Constructor.

Definition at line 33 of file LayerMaterialAnalyser.cxx.

34: AthAlgTool(t,n,p),
35 m_layerMaterialName("UnspecifiedLayerMaterialMap"),
36 m_validationTree(nullptr),
37 m_validationTreeName("LayerMaterialAnalyser"),
38 m_validationTreeDescription("LayerMaterialAnalyser information"),
39 m_validationTreeFolder("/val/LayerMaterialAnalyser"),
40 m_layerIndex(0),
41 m_layerType(0),
42 m_layerTranslation(nullptr),
43 m_layerRotation(nullptr),
46 m_layerBins(0),
47 m_layerBins0(0),
48 m_layerBins1(0),
49 m_bin0(nullptr),
50 m_bin1(nullptr),
51 m_thickness(nullptr),
52 m_X0(nullptr),
53 m_L0(nullptr),
54 m_A(nullptr),
55 m_Z(nullptr),
56 m_Rho(nullptr),
57 m_elements(nullptr),
58 m_binCounter(nullptr)
59{
60 declareInterface<Trk::ILayerMaterialAnalyser>(this);
61 // give the map a name
62 declareProperty("LayerMaterialName", m_layerMaterialName);
63 declareProperty("ValidationTreeName", m_validationTreeName);
64 declareProperty("ValidationTreeDescription", m_validationTreeDescription);
65 declareProperty("ValidationTreeFolder", m_validationTreeFolder);
66}
AthAlgTool()
Default constructor:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::vector< int > * m_bin0
bin 0
std::vector< float > * m_Rho
gathered rho from material mapping/material properties
float m_layerDimension1
dimension 1 : cylinder z, disk r_max
std::vector< int > * m_binCounter
how often was this bin hit / used
std::vector< float > * m_thickness
gathered thickness from material mapping/material properties
std::vector< float > * m_layerTranslation
center of the transform
std::vector< int > * m_bin1
bin 1
int m_layerIndex
the layer index given by the TrackingGeometry
std::vector< float > * m_A
gathered A from material mapping/material properties
std::string m_validationTreeDescription
validation tree description - second argument in TTree
std::vector< float > * m_X0
gathered X0 from material mapping/material properties
std::vector< float > * m_Z
gathered Z from material mapping/material properties
std::string m_validationTreeName
validation tree name - to be accessed by this from root
float m_layerDimension0
dimension 0 : cylinder r, disk r_min
int m_layerBins1
total number of bins - loc 0
TTree * m_validationTree
The validation tree.
std::string m_validationTreeFolder
stream/folder to for the TTree to be written out
int m_layerBins
total number of bins - loc0 * loc 1
int m_layerType
the type of the layer 1 - cylinder, 2 - disk
std::vector< float > * m_layerRotation
orientation of the layer
std::vector< int > * m_elements
gathered number of elements from material mapping/material properties
std::vector< float > * m_L0
gathered L0 from material mapping/material properties
int m_layerBins0
total number of bins - loc 0

◆ ~LayerMaterialAnalyser()

Trk::LayerMaterialAnalyser::~LayerMaterialAnalyser ( )
default

Destructor.

Member Function Documentation

◆ analyse()

StatusCode Trk::LayerMaterialAnalyser::analyse ( const Layer & lay,
const MaterialPropertiesMatrix & lmr,
const std::vector< std::vector< unsigned int > > * bCounter = 0 ) const
private

Definition at line 201 of file LayerMaterialAnalyser.cxx.

204{
205
206 // general layer information
207 m_layerIndex = layer.layerIndex().value();
208 const Trk::Surface& lSurface = layer.surfaceRepresentation();
209 m_layerTranslation->at(0) = lSurface.center().x();
210 m_layerTranslation->at(1) = lSurface.center().y();
211 m_layerTranslation->at(2) = lSurface.center().z();
212
213 AmgMatrix(3,3) rMatrix = lSurface.transform().rotation();
214 m_layerRotation->at(0) = rMatrix(0,0);
215 m_layerRotation->at(1) = rMatrix(1,0);
216 m_layerRotation->at(2) = rMatrix(2,0);
217 m_layerRotation->at(3) = rMatrix(0,1);
218 m_layerRotation->at(4) = rMatrix(1,1);
219 m_layerRotation->at(5) = rMatrix(2,1);
220 m_layerRotation->at(6) = rMatrix(0,2);
221 m_layerRotation->at(7) = rMatrix(1,2);
222 m_layerRotation->at(8) = rMatrix(2,2);
223
224 // cylinder bounds
225 if ( lSurface.type() == Trk::SurfaceType::Cylinder ){
226 m_layerType = 1;
227 // cylinder bounds
228 const Trk::CylinderBounds* cb = dynamic_cast<const Trk::CylinderBounds*>(&(lSurface.bounds()));
229 if (cb){
230 m_layerDimension0 = cb->r();
232 }
233 } else if ( lSurface.type() == Trk::SurfaceType::Disc ) {
234 m_layerType = 2;
235 // disc bounds
236 const Trk::DiscBounds* db = dynamic_cast<const Trk::DiscBounds*>(&(lSurface.bounds()));
237 if (db){
238 m_layerDimension0 = db->rMin();
239 m_layerDimension1 = db->rMax();
240 }
241 }
242
243 // now get the material matrix and record all single bins;
244 m_layerBins0 = 0;
245 m_layerBins1 = 0;
246 m_layerBins = 0;
247 int bin1 = 0;
248 for (const auto & outerIter : mpMatrix){
249 int bin0 = 0;
250 for (const auto & innerIter : outerIter ){
251 m_bin0->at(m_layerBins) = bin0;
252 m_bin1->at(m_layerBins) = bin1;
253 // get the material
254 const Trk::MaterialProperties* mProperties = innerIter;
255 if (mProperties){
256 m_thickness->at(m_layerBins) = mProperties->thickness();
257 m_X0->at(m_layerBins) = mProperties->x0();
258 m_L0->at(m_layerBins) = mProperties->l0();
259 m_A->at(m_layerBins) = mProperties->averageA();
260 m_Z->at(m_layerBins) = mProperties->averageZ();
261 m_Rho->at(m_layerBins) = mProperties->averageRho();
262 m_elements->at(m_layerBins) = mProperties->material().composition ? mProperties->material().composition->size() : 0;
263 } else {
264 m_thickness->at(m_layerBins) = 0.;
265 m_X0->at(m_layerBins) = 0.;
266 m_L0->at(m_layerBins) = 0.;
267 m_A->at(m_layerBins) = 0.;
268 m_Z->at(m_layerBins) = 0.;
269 m_Rho->at(m_layerBins) = 0.;
270 m_elements->at(m_layerBins) = 0.;
271 }
272 // set the bin Counter
273 m_binCounter->at(m_layerBins) = bCounter ? (*bCounter)[bin1][bin0] : 1;
274 //
275 ++bin0;
276 if (!bin1) ++m_layerBins0;
277 ++m_layerBins;
278 }
279 ++bin1;
280 ++m_layerBins1;
281 }
282 m_validationTree->Fill();
283
284 // return 0 - since this is only an analyser
285 return StatusCode::SUCCESS;
286}
#define AmgMatrix(rows, cols)
if(febId1==febId2)
virtual double r() const override final
This method returns the radius.
double halflengthZ() const
This method returns the halflengthZ.
float averageRho() const
Return the average density of the material.
float averageA() const
Return the average A of the material [gram/mole].
float averageZ() const
Returns the average Z of the material.
const Material & material() const
Return the stored Material.
float l0() const
Return the nuclear interaction length.
float x0() const
Return the radiation length.
float thickness() const
Return the thickness in mm.
MaterialComposition * composition
Definition Material.h:127
virtual constexpr SurfaceType type() const =0
Returns the Surface type to avoid dynamic casts.
virtual const SurfaceBounds & bounds() const =0
Surface Bounds method.
const Amg::Vector3D & center() const
Returns the center position of the Surface.
@ layer
Definition HitInfo.h:79
SurfaceType
This enumerator simplifies the persistency & calculations,.

◆ analyseLayerMaterial() [1/4]

StatusCode Trk::LayerMaterialAnalyser::analyseLayerMaterial ( const Layer & lay) const
virtual

process the layer - after material creation and loading

Implements Trk::ILayerMaterialAnalyser.

Definition at line 152 of file LayerMaterialAnalyser.cxx.

153{
154
155 // get the LayerMaterial
156 const Trk::LayerMaterialProperties* lMaterial = layer.layerMaterialProperties();
157 if (!lMaterial) return StatusCode::SUCCESS;
158
159 return analyseLayerMaterial(layer, *lMaterial);
160}
StatusCode analyseLayerMaterial(const Layer &lay) const
process the layer - after material creation and loading

◆ analyseLayerMaterial() [2/4]

StatusCode Trk::LayerMaterialAnalyser::analyseLayerMaterial ( const Layer & lay,
const LayerMaterialProperties & lmp ) const
virtual

process the layer material proerties - after material creation and before loading

Implements Trk::ILayerMaterialAnalyser.

Definition at line 163 of file LayerMaterialAnalyser.cxx.

164{
165
166 // binned material can directly call the filling method
167 const Trk::BinnedLayerMaterial* blMaterial = dynamic_cast<const Trk::BinnedLayerMaterial*>(&lMaterial);
168 if (blMaterial) {
169 ATH_MSG_DEBUG( "Recieved BinnedLayerMaterial - analyzing it." );
170 return analyseLayerMaterial(layer, blMaterial->fullMaterial());
171 }
172
173 // we need to create a MaterialProperties matrix for this
174 const Trk::BinUtility* bUtility = lMaterial.binUtility();
175 size_t mBins0 = bUtility ? bUtility->max(0)+1 : 1;
176 size_t mBins1 = bUtility ? bUtility->max(1)+1 : 1;
177
178 Trk::MaterialPropertiesMatrix mpMatrix(mBins1, std::vector< const Trk::MaterialProperties*>(mBins0, nullptr));
179 for (size_t ibin1 = 0; ibin1 < mBins1; ++ ibin1){
180 for (size_t ibin0 = 0; ibin0 < mBins0; ++ibin0)
181 mpMatrix[ibin1][ibin0] = lMaterial.material(ibin0, ibin1);
182 }
183 // now send it to the analyser
184 return analyse(layer, mpMatrix);
185}
#define ATH_MSG_DEBUG(x)
size_t max(size_t ba=0) const
First bin maximal value.
Definition BinUtility.h:212
const MaterialPropertiesMatrix & fullMaterial() const
Return method for full material description of the Layer - for all bins.
StatusCode analyse(const Layer &lay, const MaterialPropertiesMatrix &lmr, const std::vector< std::vector< unsigned int > > *bCounter=0) const
std::vector< std::vector< const MaterialProperties * > > MaterialPropertiesMatrix

◆ analyseLayerMaterial() [3/4]

StatusCode Trk::LayerMaterialAnalyser::analyseLayerMaterial ( const Layer & lay,
const LayerMaterialRecord & lmr ) const
virtual

process the layer material record - before material creation

Implements Trk::ILayerMaterialAnalyser.

Definition at line 195 of file LayerMaterialAnalyser.cxx.

196{
197 ATH_MSG_DEBUG( "Recieved LayerMaterialRecord - analyzing it." );
198 return analyse(layer, lmRecord.associatedLayerMaterial(), &lmRecord.binCounts());
199}

◆ analyseLayerMaterial() [4/4]

StatusCode Trk::LayerMaterialAnalyser::analyseLayerMaterial ( const Layer & lay,
const MaterialPropertiesMatrix & lmr ) const
virtual

process the layer material record - before material creation

Implements Trk::ILayerMaterialAnalyser.

Definition at line 188 of file LayerMaterialAnalyser.cxx.

189{
190 ATH_MSG_DEBUG( "Recieved MaterialPropertyMatrix - analyzing it." );
191 return analyse(layer, mpMatrix);
192}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ DeclareInterfaceID()

Trk::ILayerMaterialAnalyser::DeclareInterfaceID ( ILayerMaterialAnalyser ,
1 ,
0  )
inherited

Creates the InterfaceID and interfaceID() method.

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ finalize()

StatusCode Trk::LayerMaterialAnalyser::finalize ( )

AlgTool finalize method.

Definition at line 133 of file LayerMaterialAnalyser.cxx.

134{
135 delete m_layerTranslation ;
136 delete m_layerRotation ;
137 delete m_bin0 ;
138 delete m_bin1 ;
139 delete m_thickness ;
140 delete m_X0 ;
141 delete m_L0 ;
142 delete m_A ;
143 delete m_Z ;
144 delete m_Rho ;
145 delete m_elements ;
146 delete m_binCounter ;
147 return StatusCode::SUCCESS;
148}

◆ initialize()

StatusCode Trk::LayerMaterialAnalyser::initialize ( )

AlgTool initialize method.

Definition at line 74 of file LayerMaterialAnalyser.cxx.

75{
76
77 m_layerTranslation = new std::vector<float>(3, 0.);
78 m_layerRotation = new std::vector<float>(9, 0.);
79 m_bin0 = new std::vector<int>(LAYERMAXBINS, 0);
80 m_bin1 = new std::vector<int>(LAYERMAXBINS, 0);
81 m_thickness = new std::vector<float>(LAYERMAXBINS, 0.);
82 m_X0 = new std::vector<float>(LAYERMAXBINS, 0.);
83 m_L0 = new std::vector<float>(LAYERMAXBINS, 0.);
84 m_A = new std::vector<float>(LAYERMAXBINS, 0.);
85 m_Z = new std::vector<float>(LAYERMAXBINS, 0.);
86 m_Rho = new std::vector<float>(LAYERMAXBINS, 0.);
87 m_elements = new std::vector<int>(LAYERMAXBINS, 0);
88 m_binCounter = new std::vector<int>(LAYERMAXBINS, 0);
89
90 // now register the Tree
91
92 // ------------- validation section ------------------------------------------
94
95 // position coordinates of the update
96 m_validationTree->Branch("LayerIndex", &m_layerIndex );
97 m_validationTree->Branch("LayerType", &m_layerType );
98 m_validationTree->Branch("LayerTranslation", &m_layerTranslation );
99 m_validationTree->Branch("LayerRotation", &m_layerRotation );
100 m_validationTree->Branch("LayerDimension0", &m_layerDimension0 );
101 m_validationTree->Branch("LayerDimension1", &m_layerDimension1 );
102 m_validationTree->Branch("LayerBins", &m_layerBins );
103 m_validationTree->Branch("LayerBins0", &m_layerBins0 );
104 m_validationTree->Branch("LayerBins1", &m_layerBins1 );
105 m_validationTree->Branch("LayerBin0", &m_bin0 );
106 m_validationTree->Branch("LayerBin1", &m_bin1 );
107 m_validationTree->Branch("LayerBinCounter", &m_binCounter );
108 m_validationTree->Branch("LayerThickness", &m_thickness );
109 m_validationTree->Branch("LayerX0", &m_X0 );
110 m_validationTree->Branch("LayerL0", &m_L0 );
111 m_validationTree->Branch("LayerA", &m_A );
112 m_validationTree->Branch("LayerZ", &m_Z );
113 m_validationTree->Branch("LayerRo", &m_Rho );
114 m_validationTree->Branch("LayerElements", &m_elements );
115
116 // now register the Tree
117 SmartIF<ITHistSvc> tHistSvc{service("THistSvc")};
118 if (!tHistSvc) {
119 ATH_MSG_ERROR("initialize() Could not find Hist Service -> Switching ValidationMode Off !" );
120 delete m_validationTree; m_validationTree = nullptr;
121 return StatusCode::SUCCESS;
122 }
123 if ((tHistSvc->regTree(m_validationTreeFolder.c_str(), m_validationTree)).isFailure()) {
124 ATH_MSG_ERROR("initialize() Could not register the validation Tree -> Switching ValidationMode Off !" );
125 delete m_validationTree; m_validationTree = nullptr;
126 return StatusCode::SUCCESS;
127 }
128
129 return StatusCode::SUCCESS;
130}
#define ATH_MSG_ERROR(x)
#define LAYERMAXBINS

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_A

std::vector<float>* Trk::LayerMaterialAnalyser::m_A
private

gathered A from material mapping/material properties

Definition at line 93 of file LayerMaterialAnalyser.h.

◆ m_bin0

std::vector<int>* Trk::LayerMaterialAnalyser::m_bin0
private

bin 0

Definition at line 88 of file LayerMaterialAnalyser.h.

◆ m_bin1

std::vector<int>* Trk::LayerMaterialAnalyser::m_bin1
private

bin 1

Definition at line 89 of file LayerMaterialAnalyser.h.

◆ m_binCounter

std::vector<int>* Trk::LayerMaterialAnalyser::m_binCounter
private

how often was this bin hit / used

Definition at line 97 of file LayerMaterialAnalyser.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_elements

std::vector<int>* Trk::LayerMaterialAnalyser::m_elements
private

gathered number of elements from material mapping/material properties

Definition at line 96 of file LayerMaterialAnalyser.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_L0

std::vector<float>* Trk::LayerMaterialAnalyser::m_L0
private

gathered L0 from material mapping/material properties

Definition at line 92 of file LayerMaterialAnalyser.h.

◆ m_layerBins

int Trk::LayerMaterialAnalyser::m_layerBins
mutableprivate

total number of bins - loc0 * loc 1

Definition at line 85 of file LayerMaterialAnalyser.h.

◆ m_layerBins0

int Trk::LayerMaterialAnalyser::m_layerBins0
mutableprivate

total number of bins - loc 0

Definition at line 86 of file LayerMaterialAnalyser.h.

◆ m_layerBins1

int Trk::LayerMaterialAnalyser::m_layerBins1
mutableprivate

total number of bins - loc 0

Definition at line 87 of file LayerMaterialAnalyser.h.

◆ m_layerDimension0

float Trk::LayerMaterialAnalyser::m_layerDimension0
mutableprivate

dimension 0 : cylinder r, disk r_min

Definition at line 83 of file LayerMaterialAnalyser.h.

◆ m_layerDimension1

float Trk::LayerMaterialAnalyser::m_layerDimension1
mutableprivate

dimension 1 : cylinder z, disk r_max

Definition at line 84 of file LayerMaterialAnalyser.h.

◆ m_layerIndex

int Trk::LayerMaterialAnalyser::m_layerIndex
mutableprivate

the layer index given by the TrackingGeometry

Definition at line 79 of file LayerMaterialAnalyser.h.

◆ m_layerMaterialName

std::string Trk::LayerMaterialAnalyser::m_layerMaterialName
private

Definition at line 72 of file LayerMaterialAnalyser.h.

◆ m_layerRotation

std::vector<float>* Trk::LayerMaterialAnalyser::m_layerRotation
private

orientation of the layer

Definition at line 82 of file LayerMaterialAnalyser.h.

◆ m_layerTranslation

std::vector<float>* Trk::LayerMaterialAnalyser::m_layerTranslation
private

center of the transform

Definition at line 81 of file LayerMaterialAnalyser.h.

◆ m_layerType

int Trk::LayerMaterialAnalyser::m_layerType
mutableprivate

the type of the layer 1 - cylinder, 2 - disk

Definition at line 80 of file LayerMaterialAnalyser.h.

◆ m_Rho

std::vector<float>* Trk::LayerMaterialAnalyser::m_Rho
private

gathered rho from material mapping/material properties

Definition at line 95 of file LayerMaterialAnalyser.h.

◆ m_thickness

std::vector<float>* Trk::LayerMaterialAnalyser::m_thickness
private

gathered thickness from material mapping/material properties

Definition at line 90 of file LayerMaterialAnalyser.h.

◆ m_validationTree

TTree* Trk::LayerMaterialAnalyser::m_validationTree
private

The validation tree.

Definition at line 74 of file LayerMaterialAnalyser.h.

◆ m_validationTreeDescription

std::string Trk::LayerMaterialAnalyser::m_validationTreeDescription
private

validation tree description - second argument in TTree

Definition at line 76 of file LayerMaterialAnalyser.h.

◆ m_validationTreeFolder

std::string Trk::LayerMaterialAnalyser::m_validationTreeFolder
private

stream/folder to for the TTree to be written out

Definition at line 77 of file LayerMaterialAnalyser.h.

◆ m_validationTreeName

std::string Trk::LayerMaterialAnalyser::m_validationTreeName
private

validation tree name - to be accessed by this from root

Definition at line 75 of file LayerMaterialAnalyser.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_X0

std::vector<float>* Trk::LayerMaterialAnalyser::m_X0
private

gathered X0 from material mapping/material properties

Definition at line 91 of file LayerMaterialAnalyser.h.

◆ m_Z

std::vector<float>* Trk::LayerMaterialAnalyser::m_Z
private

gathered Z from material mapping/material properties

Definition at line 94 of file LayerMaterialAnalyser.h.


The documentation for this class was generated from the following files: