 |
ATLAS Offline Software
|
#include <InDetAlignModuleTool.h>
|
| InDetAlignModuleTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~InDetAlignModuleTool () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | finalize () override |
|
virtual int | subDetElementIDHash (Identifier id) const override |
| Returns identifier hash for sub-TrkDetElementBase structure based on detector type. More...
|
|
virtual void | setMeasurementProperties (Trk::AlignTSOS *atsos) const override |
| allows to set detector specific properties of AlignTSOS. More...
|
|
AlignModuleListType | alignModuleListType () const override |
| returns type of AlignModuleList (see AlignModuleList.h for more info) More...
|
|
void | setAlignModules (AlignModuleList *alignmods, std::vector< AlignModuleList * > *idHashMaps) override |
| sets alignModuleLists and idHash maps for a set of AlignModules. More...
|
|
void | setAlignParLists (AlignPar2DVec *fullAlignParList, AlignPar2DVec *alignParList=0) override |
| 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) override |
| 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 override |
|
virtual AlignModule * | findAlignModule (const RIO_OnTrack *rio, AlignModule::DetectorType detType) const override |
| Returns pointer to AlignModule containing RIO. More...
|
|
virtual AlignModule * | findAlignModule (const TrkDetElementBase *det, AlignModule::DetectorType detType) const override |
| Returns pointer to AlignModule containing RIO. More...
|
|
int | nAlignParameters () const override |
| Returns total number of alignment parameters. More...
|
|
const AlignModuleList * | alignModules1D () override |
| Returns 1-D vector of all AlignModules containing all detector types. More...
|
|
AlignParVec * | alignParList1D () override |
| Returns 1-D vector of all AlignPars for all detector types. More...
|
|
AlignParVec * | getAlignPars (const AlignModule *alignModule) const override |
| returns vector of AlignPars for an AlignModule More...
|
|
virtual void | shiftModule (const AlignModule *, const Track *, AlignModule::TransformParameters, double) const override |
| 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 override |
|
virtual void | fillDetAlignmentParameters (const TrkDetElementBase *det, DataVector< AlignPar > *apVec, AlignModule::DetectorType detType) const override |
| fills values for alignment parameters for a detector element, applying AlignModule transforms if necessary More...
|
|
virtual const AlignModuleList * | getAlignModuleCollection () const override |
| Returns collection of AlignModules for a particular detector type. More...
|
|
AlignParVec * | getFullAlignPars (const AlignModule *alignModule) const override |
| returns vector of full AlignPars for an AlignModule More...
|
|
AlignModule::DetectorType | getDetectorType (const TrkDetElementBase *det) const override |
| 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, V, H > &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 |
|
virtual void | setLogStream (std::ostream *os) |
| sets the output stream for the logfile More...
|
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> 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 |
( |
| ) |
|
|
virtualdefault |
◆ alignModuleListType()
AlignModuleListType Trk::AlignModuleTool::alignModuleListType |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ alignModules1D()
const AlignModuleList* Trk::AlignModuleTool::alignModules1D |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ alignParList()
returns complete AlignParList (active parameters only)
Definition at line 143 of file AlignModuleTool.h.
◆ alignParList1D()
|
inlineoverridevirtualinherited |
◆ 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 195 of file AlignModuleTool.cxx.
204 int idHash=
det->identifyHash();
215 if ((*modAlignPar)[
i]) {
216 alignModPar[
i]=(*modAlignPar)[
i]->par();
217 alignModErr[
i]=(*modAlignPar)[
i]->err();
220 alignModPar[
i]=alignModErr[
i]=0.;
231 Amg::Transform3D alignModXform = alignModXTranslation * Amg::RotationMatrix3D::Identity();
241 Amg::Transform3D alignModXformErr = alignModXTranslationErr * Amg::RotationMatrix3D::Identity();
252 ATH_MSG_WARNING(
"Check that order is correct: AlignModuleTool:271,284");
272 ap->setPar(detpars[ipar],deterrs[ipar]);
273 ap->setFinalPar(
ap->initPar()+detpars[ipar],
274 std::sqrt(
ap->initErr()*
ap->initErr() + deterrs[ipar]*deterrs[ipar]) );
◆ finalize()
StatusCode InDet::InDetAlignModuleTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ findAlignModule() [1/2]
Returns pointer to AlignModule containing RIO.
Returns 0 if not found.
Implements Trk::IAlignModuleTool.
Definition at line 140 of file AlignModuleTool.cxx.
144 ATH_MSG_DEBUG(
"in AlignModuleTool::findAlignModule(rio,detType)");
152 const TrkDetElementBase * detelement = rio->detectorElement();
170 idHash = detelement->identifyHash();
◆ findAlignModule() [2/2]
◆ fullAlignParList()
◆ getAlignModuleCollection()
virtual const AlignModuleList* Trk::AlignModuleTool::getAlignModuleCollection |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ getAlignPars()
◆ getDetectorType()
◆ getFullAlignPars()
AlignModuleTool::AlignParVec * AlignModuleTool::getFullAlignPars |
( |
const AlignModule * |
alignModule | ) |
const |
|
overridevirtualinherited |
◆ initialize()
StatusCode InDet::InDetAlignModuleTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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 148 of file IAlignModuleTool.h.
149 {
return IID_TRKALIGNINTERFACES_IAlignModuleTool; }
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ nAlignParameters()
int Trk::AlignModuleTool::nAlignParameters |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ 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()
|
inlineoverridevirtualinherited |
◆ 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 59 of file AlignModuleTool.cxx.
66 for (
int i=0;
i<(
int)idHashMaps->size();
i++) {
75 (*m_alignModules)[imod]->setIdHash(nmods++);
◆ setAlignParLists() [1/2]
Sets the AlignParLists using boost::multi_array.
Lists are owned by GeometryManagerTool.
Definition at line 83 of file AlignModuleTool.cxx.
102 (*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 |
|
overridevirtual |
◆ setSubDetElement()
|
inlineoverridevirtualinherited |
◆ shiftModule()
|
inlineoverridevirtualinherited |
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 104 of file AlignModuleTool.h.
◆ subDetElement()
|
inlineoverridevirtualinherited |
◆ subDetElementIDHash()
int InDet::InDetAlignModuleTool::subDetElementIDHash |
( |
Identifier |
id | ) |
const |
|
overridevirtual |
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 59 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
IntegerProperty Trk::AlignModuleTool::m_alignModuleListType {this, "AlignModuleListType", Trk::L3} |
|
privateinherited |
◆ m_alignModuleMaps
std::vector<const AlignModuleList*> Trk::AlignModuleTool::m_alignModuleMaps |
|
privateinherited |
◆ m_alignModules
AlignModuleList* Trk::AlignModuleTool::m_alignModules = nullptr |
|
privateinherited |
◆ m_alignModules1D
std::vector<AlignModule*> Trk::AlignModuleTool::m_alignModules1D |
|
privateinherited |
◆ m_alignParList
◆ m_alignParList1D
◆ m_detStore
◆ m_evtStore
◆ m_fullAlignParList
AlignPar2DVec* Trk::AlignModuleTool::m_fullAlignParList = nullptr |
|
privateinherited |
◆ m_idHelper
◆ m_logStream
std::ostream* Trk::IAlignModuleTool::m_logStream = nullptr |
|
protectedinherited |
◆ m_subDetElement
std::vector<bool> Trk::AlignModuleTool::m_subDetElement |
|
privateinherited |
identify detectors aligning structures smaller than TrkDetElementBase
Definition at line 164 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
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,...
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool is_tgc(Identifier id) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
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.
bool is_mdt(Identifier id) const