![]() |
ATLAS Offline Software
|
#include <AlignModuleTool.h>
Public Types | |
typedef DataVector< AlignPar > | AlignParVec |
typedef DataVector< AlignParVec > | AlignPar2DVec |
Public Member Functions | |
AlignModuleTool (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual StatusCode | initialize () override |
virtual StatusCode | finalize () override |
AlignModuleListType | alignModuleListType () const override |
returns type of AlignModuleList (see AlignModuleList.h for more info) More... | |
virtual void | setAlignModules (AlignModuleList *alignmods, std::vector< AlignModuleList * > *idHashMaps) override |
sets alignModuleLists and idHash maps for a set of AlignModules. More... | |
virtual void | setAlignParLists (AlignPar2DVec *fullAlignParList, AlignPar2DVec *alignParList=0) override |
Sets the AlignParLists using boost::multi_array. More... | |
virtual 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... | |
virtual 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... | |
virtual int | nAlignParameters () const override |
Returns total number of alignment parameters. More... | |
virtual const AlignModuleList * | alignModules1D () override |
Returns 1-D vector of all AlignModules containing all detector types. More... | |
virtual AlignParVec * | alignParList1D () override |
Returns 1-D vector of all AlignPars for all detector types. More... | |
virtual 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... | |
virtual int | subDetElementIDHash (Identifier) const |
Returns identifier hash for sub-TrkDetElementBase structure based on detector type. 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 | setAlignParLists (DataVector< DataVector< AlignPar > > *fullAlignParList, DataVector< DataVector< AlignPar > > *alignParList)=0 |
sets AlignPar for AlignModules for a particular detector type More... | |
virtual void | setMeasurementProperties (AlignTSOS *) const |
allows to set detector specific properties of AlignTSOS, like measurement direction (CSC) or fan-out angle (SCT) More... | |
virtual void | setLogStream (std::ostream *os) |
sets the output stream for the logfile More... | |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Protected Member Functions | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
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. More... | |
Protected Attributes | |
const AtlasDetectorID * | m_idHelper = nullptr |
Used to identify type of detector. More... | |
std::ostream * | m_logStream = nullptr |
logfile output stream More... | |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
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... | |
Private Attributes | |
IntegerProperty | m_alignModuleListType {this, "AlignModuleListType", Trk::L3} |
uses Trk enum AlignModuleListType (L1,L2,L3,L1_5,L2_5) More... | |
AlignModuleList * | m_alignModules = nullptr |
list of AlignModules More... | |
std::vector< const AlignModuleList * > | m_alignModuleMaps |
maps detector element idHash to AlignModule More... | |
AlignPar2DVec * | m_alignParList = nullptr |
contains active parameters More... | |
AlignPar2DVec * | m_fullAlignParList = nullptr |
contains all parameters More... | |
std::vector< AlignModule * > | m_alignModules1D |
1-D vector of AlignModules More... | |
AlignParVec | m_alignParList1D |
1-D vector of AlignPars More... | |
std::vector< bool > | m_subDetElement |
identify detectors aligning structures smaller than TrkDetElementBase More... | |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Definition at line 36 of file AlignModuleTool.h.
Definition at line 40 of file AlignModuleTool.h.
Definition at line 39 of file AlignModuleTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
AlignModuleTool::AlignModuleTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 20 of file AlignModuleTool.cxx.
|
inlineoverridevirtual |
returns type of AlignModuleList (see AlignModuleList.h for more info)
Implements Trk::IAlignModuleTool.
Definition at line 48 of file AlignModuleTool.h.
|
inlineoverridevirtual |
Returns 1-D vector of all AlignModules containing all detector types.
Implements Trk::IAlignModuleTool.
Definition at line 88 of file AlignModuleTool.h.
|
inline |
returns complete AlignParList (active parameters only)
Definition at line 143 of file AlignModuleTool.h.
|
inlineoverridevirtual |
Returns 1-D vector of all AlignPars for all detector types.
Implements Trk::IAlignModuleTool.
Definition at line 91 of file AlignModuleTool.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
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
|
overridevirtual |
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.
|
overridevirtual |
Implements Trk::IAlignModuleTool.
Reimplemented in InDet::InDetAlignModuleTool.
Definition at line 53 of file AlignModuleTool.cxx.
|
overridevirtual |
Returns pointer to AlignModule containing RIO.
Returns 0 if not found.
Implements Trk::IAlignModuleTool.
Definition at line 140 of file AlignModuleTool.cxx.
|
overridevirtual |
Returns pointer to AlignModule containing RIO.
Returns 0 if not found.
Implements Trk::IAlignModuleTool.
Definition at line 109 of file AlignModuleTool.cxx.
|
inline |
|
inlineoverridevirtual |
Returns collection of AlignModules for a particular detector type.
Implements Trk::IAlignModuleTool.
Definition at line 120 of file AlignModuleTool.h.
|
overridevirtual |
returns vector of AlignPars for an AlignModule
Implements Trk::IAlignModuleTool.
Definition at line 184 of file AlignModuleTool.cxx.
|
overridevirtual |
Returns detector type (AlignModule enum) for a detector element.
Implements Trk::IAlignModuleTool.
Definition at line 283 of file AlignModuleTool.cxx.
|
overridevirtual |
returns vector of full AlignPars for an AlignModule
Implements Trk::IAlignModuleTool.
Definition at line 303 of file AlignModuleTool.cxx.
|
overridevirtual |
Implements Trk::IAlignModuleTool.
Reimplemented in InDet::InDetAlignModuleTool.
Definition at line 32 of file AlignModuleTool.cxx.
|
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.
|
inlinestaticinherited |
Definition at line 148 of file IAlignModuleTool.h.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
inlineoverridevirtual |
Returns total number of alignment parameters.
Implements Trk::IAlignModuleTool.
Definition at line 85 of file AlignModuleTool.h.
|
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.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
inlineoverridevirtual |
|
overridevirtual |
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.
|
overridevirtual |
Sets the AlignParLists using boost::multi_array.
Lists are owned by GeometryManagerTool.
Definition at line 83 of file AlignModuleTool.cxx.
|
pure virtualinherited |
sets AlignPar for AlignModules for a particular detector type
|
inlinevirtualinherited |
|
inlinevirtualinherited |
allows to set detector specific properties of AlignTSOS, like measurement direction (CSC) or fan-out angle (SCT)
Reimplemented in InDet::InDetAlignModuleTool.
Definition at line 87 of file IAlignModuleTool.h.
|
inlineoverridevirtual |
set and retrieve flag whether or not the sub-TrkDetElementBase structures are aligned for a given detector type
Implements Trk::IAlignModuleTool.
Definition at line 65 of file AlignModuleTool.h.
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
|
inlinevirtual |
Returns identifier hash for sub-TrkDetElementBase structure based on detector type.
It needs detector specific implementation in a derived class
Reimplemented in InDet::InDetAlignModuleTool.
Definition at line 140 of file AlignModuleTool.h.
|
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 DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
uses Trk enum AlignModuleListType (L1,L2,L3,L1_5,L2_5)
Definition at line 153 of file AlignModuleTool.h.
|
private |
maps detector element idHash to AlignModule
Definition at line 156 of file AlignModuleTool.h.
|
private |
list of AlignModules
Definition at line 155 of file AlignModuleTool.h.
|
private |
1-D vector of AlignModules
Definition at line 161 of file AlignModuleTool.h.
|
private |
contains active parameters
Definition at line 158 of file AlignModuleTool.h.
|
private |
1-D vector of AlignPars
Definition at line 162 of file AlignModuleTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
contains all parameters
Definition at line 159 of file AlignModuleTool.h.
|
protected |
Used to identify type of detector.
Definition at line 149 of file AlignModuleTool.h.
|
protectedinherited |
logfile output stream
Definition at line 144 of file IAlignModuleTool.h.
|
private |
identify detectors aligning structures smaller than TrkDetElementBase
Definition at line 164 of file AlignModuleTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.