ATLAS Offline Software
GetDetectorLocalFrames.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
16 
21 
22 #include "CLHEP/Geometry/Transform3D.h"
23 
24 #include <string>
25 #include <iostream>
26 #include <fstream>
27 
28 namespace InDetDD {
29  class TRT_DetectorManager;
30 }
31 
32 class TRT_ID;
33 class Identifier;
34 
37 
38  public:
39  GetDetectorLocalFrames (const std::string& name, ISvcLocator* pSvcLocator);
43 
44  private:
45 
47  void writePixelFames();
48  void writeSCTFrames();
49  void writeTRTFrames();
51  void writeVector(const std::string& name, const Amg::Vector3D& vector);
52 
54  std::string m_outputFileName;
55  std::ofstream m_outputFile;
56 
58  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey{this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
59 
61  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
62 
69 
73 
75  int m_eventCount{-1};
76 
77 };
GetDetectorLocalFrames::execute
StatusCode execute()
execute
Definition: GetDetectorLocalFrames.cxx:89
GetDetectorLocalFrames
Definition: GetDetectorLocalFrames.py:1
GetDetectorLocalFrames::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Pixel Data.
Definition: GetDetectorLocalFrames.h:58
GetDetectorLocalFrames::finalize
StatusCode finalize()
Finalize.
Definition: GetDetectorLocalFrames.cxx:117
GetDetectorLocalFrames::writeSCTFrames
void writeSCTFrames()
Writing the SCT Positions.
Definition: GetDetectorLocalFrames.cxx:146
GetDetectorLocalFrames.name
name
Definition: GetDetectorLocalFrames.py:11
GetDetectorLocalFrames::m_trt_layer_or_wheel
int m_trt_layer_or_wheel
Definition: GetDetectorLocalFrames.h:65
AthAlgorithm.h
GeoPrimitives.h
GetDetectorLocalFrames::m_trt_phi_module
int m_trt_phi_module
Definition: GetDetectorLocalFrames.h:66
GetDetectorLocalFrames::m_trt_straw
int m_trt_straw
Definition: GetDetectorLocalFrames.h:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
vector
Definition: MultiHisto.h:13
GetDetectorLocalFrames::m_trt_barrel_ec
int m_trt_barrel_ec
TRT Data.
Definition: GetDetectorLocalFrames.h:64
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
GetDetectorLocalFrames::m_outputFileName
std::string m_outputFileName
Name of the Output file.
Definition: GetDetectorLocalFrames.h:54
GetDetectorLocalFrames::writeTransForm
void writeTransForm(const HepGeom::Transform3D &transform)
Definition: GetDetectorLocalFrames.cxx:231
GetDetectorLocalFrames::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SCT Data.
Definition: GetDetectorLocalFrames.h:61
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
EventPrimitives.h
GetDetectorLocalFrames::m_TRTHelper
const TRT_ID * m_TRTHelper
Tools.
Definition: GetDetectorLocalFrames.h:71
SiDetectorElementCollection.h
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
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
GetDetectorLocalFrames::writeVector
void writeVector(const std::string &name, const Amg::Vector3D &vector)
Definition: GetDetectorLocalFrames.cxx:222
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
GetDetectorLocalFrames::initialize
StatusCode initialize()
initialize
Definition: GetDetectorLocalFrames.cxx:61
GetDetectorLocalFrames::m_trt_straw_layer
int m_trt_straw_layer
Definition: GetDetectorLocalFrames.h:67
GetDetectorLocalFrames::GetDetectorLocalFrames
GetDetectorLocalFrames(const std::string &name, ISvcLocator *pSvcLocator)
Authors: John Alison johnda@hep.upenn.edu
Definition: GetDetectorLocalFrames.cxx:37
GetDetectorLocalFrames::writePixelFames
void writePixelFames()
Functions to write the data.
Definition: GetDetectorLocalFrames.cxx:127
GetDetectorLocalFrames::m_outputFile
std::ofstream m_outputFile
Definition: GetDetectorLocalFrames.h:55
GetDetectorLocalFrames::m_TRTDetectorManager
const InDetDD::TRT_DetectorManager * m_TRTDetectorManager
Definition: GetDetectorLocalFrames.h:72
GetDetectorLocalFrames::writeTRTFrames
void writeTRTFrames()
Writing the Detailed (all straws) TRT Positions.
Definition: GetDetectorLocalFrames.cxx:165
GetDetectorLocalFrames::m_eventCount
int m_eventCount
Counter.
Definition: GetDetectorLocalFrames.h:75
Identifier
Definition: IdentifierFieldParser.cxx:14