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.
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

TTree * m_validationTree = nullptr
 The validation tree.
Gaudi::Property< std::string > m_validationTreeName
Gaudi::Property< std::string > m_validationTreeDescription
Gaudi::Property< std::string > m_validationTreeFolder
int m_layerIndex = 0
 the layer index given by the TrackingGeometry
int m_layerType = 0
 the type of the layer 1 - cylinder, 2 - disk
std::vector< float > * m_layerTranslation = nullptr
 center of the transform
std::vector< float > * m_layerRotation = nullptr
 orientation of the layer
float m_layerDimension0 = 0.
 dimension 0 : cylinder r, disk r_min
float m_layerDimension1 = 0.
 dimension 1 : cylinder z, disk r_max
int m_layerBins = 0
 total number of bins - loc0 * loc 1
int m_layerBins0 = 0
 total number of bins - loc 0
int m_layerBins1 = 0
 total number of bins - loc 0
std::vector< int > * m_bin0 = nullptr
 bin 0
std::vector< int > * m_bin1 = nullptr
 bin 1
std::vector< float > * m_thickness = nullptr
 gathered thickness from material mapping/material properties
std::vector< float > * m_X0 = nullptr
 gathered X0 from material mapping/material properties
std::vector< float > * m_L0 = nullptr
 gathered L0 from material mapping/material properties
std::vector< float > * m_A = nullptr
 gathered A from material mapping/material properties
std::vector< float > * m_Z = nullptr
 gathered Z from material mapping/material properties
std::vector< float > * m_Rho = nullptr
 gathered rho from material mapping/material properties
std::vector< int > * m_elements = nullptr
 gathered number of elements from material mapping/material properties
std::vector< int > * m_binCounter = nullptr
 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.

33 : AthAlgTool(t,n,p)
34{
35 declareInterface<Trk::ILayerMaterialAnalyser>(this);
36}
AthAlgTool()
Default constructor:

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 168 of file LayerMaterialAnalyser.cxx.

171{
172
173 // general layer information
174 m_layerIndex = layer.layerIndex().value();
175 const Trk::Surface& lSurface = layer.surfaceRepresentation();
176 m_layerTranslation->at(0) = lSurface.center().x();
177 m_layerTranslation->at(1) = lSurface.center().y();
178 m_layerTranslation->at(2) = lSurface.center().z();
179
180 AmgMatrix(3,3) rMatrix = lSurface.transform().rotation();
181 m_layerRotation->at(0) = rMatrix(0,0);
182 m_layerRotation->at(1) = rMatrix(1,0);
183 m_layerRotation->at(2) = rMatrix(2,0);
184 m_layerRotation->at(3) = rMatrix(0,1);
185 m_layerRotation->at(4) = rMatrix(1,1);
186 m_layerRotation->at(5) = rMatrix(2,1);
187 m_layerRotation->at(6) = rMatrix(0,2);
188 m_layerRotation->at(7) = rMatrix(1,2);
189 m_layerRotation->at(8) = rMatrix(2,2);
190
191 // cylinder bounds
192 if ( lSurface.type() == Trk::SurfaceType::Cylinder ){
193 m_layerType = 1;
194 // cylinder bounds
195 const Trk::CylinderBounds* cb = dynamic_cast<const Trk::CylinderBounds*>(&(lSurface.bounds()));
196 if (cb){
197 m_layerDimension0 = cb->r();
199 }
200 } else if ( lSurface.type() == Trk::SurfaceType::Disc ) {
201 m_layerType = 2;
202 // disc bounds
203 const Trk::DiscBounds* db = dynamic_cast<const Trk::DiscBounds*>(&(lSurface.bounds()));
204 if (db){
205 m_layerDimension0 = db->rMin();
206 m_layerDimension1 = db->rMax();
207 }
208 }
209
210 // now get the material matrix and record all single bins;
211 m_layerBins0 = 0;
212 m_layerBins1 = 0;
213 m_layerBins = 0;
214 int bin1 = 0;
215 for (const auto & outerIter : mpMatrix){
216 int bin0 = 0;
217 for (const auto & innerIter : outerIter ){
218 m_bin0->at(m_layerBins) = bin0;
219 m_bin1->at(m_layerBins) = bin1;
220 // get the material
221 const Trk::MaterialProperties* mProperties = innerIter;
222 if (mProperties){
223 m_thickness->at(m_layerBins) = mProperties->thickness();
224 m_X0->at(m_layerBins) = mProperties->x0();
225 m_L0->at(m_layerBins) = mProperties->l0();
226 m_A->at(m_layerBins) = mProperties->averageA();
227 m_Z->at(m_layerBins) = mProperties->averageZ();
228 m_Rho->at(m_layerBins) = mProperties->averageRho();
229 m_elements->at(m_layerBins) = mProperties->material().composition ? mProperties->material().composition->size() : 0;
230 } else {
231 m_thickness->at(m_layerBins) = 0.;
232 m_X0->at(m_layerBins) = 0.;
233 m_L0->at(m_layerBins) = 0.;
234 m_A->at(m_layerBins) = 0.;
235 m_Z->at(m_layerBins) = 0.;
236 m_Rho->at(m_layerBins) = 0.;
237 m_elements->at(m_layerBins) = 0.;
238 }
239 // set the bin Counter
240 m_binCounter->at(m_layerBins) = bCounter ? (*bCounter)[bin1][bin0] : 1;
241 //
242 ++bin0;
243 if (!bin1) ++m_layerBins0;
244 ++m_layerBins;
245 }
246 ++bin1;
247 ++m_layerBins1;
248 }
249 m_validationTree->Fill();
250
251 // return 0 - since this is only an analyser
252 return StatusCode::SUCCESS;
253}
#define AmgMatrix(rows, cols)
if(pathvar)
virtual double r() const override final
This method returns the radius.
double halflengthZ() const
This method returns the halflengthZ.
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::vector< float > * m_X0
gathered X0 from material mapping/material properties
std::vector< float > * m_Z
gathered Z from material mapping/material properties
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.
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
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 119 of file LayerMaterialAnalyser.cxx.

120{
121
122 // get the LayerMaterial
123 const Trk::LayerMaterialProperties* lMaterial = layer.layerMaterialProperties();
124 if (!lMaterial) return StatusCode::SUCCESS;
125
126 return analyseLayerMaterial(layer, *lMaterial);
127}
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 130 of file LayerMaterialAnalyser.cxx.

131{
132
133 // binned material can directly call the filling method
134 const Trk::BinnedLayerMaterial* blMaterial = dynamic_cast<const Trk::BinnedLayerMaterial*>(&lMaterial);
135 if (blMaterial) {
136 ATH_MSG_DEBUG( "Recieved BinnedLayerMaterial - analyzing it." );
137 return analyseLayerMaterial(layer, blMaterial->fullMaterial());
138 }
139
140 // we need to create a MaterialProperties matrix for this
141 const Trk::BinUtility* bUtility = lMaterial.binUtility();
142 size_t mBins0 = bUtility ? bUtility->max(0)+1 : 1;
143 size_t mBins1 = bUtility ? bUtility->max(1)+1 : 1;
144
145 Trk::MaterialPropertiesMatrix mpMatrix(mBins1, std::vector< const Trk::MaterialProperties*>(mBins0, nullptr));
146 for (size_t ibin1 = 0; ibin1 < mBins1; ++ ibin1){
147 for (size_t ibin0 = 0; ibin0 < mBins0; ++ibin0)
148 mpMatrix[ibin1][ibin0] = lMaterial.material(ibin0, ibin1);
149 }
150 // now send it to the analyser
151 return analyse(layer, mpMatrix);
152}
#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 162 of file LayerMaterialAnalyser.cxx.

163{
164 ATH_MSG_DEBUG( "Recieved LayerMaterialRecord - analyzing it." );
165 return analyse(layer, lmRecord.associatedLayerMaterial(), &lmRecord.binCounts());
166}

◆ 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 155 of file LayerMaterialAnalyser.cxx.

156{
157 ATH_MSG_DEBUG( "Recieved MaterialPropertyMatrix - analyzing it." );
158 return analyse(layer, mpMatrix);
159}

◆ 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 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ 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 100 of file LayerMaterialAnalyser.cxx.

101{
102 delete m_layerTranslation ;
103 delete m_layerRotation ;
104 delete m_bin0 ;
105 delete m_bin1 ;
106 delete m_thickness ;
107 delete m_X0 ;
108 delete m_L0 ;
109 delete m_A ;
110 delete m_Z ;
111 delete m_Rho ;
112 delete m_elements ;
113 delete m_binCounter ;
114 return StatusCode::SUCCESS;
115}

◆ initialize()

StatusCode Trk::LayerMaterialAnalyser::initialize ( )

AlgTool initialize method.

Definition at line 40 of file LayerMaterialAnalyser.cxx.

41{
42
43 m_layerTranslation = new std::vector<float>(3, 0.);
44 m_layerRotation = new std::vector<float>(9, 0.);
45 m_bin0 = new std::vector<int>(LAYERMAXBINS, 0);
46 m_bin1 = new std::vector<int>(LAYERMAXBINS, 0);
47 m_thickness = new std::vector<float>(LAYERMAXBINS, 0.);
48 m_X0 = new std::vector<float>(LAYERMAXBINS, 0.);
49 m_L0 = new std::vector<float>(LAYERMAXBINS, 0.);
50 m_A = new std::vector<float>(LAYERMAXBINS, 0.);
51 m_Z = new std::vector<float>(LAYERMAXBINS, 0.);
52 m_Rho = new std::vector<float>(LAYERMAXBINS, 0.);
53 m_elements = new std::vector<int>(LAYERMAXBINS, 0);
54 m_binCounter = new std::vector<int>(LAYERMAXBINS, 0);
55
56 // now register the Tree
57
58 // ------------- validation section ------------------------------------------
59 m_validationTree = new TTree(m_validationTreeName.value().c_str(),
60 m_validationTreeDescription.value().c_str());
61
62 // position coordinates of the update
63 m_validationTree->Branch("LayerIndex", &m_layerIndex );
64 m_validationTree->Branch("LayerType", &m_layerType );
65 m_validationTree->Branch("LayerTranslation", &m_layerTranslation );
66 m_validationTree->Branch("LayerRotation", &m_layerRotation );
67 m_validationTree->Branch("LayerDimension0", &m_layerDimension0 );
68 m_validationTree->Branch("LayerDimension1", &m_layerDimension1 );
69 m_validationTree->Branch("LayerBins", &m_layerBins );
70 m_validationTree->Branch("LayerBins0", &m_layerBins0 );
71 m_validationTree->Branch("LayerBins1", &m_layerBins1 );
72 m_validationTree->Branch("LayerBin0", &m_bin0 );
73 m_validationTree->Branch("LayerBin1", &m_bin1 );
74 m_validationTree->Branch("LayerBinCounter", &m_binCounter );
75 m_validationTree->Branch("LayerThickness", &m_thickness );
76 m_validationTree->Branch("LayerX0", &m_X0 );
77 m_validationTree->Branch("LayerL0", &m_L0 );
78 m_validationTree->Branch("LayerA", &m_A );
79 m_validationTree->Branch("LayerZ", &m_Z );
80 m_validationTree->Branch("LayerRo", &m_Rho );
81 m_validationTree->Branch("LayerElements", &m_elements );
82
83 // now register the Tree
84 SmartIF<ITHistSvc> tHistSvc{service("THistSvc")};
85 if (!tHistSvc) {
86 ATH_MSG_ERROR("initialize() Could not find Hist Service -> Switching ValidationMode Off !" );
87 delete m_validationTree; m_validationTree = nullptr;
88 return StatusCode::SUCCESS;
89 }
90 if ((tHistSvc->regTree(m_validationTreeFolder.value().c_str(), m_validationTree)).isFailure()) {
91 ATH_MSG_ERROR("initialize() Could not register the validation Tree -> Switching ValidationMode Off !" );
92 delete m_validationTree; m_validationTree = nullptr;
93 return StatusCode::SUCCESS;
94 }
95
96 return StatusCode::SUCCESS;
97}
#define ATH_MSG_ERROR(x)
#define LAYERMAXBINS
Gaudi::Property< std::string > m_validationTreeFolder
Gaudi::Property< std::string > m_validationTreeDescription
Gaudi::Property< std::string > m_validationTreeName

◆ 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 >, and AthCheckedComponent<::AthAlgTool >.

◆ 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 = nullptr
private

gathered A from material mapping/material properties

Definition at line 94 of file LayerMaterialAnalyser.h.

◆ m_bin0

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

bin 0

Definition at line 89 of file LayerMaterialAnalyser.h.

◆ m_bin1

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

bin 1

Definition at line 90 of file LayerMaterialAnalyser.h.

◆ m_binCounter

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

how often was this bin hit / used

Definition at line 98 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 = nullptr
private

gathered number of elements from material mapping/material properties

Definition at line 97 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 = nullptr
private

gathered L0 from material mapping/material properties

Definition at line 93 of file LayerMaterialAnalyser.h.

◆ m_layerBins

int Trk::LayerMaterialAnalyser::m_layerBins = 0
mutableprivate

total number of bins - loc0 * loc 1

Definition at line 86 of file LayerMaterialAnalyser.h.

◆ m_layerBins0

int Trk::LayerMaterialAnalyser::m_layerBins0 = 0
mutableprivate

total number of bins - loc 0

Definition at line 87 of file LayerMaterialAnalyser.h.

◆ m_layerBins1

int Trk::LayerMaterialAnalyser::m_layerBins1 = 0
mutableprivate

total number of bins - loc 0

Definition at line 88 of file LayerMaterialAnalyser.h.

◆ m_layerDimension0

float Trk::LayerMaterialAnalyser::m_layerDimension0 = 0.
mutableprivate

dimension 0 : cylinder r, disk r_min

Definition at line 84 of file LayerMaterialAnalyser.h.

◆ m_layerDimension1

float Trk::LayerMaterialAnalyser::m_layerDimension1 = 0.
mutableprivate

dimension 1 : cylinder z, disk r_max

Definition at line 85 of file LayerMaterialAnalyser.h.

◆ m_layerIndex

int Trk::LayerMaterialAnalyser::m_layerIndex = 0
mutableprivate

the layer index given by the TrackingGeometry

Definition at line 80 of file LayerMaterialAnalyser.h.

◆ m_layerRotation

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

orientation of the layer

Definition at line 83 of file LayerMaterialAnalyser.h.

◆ m_layerTranslation

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

center of the transform

Definition at line 82 of file LayerMaterialAnalyser.h.

◆ m_layerType

int Trk::LayerMaterialAnalyser::m_layerType = 0
mutableprivate

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

Definition at line 81 of file LayerMaterialAnalyser.h.

◆ m_Rho

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

gathered rho from material mapping/material properties

Definition at line 96 of file LayerMaterialAnalyser.h.

◆ m_thickness

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

gathered thickness from material mapping/material properties

Definition at line 91 of file LayerMaterialAnalyser.h.

◆ m_validationTree

TTree* Trk::LayerMaterialAnalyser::m_validationTree = nullptr
private

The validation tree.

Definition at line 69 of file LayerMaterialAnalyser.h.

◆ m_validationTreeDescription

Gaudi::Property<std::string> Trk::LayerMaterialAnalyser::m_validationTreeDescription
private
Initial value:
{this, "ValidationTreeDescription", "LayerMaterialAnalyser information",
"validation tree description - second argument in TTree"}

Definition at line 73 of file LayerMaterialAnalyser.h.

74 {this, "ValidationTreeDescription", "LayerMaterialAnalyser information",
75 "validation tree description - second argument in TTree"};

◆ m_validationTreeFolder

Gaudi::Property<std::string> Trk::LayerMaterialAnalyser::m_validationTreeFolder
private
Initial value:
{this, "ValidationTreeFolder", "/val/LayerMaterialAnalyser",
"stream/folder to for the TTree to be written out"}

Definition at line 76 of file LayerMaterialAnalyser.h.

77 {this, "ValidationTreeFolder", "/val/LayerMaterialAnalyser",
78 "stream/folder to for the TTree to be written out"};

◆ m_validationTreeName

Gaudi::Property<std::string> Trk::LayerMaterialAnalyser::m_validationTreeName
private
Initial value:
{this, "ValidationTreeName", "LayerMaterialAnalyser",
"validation tree name - to be accessed by this from root"}

Definition at line 70 of file LayerMaterialAnalyser.h.

71 {this, "ValidationTreeName", "LayerMaterialAnalyser",
72 "validation tree name - to be accessed by this from root"};

◆ 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 = nullptr
private

gathered X0 from material mapping/material properties

Definition at line 92 of file LayerMaterialAnalyser.h.

◆ m_Z

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

gathered Z from material mapping/material properties

Definition at line 95 of file LayerMaterialAnalyser.h.


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