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 | ~AlignModuleTool () |
virtual StatusCode | initialize () |
virtual StatusCode | finalize () |
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... | |
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... | |
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 > &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 | 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 |
Used to identify type of detector. More... | |
int | m_alignModuleListType |
uses Trk enum AlignModuleListType (L1,L2,L3,L1_5,L2_5) More... | |
std::ostream * | m_logStream |
logfile output stream More... | |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Private Attributes | |
AlignModuleList * | m_alignModules |
list of AlignModules More... | |
std::vector< const AlignModuleList * > | m_alignModuleMaps |
maps detector element idHash to AlignModule More... | |
AlignPar2DVec * | m_alignParList |
contains active parameters More... | |
AlignPar2DVec * | m_fullAlignParList |
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.
|
virtualdefault |
|
inlineinherited |
returns type of AlignModuleList (see AlignModuleList.h for more info)
Definition at line 53 of file IAlignModuleTool.h.
|
inlinevirtual |
Returns 1-D vector of all AlignModules containing all detector types.
Implements Trk::IAlignModuleTool.
Definition at line 86 of file AlignModuleTool.h.
|
inline |
returns complete AlignParList (active parameters only)
Definition at line 141 of file AlignModuleTool.h.
|
inlinevirtual |
Returns 1-D vector of all AlignPars for all detector types.
Implements Trk::IAlignModuleTool.
Definition at line 89 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
|
virtual |
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.
|
virtual |
Implements Trk::IAlignModuleTool.
Reimplemented in InDet::InDetAlignModuleTool.
Definition at line 65 of file AlignModuleTool.cxx.
|
virtual |
Returns pointer to AlignModule containing RIO.
Returns 0 if not found.
Implements Trk::IAlignModuleTool.
Definition at line 153 of file AlignModuleTool.cxx.
|
virtual |
Returns pointer to AlignModule containing RIO.
Returns 0 if not found.
Implements Trk::IAlignModuleTool.
Definition at line 122 of file AlignModuleTool.cxx.
|
inline |
|
inlinevirtual |
Returns collection of AlignModules for a particular detector type.
Implements Trk::IAlignModuleTool.
Definition at line 118 of file AlignModuleTool.h.
|
virtual |
returns vector of AlignPars for an AlignModule
Implements Trk::IAlignModuleTool.
Definition at line 197 of file AlignModuleTool.cxx.
|
virtual |
Returns detector type (AlignModule enum) for a detector element.
Implements Trk::IAlignModuleTool.
Definition at line 296 of file AlignModuleTool.cxx.
|
virtual |
returns vector of full AlignPars for an AlignModule
Implements Trk::IAlignModuleTool.
Definition at line 316 of file AlignModuleTool.cxx.
|
virtual |
Implements Trk::IAlignModuleTool.
Reimplemented in InDet::InDetAlignModuleTool.
Definition at line 44 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 149 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.
|
inlinevirtual |
Returns total number of alignment parameters.
Implements Trk::IAlignModuleTool.
Definition at line 83 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.
|
inlinevirtual |
|
virtual |
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.
void AlignModuleTool::setAlignParLists | ( | AlignPar2DVec * | fullAlignParList, |
AlignPar2DVec * | alignParList = 0 |
||
) |
Sets the AlignParLists using boost::multi_array.
Lists are owned by GeometryManagerTool.
Definition at line 96 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.
|
inlinevirtual |
set and retrieve flag whether or not the sub-TrkDetElementBase structures are aligned for a given detector type
Implements Trk::IAlignModuleTool.
Definition at line 63 of file AlignModuleTool.h.
|
inlinevirtual |
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.
|
inlinevirtual |
|
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 138 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.
|
protectedinherited |
uses Trk enum AlignModuleListType (L1,L2,L3,L1_5,L2_5)
Definition at line 143 of file IAlignModuleTool.h.
|
private |
maps detector element idHash to AlignModule
Definition at line 152 of file AlignModuleTool.h.
|
private |
list of AlignModules
Definition at line 151 of file AlignModuleTool.h.
|
private |
1-D vector of AlignModules
Definition at line 157 of file AlignModuleTool.h.
|
private |
contains active parameters
Definition at line 154 of file AlignModuleTool.h.
|
private |
1-D vector of AlignPars
Definition at line 158 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 155 of file AlignModuleTool.h.
|
protected |
Used to identify type of detector.
Definition at line 147 of file AlignModuleTool.h.
|
protectedinherited |
logfile output stream
Definition at line 145 of file IAlignModuleTool.h.
|
private |
identify detectors aligning structures smaller than TrkDetElementBase
Definition at line 160 of file AlignModuleTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.