|
ATLAS Offline Software
|
#include <LayerMaterialAnalyser.h>
|
| LayerMaterialAnalyser (const std::string &, const std::string &, const IInterface *) |
| Constructor. More...
|
|
| ~LayerMaterialAnalyser () |
| Destructor. More...
|
|
StatusCode | initialize () |
| AlgTool initialize method. More...
|
|
StatusCode | finalize () |
| AlgTool finalize method. More...
|
|
StatusCode | analyseLayerMaterial (const Layer &lay) const |
| process the layer - after material creation and loading More...
|
|
StatusCode | analyseLayerMaterial (const Layer &lay, const LayerMaterialProperties &lmp) const |
| process the layer material proerties - after material creation and before loading More...
|
|
StatusCode | analyseLayerMaterial (const Layer &lay, const MaterialPropertiesMatrix &lmr) const |
| process the layer material record - before material creation More...
|
|
StatusCode | analyseLayerMaterial (const Layer &lay, const LayerMaterialRecord &lmr) const |
| process the layer material record - before material creation More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
| DeclareInterfaceID (ILayerMaterialAnalyser, 1, 0) |
| Creates the InterfaceID and interfaceID() method. More...
|
|
◆ StoreGateSvc_t
◆ LayerMaterialAnalyser()
Trk::LayerMaterialAnalyser::LayerMaterialAnalyser |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~LayerMaterialAnalyser()
Trk::LayerMaterialAnalyser::~LayerMaterialAnalyser |
( |
| ) |
|
|
default |
◆ analyse()
Definition at line 201 of file LayerMaterialAnalyser.cxx.
248 for (
const auto & outerIter : mpMatrix){
250 for (
const auto & innerIter : outerIter ){
285 return StatusCode::SUCCESS;
◆ analyseLayerMaterial() [1/4]
StatusCode Trk::LayerMaterialAnalyser::analyseLayerMaterial |
( |
const Layer & |
lay | ) |
const |
|
virtual |
◆ analyseLayerMaterial() [2/4]
process the layer material proerties - after material creation and before loading
Implements Trk::ILayerMaterialAnalyser.
Definition at line 163 of file LayerMaterialAnalyser.cxx.
169 ATH_MSG_DEBUG(
"Recieved BinnedLayerMaterial - analyzing it." );
175 size_t mBins0 = bUtility ? bUtility->
max(0)+1 : 1;
176 size_t mBins1 = bUtility ? bUtility->
max(1)+1 : 1;
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);
◆ analyseLayerMaterial() [3/4]
◆ analyseLayerMaterial() [4/4]
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ DeclareInterfaceID()
Creates the InterfaceID and interfaceID() method.
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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 |
( |
| ) |
|
◆ initialize()
StatusCode Trk::LayerMaterialAnalyser::initialize |
( |
| ) |
|
AlgTool initialize method.
Definition at line 74 of file LayerMaterialAnalyser.cxx.
117 SmartIF<ITHistSvc> tHistSvc{service(
"THistSvc")};
119 ATH_MSG_ERROR(
"initialize() Could not find Hist Service -> Switching ValidationMode Off !" );
121 return StatusCode::SUCCESS;
124 ATH_MSG_ERROR(
"initialize() Could not register the validation Tree -> Switching ValidationMode Off !" );
126 return StatusCode::SUCCESS;
129 return StatusCode::SUCCESS;
◆ inputHandles()
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() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_A
std::vector<float>* Trk::LayerMaterialAnalyser::m_A |
|
private |
◆ m_bin0
std::vector<int>* Trk::LayerMaterialAnalyser::m_bin0 |
|
private |
◆ m_bin1
std::vector<int>* Trk::LayerMaterialAnalyser::m_bin1 |
|
private |
◆ m_binCounter
std::vector<int>* Trk::LayerMaterialAnalyser::m_binCounter |
|
private |
◆ m_detStore
◆ m_elements
std::vector<int>* Trk::LayerMaterialAnalyser::m_elements |
|
private |
◆ m_evtStore
◆ m_L0
std::vector<float>* Trk::LayerMaterialAnalyser::m_L0 |
|
private |
◆ m_layerBins
int Trk::LayerMaterialAnalyser::m_layerBins |
|
mutableprivate |
◆ m_layerBins0
int Trk::LayerMaterialAnalyser::m_layerBins0 |
|
mutableprivate |
◆ m_layerBins1
int Trk::LayerMaterialAnalyser::m_layerBins1 |
|
mutableprivate |
◆ m_layerDimension0
float Trk::LayerMaterialAnalyser::m_layerDimension0 |
|
mutableprivate |
◆ m_layerDimension1
float Trk::LayerMaterialAnalyser::m_layerDimension1 |
|
mutableprivate |
◆ m_layerIndex
int Trk::LayerMaterialAnalyser::m_layerIndex |
|
mutableprivate |
◆ m_layerMaterialName
std::string Trk::LayerMaterialAnalyser::m_layerMaterialName |
|
private |
◆ m_layerRotation
std::vector<float>* Trk::LayerMaterialAnalyser::m_layerRotation |
|
private |
◆ m_layerTranslation
std::vector<float>* Trk::LayerMaterialAnalyser::m_layerTranslation |
|
private |
◆ m_layerType
int Trk::LayerMaterialAnalyser::m_layerType |
|
mutableprivate |
◆ m_Rho
std::vector<float>* Trk::LayerMaterialAnalyser::m_Rho |
|
private |
◆ m_thickness
std::vector<float>* Trk::LayerMaterialAnalyser::m_thickness |
|
private |
◆ m_validationTree
TTree* Trk::LayerMaterialAnalyser::m_validationTree |
|
private |
◆ m_validationTreeDescription
std::string Trk::LayerMaterialAnalyser::m_validationTreeDescription |
|
private |
◆ m_validationTreeFolder
std::string Trk::LayerMaterialAnalyser::m_validationTreeFolder |
|
private |
◆ m_validationTreeName
std::string Trk::LayerMaterialAnalyser::m_validationTreeName |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_X0
std::vector<float>* Trk::LayerMaterialAnalyser::m_X0 |
|
private |
◆ m_Z
std::vector<float>* Trk::LayerMaterialAnalyser::m_Z |
|
private |
The documentation for this class was generated from the following files:
std::vector< float > * m_Rho
gathered rho from material mapping/material properties
AmgMatrix(3, 3) NeutralParticleParameterCalculator
int m_layerBins1
total number of bins - loc 0
float averageA() const
Return the average A of the material [gram/mole].
std::string m_validationTreeName
validation tree name - to be accessed by this from root
int m_layerBins
total number of bins - loc0 * loc 1
std::string m_layerMaterialName
std::vector< float > * m_L0
gathered L0 from material mapping/material properties
size_t max(size_t ba=0) const
First bin maximal value.
std::string m_validationTreeDescription
validation tree description - second argument in TTree
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
float m_layerDimension0
dimension 0 : cylinder r, disk r_min
StatusCode analyseLayerMaterial(const Layer &lay) const
process the layer - after material creation and loading
int m_layerBins0
total number of bins - loc 0
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
float averageRho() const
Return the average density of the material.
float x0() const
Return the radiation length.
std::vector< int > * m_bin0
bin 0
const Amg::Vector3D & center() const
Returns the center position of the Surface.
const Material & material() const
Return the stored Material.
virtual void setOwner(IDataHandleHolder *o)=0
float thickness() const
Return the thickness in mm.
std::vector< float > * m_X0
gathered X0 from material mapping/material properties
int m_layerIndex
the layer index given by the TrackingGeometry
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
std::string m_validationTreeFolder
stream/folder to for the TTree to be written out
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::vector< float > * m_thickness
gathered thickness from material mapping/material properties
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const MaterialPropertiesMatrix & fullMaterial() const
Return method for full material description of the Layer - for all bins.
Ensure that the ATLAS eigen extensions are properly loaded.
virtual const SurfaceBounds & bounds() const =0
Surface Bounds method.
std::vector< float > * m_Z
gathered Z from material mapping/material properties
std::vector< float > * m_A
gathered A from material mapping/material properties
float m_layerDimension1
dimension 1 : cylinder z, disk r_max
std::vector< float > * m_layerTranslation
center of the transform
std::vector< std::vector< const MaterialProperties * > > MaterialPropertiesMatrix
float averageZ() const
Returns the average Z of the material.
std::vector< int > * m_bin1
bin 1
MaterialComposition * composition
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
StatusCode analyse(const Layer &lay, const MaterialPropertiesMatrix &lmr, const std::vector< std::vector< unsigned int > > *bCounter=0) const
std::vector< float > * m_layerRotation
orientation of the layer
TTree * m_validationTree
The validation tree.
float l0() const
Return the nuclear interaction length.
std::vector< int > * m_binCounter
how often was this bin hit / used
int m_layerType
the type of the layer 1 - cylinder, 2 - disk
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
constexpr virtual SurfaceType type() const =0
Returns the Surface type to avoid dynamic casts.
double halflengthZ() const
This method returns the halflengthZ.
virtual double r() const override final
This method returns the radius.
std::vector< int > * m_elements
gathered number of elements from material mapping/material properties