|
ATLAS Offline Software
|
#include <TRTTrkAlignDBTool.h>
|
| TRTTrkAlignDBTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~TRTTrkAlignDBTool () |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
void | writeAlignPar () |
| Writes alignment parameters. More...
|
|
void | setNtuple (TFile *file) |
| sets ntuple to be used to write output More...
|
|
virtual void | setLogStream (std::ostream *os) |
| sets the output stream for the logfile More...
|
|
virtual StatusCode | preSolve () |
| sets up initial alignment constants before solving 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 |
|
Definition at line 40 of file TRTTrkAlignDBTool.h.
◆ StoreGateSvc_t
◆ TRTTrkAlignDBTool()
InDet::TRTTrkAlignDBTool::TRTTrkAlignDBTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TRTTrkAlignDBTool()
InDet::TRTTrkAlignDBTool::~TRTTrkAlignDBTool |
( |
| ) |
|
|
virtual |
◆ checkAlignLevel()
bool InDet::TRTTrkAlignDBTool::checkAlignLevel |
( |
| ) |
|
|
private |
◆ containsTRT()
◆ 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 InDet::TRTTrkAlignDBTool::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode InDet::TRTTrkAlignDBTool::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 & ITrkAlignDBTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 58 of file ITrkAlignDBTool.h.
59 {
return IID_TRKALIGNINTERFACES_ITrkAlignDBTool; }
◆ 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.
◆ preSolve()
virtual StatusCode Trk::ITrkAlignDBTool::preSolve |
( |
| ) |
|
|
inlinevirtualinherited |
sets up initial alignment constants before solving
Definition at line 52 of file ITrkAlignDBTool.h.
52 {
return StatusCode::SUCCESS; }
◆ printTransform()
print translation to stdout
Definition at line 397 of file TRTTrkAlignDBTool.cxx.
399 ATH_MSG_DEBUG(
" - translation: "<<tr.translation().x()<<
" "<<tr.translation().y()<<
" "<<tr.translation().z());
◆ renounce()
◆ renounceArray()
◆ setLogStream()
virtual void Trk::ITrkAlignDBTool::setLogStream |
( |
std::ostream * |
os | ) |
|
|
inlinevirtualinherited |
◆ setNtuple()
void InDet::TRTTrkAlignDBTool::setNtuple |
( |
TFile * |
file | ) |
|
|
inlinevirtual |
◆ 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.
◆ updateDB()
void InDet::TRTTrkAlignDBTool::updateDB |
( |
| ) |
|
|
private |
updates alignment constants in the DB
Definition at line 204 of file TRTTrkAlignDBTool.cxx.
225 ATH_MSG_ERROR(
" No geometry manager available or alignment level not given.");
230 ATH_MSG_INFO(
"-------------------------------------------------------");
241 std::vector<Trk::AlignModule *>::const_iterator imod =
m_alignModuleTool->getAlignModuleCollection()->begin();
242 std::vector<Trk::AlignModule *>::const_iterator imod_end =
m_alignModuleTool->getAlignModuleCollection()->end();
243 for( ; imod != imod_end; ++imod ) {
247 ATH_MSG_DEBUG(
"-------------------------------------------------------");
258 ATH_MSG_DEBUG(
"Module with ID: "<<modID<<
" is not a TRT module. Skipping.");
264 if(alignPars->
size() == 0) {
317 dbtransform = dbFrameToAlignFrame.inverse() *
transform * dbFrameToAlignFrame;
329 ATH_MSG_DEBUG(
"L3 module in TRT end-cap A so we apply additional rotation about global Z (" <<
M_PI <<
")");
357 ATH_MSG_INFO(
"-------------------------------------------------------");
◆ updateL0asL1()
updates level 0 transform as level 1 constants in the DB
Definition at line 362 of file TRTTrkAlignDBTool.cxx.
370 ATH_MSG_ERROR(
"wrong identifier for L0 TRT in updateL0asL1() : "<<idL0);
379 ATH_MSG_INFO(
"Splitting TRT into L1 modules and updating in the DB");
381 std::vector<Identifier>
ids;
387 for(
unsigned int i=0;
i<
ids.size(); ++
i) {
◆ updateVHKA()
◆ writeAlignPar()
void InDet::TRTTrkAlignDBTool::writeAlignPar |
( |
| ) |
|
|
virtual |
◆ m_alignModuleTool
◆ m_detStore
◆ m_evtStore
◆ m_logStream
std::ostream* Trk::ITrkAlignDBTool::m_logStream = nullptr |
|
protectedinherited |
◆ m_ntuple
TFile* InDet::TRTTrkAlignDBTool::m_ntuple |
|
private |
◆ m_oldAlignFile
std::string InDet::TRTTrkAlignDBTool::m_oldAlignFile |
|
private |
◆ m_oldStrawAlignFile
std::string InDet::TRTTrkAlignDBTool::m_oldStrawAlignFile |
|
private |
◆ m_outputAlignFile
std::string InDet::TRTTrkAlignDBTool::m_outputAlignFile |
|
private |
◆ m_outputStrawAlignFile
std::string InDet::TRTTrkAlignDBTool::m_outputStrawAlignFile |
|
private |
◆ m_pixHelper
◆ m_trtAlignDbSvc
◆ m_trtAlignLevel
int InDet::TRTTrkAlignDBTool::m_trtAlignLevel |
|
private |
◆ m_trtAlignLevelBarrel
int InDet::TRTTrkAlignDBTool::m_trtAlignLevelBarrel |
|
private |
◆ m_trtAlignLevelEndcaps
int InDet::TRTTrkAlignDBTool::m_trtAlignLevelEndcaps |
|
private |
◆ m_trtGeoManager
◆ m_trtHelper
◆ m_updateConstants
bool InDet::TRTTrkAlignDBTool::m_updateConstants |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeOldConstants
bool InDet::TRTTrkAlignDBTool::m_writeOldConstants |
|
private |
◆ m_writeTextFile
bool InDet::TRTTrkAlignDBTool::m_writeTextFile |
|
private |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
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
Identifier barrel_ec_id(int barrel_ec) const
For +/-barrel or +/-endcap id.
bool is_trt(Identifier id) const
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
double par() const
returns final parameter and error
Eigen::Affine3d Transform3D
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
std::vector< const TrkDetElementBase * > DetElementCollection
typedefs to contain detector element pointers and transforms
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Eigen::Matrix< double, 3, 1 > Vector3D
bool is_barrel(const Identifier &id) const
Test for barrel.
#define ATH_MSG_WARNING(x)
Eigen::Translation< double, 3 > Translation3D
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Eigen::AngleAxisd AngleAxis3D
const T * at(size_type n) const
Access an element, as an rvalue.
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>