Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <MaterialEffectsEngine.h>
|
| MaterialEffectsEngine (const std::string &, const std::string &, const IInterface *) |
| Constructor. More...
|
|
| ~MaterialEffectsEngine () |
| Destructor. More...
|
|
StatusCode | initialize () |
| AlgTool initialize method. More...
|
|
StatusCode | finalize () |
| AlgTool finalize method. More...
|
|
virtual ExtrapolationCode | handleMaterial (ExCellCharged &ecCharged, PropDirection dir=alongMomentum, MaterialUpdateStage matupstage=fullUpdate) const |
| charged extrapolation More...
|
|
virtual ExtrapolationCode | handleMaterial (ExCellNeutral &ecNeutral, PropDirection dir=alongMomentum, MaterialUpdateStage matupstage=fullUpdate) const |
| neutral extrapolation - only for Fatras, dummy implementation here 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 |
|
Material effects engine interface for charged and neutral (fast track simulation) , the update is alwyas on the:
- eCell.leadParmaeters && eCell.leadLayer
- if eCell.leadPameters == eCell.startParamters clone to new parameters else : update the new parameters
- Author
- Andreas Salzburger -at - cern.ch
Definition at line 38 of file MaterialEffectsEngine.h.
◆ StoreGateSvc_t
◆ MaterialEffectsEngine()
Trk::MaterialEffectsEngine::MaterialEffectsEngine |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~MaterialEffectsEngine()
Trk::MaterialEffectsEngine::~MaterialEffectsEngine |
( |
| ) |
|
|
default |
◆ 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]
◆ 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::MaterialEffectsEngine::finalize |
( |
| ) |
|
◆ handleMaterial() [1/2]
◆ handleMaterial() [2/2]
neutral extrapolation - only for Fatras, dummy implementation here
neutral extrapolation - just collect material
Implements Trk::IMaterialEffectsEngine.
Definition at line 45 of file MaterialEffectsEngine.cxx.
60 double mFactor =
layer->layerMaterialProperties()->factor(rlDir, matupstage);
66 pathCorrection = mFactor*pathCorrection;
72 if (materialProperties && std::abs(pathCorrection)>0.){
81 eCell.
addMaterial(pathCorrection, materialProperties);
◆ initialize()
StatusCode Trk::MaterialEffectsEngine::initialize |
( |
| ) |
|
◆ 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.
◆ interfaceID()
static const InterfaceID& Trk::IMaterialEffectsEngine::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ 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.
◆ updateTrackParameters()
charged extrapolation
dE/dl ionization energy loss per path unit
multiple scattering as function of dInX0
Definition at line 107 of file MaterialEffectsEngine.cxx.
119 double mFactor =
layer->layerMaterialProperties()->factor(rlDir, matupstage);
121 EX_MSG_VERBOSE(eCell.
navigationStep,
"layer",
layer->layerIndex().value(),
"material update with " << (matupstage > 0. ?
"pre " :
"post ") <<
"factor 0. No update done.");
125 pathCorrection = mFactor*pathCorrection;
131 if (materialProperties && std::abs(pathCorrection)>0. &&
143 double thicknessInX0 = materialProperties->thicknessInX0();
144 double thickness = materialProperties->thickness();
148 double E = sqrt(
p*
p+
m*
m);
156 double dE = thickness*pathCorrection*dEdl;
157 sigmaP *= thickness*pathCorrection;
159 double newP = sqrt((
E+dE)*(
E+dE)-
m*
m);
161 double sigmaDeltaE = thickness*pathCorrection*sigmaP;
172 double sigmaDeltaPhiSq = sigmaMS*sigmaMS/(sinTheta*sinTheta);
173 double sigmaDeltaThetaSq = sigmaMS*sigmaMS;
184 eCell.
addMaterial(pathCorrection, materialProperties);
190 parameters.updateParameters(uParameters,*uCovariance);
202 *uCovariance).release();
◆ updateVHKA()
◆ m_detStore
◆ m_eLossCorrection
BooleanProperty Trk::MaterialEffectsEngine::m_eLossCorrection |
|
protected |
Initial value:{this, "EnergyLossCorrection", true,
"apply the energy loss correction"}
Definition at line 71 of file MaterialEffectsEngine.h.
◆ m_eLossMpv
BooleanProperty Trk::MaterialEffectsEngine::m_eLossMpv |
|
protected |
Initial value:{this, "MostProbableEnergyLoss", true,
"apply the energy loss correction as most probable value"}
Definition at line 73 of file MaterialEffectsEngine.h.
◆ m_evtStore
◆ m_interactionFormulae
◆ m_mscCorrection
BooleanProperty Trk::MaterialEffectsEngine::m_mscCorrection |
|
protected |
Initial value:{this, "MultipleScatteringCorrection", true,
"apply the multiple (coulomb) scattering correction"}
Definition at line 75 of file MaterialEffectsEngine.h.
◆ m_sopPostfix
std::string Trk::IMaterialEffectsEngine::m_sopPostfix |
|
protectedinherited |
◆ m_sopPostfix_prop
StringProperty Trk::MaterialEffectsEngine::m_sopPostfix_prop {this, "OutputPostfix", ""} |
|
protected |
◆ m_sopPrefix
std::string Trk::IMaterialEffectsEngine::m_sopPrefix |
|
protectedinherited |
◆ m_sopPrefix_prop
StringProperty Trk::MaterialEffectsEngine::m_sopPrefix_prop {this, "OutputPrefix", ""} |
|
protected |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
static double dEdl_ionization(double p, const Material &mat, ParticleHypothesis particle, double &sigma, double &kazL)
dE/dl ionization energy loss per path unit
static double sigmaMS(double dInX0, double p, double beta)
multiple scattering as function of dInX0
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_sopPrefix
prefix for screen output
StringProperty m_sopPrefix_prop
float thicknessInX0() const
Return the radiationlength fraction.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
@ loc2
generic first and second local coordinate
bool const RAWDATA *ch2 const
TrackParameters * updateTrackParameters(Trk::TrackParameters ¶meters, Trk::ExCellCharged &eCell, Trk::PropDirection dir, Trk::MaterialUpdateStage matupstage) const
charged extrapolation
virtual void setOwner(IDataHandleHolder *o)=0
AmgSymMatrix(5) &GXFTrackState
virtual ChargedTrackParametersUniquePtr createUniqueTrackParameters(double l1, double l2, double phi, double theat, double qop, std::optional< AmgSymMatrix(5)> cov=std::nullopt) const =0
Use the Surface as a ParametersBase constructor, from local parameters - charged.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
int value() const
layerIndex expressed in an integer
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Ensure that the ATLAS eigen extensions are properly loaded.
std::string m_sopPostfix
prefix for screen output
StringProperty m_sopPostfix_prop
BooleanProperty m_eLossCorrection
const LayerMaterialProperties * layerMaterialProperties() const
getting the LayerMaterialProperties including full/pre/post update
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
BooleanProperty m_mscCorrection
constexpr int pow(int base, int exp) noexcept
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Scalar mag() const
mag method
const LayerIndex & layerIndex() const
get the layerIndex