ATLAS Offline Software
TRTTrkAlignDBTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETALIGNDBTOOLS_TRTTRKALIGNDBTOOL_H
6 #define INDETALIGNDBTOOLS_TRTTRKALIGNDBTOOL_H
7 
10 
11 
22 class TFile;
23 
24 class TRT_ID;
25 class PixelID;
26 class ITRT_AlignDbSvc;
27 
28 class Identifier;
29 
30 namespace Trk
31 {
32  class AlignModule;
33  class IAlignModuleTool;
35 }
36 
37 namespace InDet
38 {
39 
40  class TRTTrkAlignDBTool : virtual public Trk::ITrkAlignDBTool, public AthAlgTool
41  {
42 
43  public:
44  TRTTrkAlignDBTool(const std::string & type, const std::string & name, const IInterface * parent);
45  virtual ~TRTTrkAlignDBTool();
46 
49 
51  void writeAlignPar();
52 
54  void setNtuple(TFile * file)
55  { m_ntuple=file; }
56 
57  private:
58 
60  void printTransform(const Amg::Transform3D & tr) const;
61 
63  void updateDB();
64 
66  bool containsTRT(Trk::AlignModule * module) const;
67 
70 
71  bool checkAlignLevel();
72 
75 
76  std::string m_outputAlignFile;
78  std::string m_oldAlignFile;
79  std::string m_oldStrawAlignFile;
83 
85  ToolHandle<Trk::IAlignModuleTool> m_alignModuleTool;
86  ToolHandle<Trk::IGeometryManagerTool> m_trtGeoManager;
87 
91 
92  TFile * m_ntuple;
93 
94  }; // end class
95 
96 } // end namespace
97 
98 #endif // INDETALIGNDBTOOLS_TRTTRKALIGNDBTOOL_H
InDet::TRTTrkAlignDBTool::~TRTTrkAlignDBTool
virtual ~TRTTrkAlignDBTool()
Definition: TRTTrkAlignDBTool.cxx:65
InDet::TRTTrkAlignDBTool::m_pixHelper
const PixelID * m_pixHelper
Definition: TRTTrkAlignDBTool.h:74
InDet::TRTTrkAlignDBTool::m_trtAlignLevel
int m_trtAlignLevel
Definition: TRTTrkAlignDBTool.h:88
InDet::TRTTrkAlignDBTool::m_trtAlignDbSvc
ServiceHandle< ITRT_AlignDbSvc > m_trtAlignDbSvc
Definition: TRTTrkAlignDBTool.h:84
InDet::TRTTrkAlignDBTool::m_trtAlignLevelBarrel
int m_trtAlignLevelBarrel
Definition: TRTTrkAlignDBTool.h:89
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
Trk::AlignModule
Definition: AlignModule.h:45
InDet::TRTTrkAlignDBTool::m_trtGeoManager
ToolHandle< Trk::IGeometryManagerTool > m_trtGeoManager
Definition: TRTTrkAlignDBTool.h:86
InDet::TRTTrkAlignDBTool
Definition: TRTTrkAlignDBTool.h:41
ITRT_AlignDbSvc
Definition: ITRT_AlignDbSvc.h:29
ITrkAlignDBTool.h
InDet::TRTTrkAlignDBTool::updateL0asL1
void updateL0asL1(Identifier idL0, const Amg::Transform3D &transform)
updates level 0 transform as level 1 constants in the DB
Definition: TRTTrkAlignDBTool.cxx:362
InDet::TRTTrkAlignDBTool::m_oldStrawAlignFile
std::string m_oldStrawAlignFile
Definition: TRTTrkAlignDBTool.h:79
InDet::TRTTrkAlignDBTool::m_updateConstants
bool m_updateConstants
Definition: TRTTrkAlignDBTool.h:82
InDet::TRTTrkAlignDBTool::m_outputAlignFile
std::string m_outputAlignFile
Definition: TRTTrkAlignDBTool.h:76
AlignModule
AlignModule is a grouping of TrkDetElementBase objects, grouped according to the type of alignment,...
python.PyAthena.module
module
Definition: PyAthena.py:131
InDet::TRTTrkAlignDBTool::m_writeTextFile
bool m_writeTextFile
Definition: TRTTrkAlignDBTool.h:80
InDet::TRTTrkAlignDBTool::setNtuple
void setNtuple(TFile *file)
sets ntuple to be used to write output
Definition: TRTTrkAlignDBTool.h:54
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IGeometryManagerTool
Interface for tool used to build the AlignModules to be used for alignment. The implementation is spe...
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
AthAlgTool.h
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
file
TFile * file
Definition: tile_monitor.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
InDet::TRTTrkAlignDBTool::m_writeOldConstants
bool m_writeOldConstants
Definition: TRTTrkAlignDBTool.h:81
InDet::TRTTrkAlignDBTool::finalize
StatusCode finalize()
Definition: TRTTrkAlignDBTool.cxx:122
InDet::TRTTrkAlignDBTool::m_oldAlignFile
std::string m_oldAlignFile
Definition: TRTTrkAlignDBTool.h:78
InDet::TRTTrkAlignDBTool::TRTTrkAlignDBTool
TRTTrkAlignDBTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TRTTrkAlignDBTool.cxx:29
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
InDet::TRTTrkAlignDBTool::checkAlignLevel
bool checkAlignLevel()
Definition: TRTTrkAlignDBTool.cxx:130
InDet::TRTTrkAlignDBTool::m_trtHelper
const TRT_ID * m_trtHelper
Definition: TRTTrkAlignDBTool.h:73
InDet::TRTTrkAlignDBTool::writeAlignPar
void writeAlignPar()
Writes alignment parameters.
Definition: TRTTrkAlignDBTool.cxx:165
InDet::TRTTrkAlignDBTool::containsTRT
bool containsTRT(Trk::AlignModule *module) const
checks whether the AlignModule contains TRT detector elements
Definition: TRTTrkAlignDBTool.cxx:408
InDet::TRTTrkAlignDBTool::updateDB
void updateDB()
updates alignment constants in the DB
Definition: TRTTrkAlignDBTool.cxx:204
TRT_ID
Definition: TRT_ID.h:84
InDet::TRTTrkAlignDBTool::m_outputStrawAlignFile
std::string m_outputStrawAlignFile
Definition: TRTTrkAlignDBTool.h:77
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
InDet::TRTTrkAlignDBTool::m_ntuple
TFile * m_ntuple
Definition: TRTTrkAlignDBTool.h:92
Trk::ITrkAlignDBTool
Definition: ITrkAlignDBTool.h:34
AthAlgTool
Definition: AthAlgTool.h:26
PixelID
Definition: PixelID.h:67
InDet::TRTTrkAlignDBTool::m_alignModuleTool
ToolHandle< Trk::IAlignModuleTool > m_alignModuleTool
Definition: TRTTrkAlignDBTool.h:85
InDet::TRTTrkAlignDBTool::m_trtAlignLevelEndcaps
int m_trtAlignLevelEndcaps
Definition: TRTTrkAlignDBTool.h:90
InDet::TRTTrkAlignDBTool::printTransform
void printTransform(const Amg::Transform3D &tr) const
print translation to stdout
Definition: TRTTrkAlignDBTool.cxx:397
ServiceHandle< ITRT_AlignDbSvc >
InDet::TRTTrkAlignDBTool::initialize
StatusCode initialize()
Definition: TRTTrkAlignDBTool.cxx:69
Identifier
Definition: IdentifierFieldParser.cxx:14