ATLAS Offline Software
TestTRT_Alignment.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 InDetDetDescrExample_TestTRT_Alignment_h
6 #define InDetDetDescrExample_TestTRT_Alignment_h
7 
9 #include "GaudiKernel/ServiceHandle.h"
12 
13 //#include "CLHEP/Geometry/Transform3D.h"
14 
15 #include <vector>
16 
17 class Identifier;
18 //class HepGeom::Transform3D;
19 
20 namespace InDetDD{
21  class TRT_DetectorManager;
22  class TRT_BaseElement;
23 }
24 
25 class TRT_ID;
26 
28 
30 public:
31  TestTRT_Alignment (const std::string& name, ISvcLocator* pSvcLocator);
35 
36 private:
37 
38  void addShiftTop(const Amg::Transform3D & transform);
39  void addShiftModule(int bec, int phiMod, int layer, const Amg::Transform3D & transform);
40  void addShift(int level, const Identifier & id, const Amg::Transform3D & transform);
41  void compareStraw(const InDetDD::TRT_BaseElement * element, int straw);
42  void compareEndStraws(const Identifier &id);
43  void printAlignmentShifts();
44  bool testIdentity(const Amg::Transform3D & transform, double errRot=0, double errTrans=0);
45 
46 
48  const TRT_ID * m_idHelper;
49 
50  std::string m_managerName;
54  double m_errRot;
55  double m_errTrans;
58 };
59 
60 #endif // InDetDetDescrExample_TestTRT_Alignment_h
TestTRT_Alignment::printAlignmentShifts
void printAlignmentShifts()
Definition: TestTRT_Alignment.cxx:168
TestTRT_Alignment::initialize
StatusCode initialize()
Definition: TestTRT_Alignment.cxx:58
TestTRT_Alignment::m_hardwiredShifts
bool m_hardwiredShifts
Definition: TestTRT_Alignment.h:56
TRT::Hit::straw
@ straw
Definition: HitInfo.h:82
TestTRT_Alignment::m_testAllElements
bool m_testAllElements
Definition: TestTRT_Alignment.h:53
TestTRT_Alignment::finalize
StatusCode finalize()
Definition: TestTRT_Alignment.cxx:161
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
TestTRT_Alignment
Definition: TestTRT_Alignment.h:29
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
AthAlgorithm.h
GeoPrimitives.h
TestTRT_Alignment::m_longPrintOut
bool m_longPrintOut
Definition: TestTRT_Alignment.h:51
TestTRT_Alignment::m_testAllStraws
bool m_testAllStraws
Definition: TestTRT_Alignment.h:52
TestTRT_Alignment::m_precision
int m_precision
Definition: TestTRT_Alignment.h:57
TestTRT_Alignment::m_managerName
std::string m_managerName
Definition: TestTRT_Alignment.h:50
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
TestTRT_Alignment::compareEndStraws
void compareEndStraws(const Identifier &id)
Definition: TestTRT_Alignment.cxx:212
TestTRT_Alignment::addShiftModule
void addShiftModule(int bec, int phiMod, int layer, const Amg::Transform3D &transform)
Definition: TestTRT_Alignment.cxx:138
TestTRT_Alignment::m_idHelper
const TRT_ID * m_idHelper
Definition: TestTRT_Alignment.h:48
AthAlgorithm
Definition: AthAlgorithm.h:47
TestTRT_Alignment::execute
StatusCode execute()
Definition: TestTRT_Alignment.cxx:152
TestTRT_Alignment::addShiftTop
void addShiftTop(const Amg::Transform3D &transform)
Definition: TestTRT_Alignment.cxx:131
TestTRT_Alignment::m_errRot
double m_errRot
Definition: TestTRT_Alignment.h:54
TestTRT_Alignment::compareStraw
void compareStraw(const InDetDD::TRT_BaseElement *element, int straw)
Definition: TestTRT_Alignment.cxx:225
TestTRT_Alignment::m_errTrans
double m_errTrans
Definition: TestTRT_Alignment.h:55
TestTRT_Alignment::m_manager
const InDetDD::TRT_DetectorManager * m_manager
Definition: TestTRT_Alignment.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TestTRT_Alignment::TestTRT_Alignment
TestTRT_Alignment(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TestTRT_Alignment.cxx:40
TRT_ID
Definition: TRT_ID.h:84
InDetDD::TRT_DetectorManager
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Definition: TRT_DetectorManager.h:69
TestTRT_Alignment::testIdentity
bool testIdentity(const Amg::Transform3D &transform, double errRot=0, double errTrans=0)
Definition: TestTRT_Alignment.cxx:247
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
IOVSvcDefs.h
defines and typedefs for IOVSvc
InDetDD::TRT_BaseElement
Definition: TRT_BaseElement.h:57
TestTRT_Alignment::addShift
void addShift(int level, const Identifier &id, const Amg::Transform3D &transform)
Definition: TestTRT_Alignment.cxx:146