Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <InDetAlignModuleTool.h>
|
| InDetAlignModuleTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~InDetAlignModuleTool () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | finalize () |
|
virtual int | subDetElementIDHash (Identifier id) const |
| Returns identifier hash for sub-TrkDetElementBase structure based on detector type. More...
|
|
virtual void | setMeasurementProperties (Trk::AlignTSOS *atsos) const |
| allows to set detector specific properties of AlignTSOS. More...
|
|
void | setAlignModules (AlignModuleList *alignmods, std::vector< AlignModuleList * > *idHashMaps) |
| sets alignModuleLists and idHash maps for a set of AlignModules. More...
|
|
void | setAlignParLists (AlignPar2DVec *fullAlignParList, AlignPar2DVec *alignParList=0) |
| Sets the AlignParLists using boost::multi_array. More...
|
|
virtual void | setAlignParLists (DataVector< DataVector< AlignPar > > *fullAlignParList, DataVector< DataVector< AlignPar > > *alignParList)=0 |
| sets AlignPar for AlignModules for a particular detector type More...
|
|
void | setSubDetElement (AlignModule::DetectorType detType, bool status) |
| set and retrieve flag whether or not the sub-TrkDetElementBase structures are aligned for a given detector type More...
|
|
bool | subDetElement (AlignModule::DetectorType detType) const |
|
virtual AlignModule * | findAlignModule (const RIO_OnTrack *rio, AlignModule::DetectorType detType) const |
| Returns pointer to AlignModule containing RIO. More...
|
|
virtual AlignModule * | findAlignModule (const TrkDetElementBase *det, AlignModule::DetectorType detType) const |
| Returns pointer to AlignModule containing RIO. More...
|
|
int | nAlignParameters () const |
| Returns total number of alignment parameters. More...
|
|
const AlignModuleList * | alignModules1D () |
| Returns 1-D vector of all AlignModules containing all detector types. More...
|
|
AlignParVec * | alignParList1D () |
| Returns 1-D vector of all AlignPars for all detector types. More...
|
|
AlignParVec * | getAlignPars (const AlignModule *alignModule) const |
| returns vector of AlignPars for an AlignModule More...
|
|
virtual void | shiftModule (const AlignModule *, const Track *, AlignModule::TransformParameters, double) const |
| methods used for numerical derivative to shift module before refitting track and restore to normal position, to be inherited by detector-specific align modules More...
|
|
virtual void | restoreModule (const AlignModule *) const |
|
virtual void | fillDetAlignmentParameters (const TrkDetElementBase *det, DataVector< AlignPar > *apVec, AlignModule::DetectorType detType) const |
| fills values for alignment parameters for a detector element, applying AlignModule transforms if necessary More...
|
|
virtual const AlignModuleList * | getAlignModuleCollection () const |
| Returns collection of AlignModules for a particular detector type. More...
|
|
AlignParVec * | getFullAlignPars (const AlignModule *alignModule) const |
| returns vector of full AlignPars for an AlignModule More...
|
|
AlignModule::DetectorType | getDetectorType (const TrkDetElementBase *det) const |
| Returns detector type (AlignModule enum) for a detector element. More...
|
|
AlignPar2DVec * | alignParList () const |
| returns complete AlignParList (active parameters only) More...
|
|
AlignPar2DVec * | fullAlignParList () const |
| returns complete AlignParList 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 |
|
AlignModuleListType | alignModuleListType () |
| returns type of AlignModuleList (see AlignModuleList.h for more info) More...
|
|
virtual void | setLogStream (std::ostream *os) |
| sets the output stream for the logfile More...
|
|
Definition at line 30 of file InDetAlignModuleTool.h.
◆ AlignPar2DVec
◆ AlignParVec
◆ StoreGateSvc_t
◆ InDetAlignModuleTool()
InDet::InDetAlignModuleTool::InDetAlignModuleTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~InDetAlignModuleTool()
InDet::InDetAlignModuleTool::~InDetAlignModuleTool |
( |
| ) |
|
|
virtual |
◆ alignModuleListType()
AlignModuleListType Trk::IAlignModuleTool::alignModuleListType |
( |
| ) |
|
|
inlineinherited |
◆ alignModules1D()
const AlignModuleList* Trk::AlignModuleTool::alignModules1D |
( |
| ) |
|
|
inlinevirtualinherited |
◆ alignParList()
returns complete AlignParList (active parameters only)
Definition at line 141 of file AlignModuleTool.h.
◆ alignParList1D()
◆ 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
◆ fillDetAlignmentParameters()
fills values for alignment parameters for a detector element, applying AlignModule transforms if necessary
Implements Trk::IAlignModuleTool.
Definition at line 208 of file AlignModuleTool.cxx.
217 int idHash=
det->identifyHash();
228 if ((*modAlignPar)[
i]) {
229 alignModPar[
i]=(*modAlignPar)[
i]->par();
230 alignModErr[
i]=(*modAlignPar)[
i]->err();
233 alignModPar[
i]=alignModErr[
i]=0.;
244 Amg::Transform3D alignModXform = alignModXTranslation * Amg::RotationMatrix3D::Identity();
254 Amg::Transform3D alignModXformErr = alignModXTranslationErr * Amg::RotationMatrix3D::Identity();
265 ATH_MSG_WARNING(
"Check that order is correct: AlignModuleTool:271,284");
285 ap->setPar(detpars[ipar],deterrs[ipar]);
286 ap->setFinalPar(
ap->initPar()+detpars[ipar],
287 std::sqrt(
ap->initErr()*
ap->initErr() + deterrs[ipar]*deterrs[ipar]) );
◆ finalize()
StatusCode InDet::InDetAlignModuleTool::finalize |
( |
| ) |
|
|
virtual |
◆ findAlignModule() [1/2]
Returns pointer to AlignModule containing RIO.
Returns 0 if not found.
Implements Trk::IAlignModuleTool.
Definition at line 153 of file AlignModuleTool.cxx.
157 ATH_MSG_DEBUG(
"in AlignModuleTool::findAlignModule(rio,detType)");
165 const TrkDetElementBase * detelement = rio->detectorElement();
183 idHash = detelement->identifyHash();
◆ findAlignModule() [2/2]
◆ fullAlignParList()
◆ getAlignModuleCollection()
virtual const AlignModuleList* Trk::AlignModuleTool::getAlignModuleCollection |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getAlignPars()
◆ getDetectorType()
◆ getFullAlignPars()
AlignModuleTool::AlignParVec * AlignModuleTool::getFullAlignPars |
( |
const AlignModule * |
alignModule | ) |
const |
|
virtualinherited |
◆ initialize()
StatusCode InDet::InDetAlignModuleTool::initialize |
( |
| ) |
|
|
virtual |
◆ 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()
const InterfaceID & Trk::IAlignModuleTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 149 of file IAlignModuleTool.h.
150 {
return IID_TRKALIGNINTERFACES_IAlignModuleTool; }
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ nAlignParameters()
int Trk::AlignModuleTool::nAlignParameters |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ 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()
◆ restoreModule()
◆ setAlignModules()
sets alignModuleLists and idHash maps for a set of AlignModules.
AlignModuleList should be of type Combined, containing detector elements of different types.
Implements Trk::IAlignModuleTool.
Definition at line 72 of file AlignModuleTool.cxx.
79 for (
int i=0;
i<(
int)idHashMaps->size();
i++) {
88 (*m_alignModules)[imod]->setIdHash(nmods++);
◆ setAlignParLists() [1/2]
Sets the AlignParLists using boost::multi_array.
Lists are owned by GeometryManagerTool.
Definition at line 96 of file AlignModuleTool.cxx.
115 (*ap)->setIndex(
index++);
◆ setAlignParLists() [2/2]
sets AlignPar for AlignModules for a particular detector type
◆ setLogStream()
virtual void Trk::IAlignModuleTool::setLogStream |
( |
std::ostream * |
os | ) |
|
|
inlinevirtualinherited |
◆ setMeasurementProperties()
void InDet::InDetAlignModuleTool::setMeasurementProperties |
( |
Trk::AlignTSOS * |
atsos | ) |
const |
|
virtual |
◆ setSubDetElement()
◆ shiftModule()
methods used for numerical derivative to shift module before refitting track and restore to normal position, to be inherited by detector-specific align modules
Reimplemented from Trk::IAlignModuleTool.
Definition at line 102 of file AlignModuleTool.h.
◆ subDetElement()
◆ subDetElementIDHash()
int InDet::InDetAlignModuleTool::subDetElementIDHash |
( |
Identifier |
id | ) |
const |
|
virtual |
Returns identifier hash for sub-TrkDetElementBase structure based on detector type.
In the inner detector it is only implemented for TRT where the structure is a single straw
Reimplemented from Trk::AlignModuleTool.
Definition at line 62 of file InDetAlignModuleTool.cxx.
◆ 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_alignModuleListType
int Trk::IAlignModuleTool::m_alignModuleListType |
|
protectedinherited |
◆ m_alignModuleMaps
std::vector<const AlignModuleList*> Trk::AlignModuleTool::m_alignModuleMaps |
|
privateinherited |
◆ m_alignModules
AlignModuleList* Trk::AlignModuleTool::m_alignModules |
|
privateinherited |
◆ m_alignModules1D
std::vector<AlignModule*> Trk::AlignModuleTool::m_alignModules1D |
|
privateinherited |
◆ m_alignParList
◆ m_alignParList1D
◆ m_detStore
◆ m_evtStore
◆ m_fullAlignParList
◆ m_idHelper
◆ m_logStream
std::ostream* Trk::IAlignModuleTool::m_logStream |
|
protectedinherited |
◆ m_subDetElement
std::vector<bool> Trk::AlignModuleTool::m_subDetElement |
|
privateinherited |
identify detectors aligning structures smaller than TrkDetElementBase
Definition at line 160 of file AlignModuleTool.h.
◆ m_trtHelper
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
bool is_pixel(Identifier id) const
TrackState::MeasurementType measType() const
returns measurement type enum
bool is_rpc(Identifier id) const
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
const RIO_OnTrack * rio() const
returns RIO_OnTrack or leading RIO of CompetingRIOsOnTrack (assigned by c'tor)
IdentifierHash straw_hash(Identifier straw_id) const
straw hash from id - optimized
bool is_csc(Identifier id) const
DataModel_detail::iterator< DataVector > iterator
Standard iterator.
bool is_sct(Identifier id) const
Eigen::Matrix< double, 2, 1 > Vector2D
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
void decomposeTransform(const Amg::Transform3D &transform, double *values)
bool is_trt(Identifier id) const
#define ATH_MSG_VERBOSE(x)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
AlignModule is a grouping of TrkDetElementBase objects, grouped according to the type of alignment,...
bool is_tgc(Identifier id) const
Eigen::Affine3d Transform3D
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
const TrkDetElementBase * detelement(int i=0) const
method for retrieving detector elements (one if RIO, more if CRIO)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void clear()
Erase all the elements in the collection.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
AlignPar contains all the information related to an alignment parameter of a particular align module ...
void setAlphaStrip(double alpha)
returns strip angle for fan-out structured modules (SCT endcap)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Eigen::Matrix< double, 3, 1 > Vector3D
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
#define ATH_MSG_WARNING(x)
Eigen::Translation< double, 3 > Translation3D
double sinStereoLocal(const Amg::Vector2D &localPos) const
Angle of strip in local frame with respect to the etaAxis.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Eigen::AngleAxisd AngleAxis3D
AlignModuleListType
Type of AlignModuleList (see description above).
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool is_mdt(Identifier id) const