ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
16
21
22#include "CLHEP/Geometry/Transform3D.h"
23
24#include <string>
25#include <iostream>
26#include <fstream>
27
28namespace InDetDD {
30}
31
32class TRT_ID;
33class Identifier;
34
37
38 public:
39 GetDetectorLocalFrames (const std::string& name, ISvcLocator* pSvcLocator);
40 StatusCode initialize();
41 StatusCode execute();
42 StatusCode finalize();
43
44 private:
45
47 void writePixelFames();
48 void writeSCTFrames();
49 void writeTRTFrames();
50 void writeTransForm(const HepGeom::Transform3D& transform);
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};
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Pixel Data.
const InDetDD::TRT_DetectorManager * m_TRTDetectorManager
const TRT_ID * m_TRTHelper
Tools.
void writeVector(const std::string &name, const Amg::Vector3D &vector)
void writeSCTFrames()
Writing the SCT Positions.
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SCT Data.
void writeTRTFrames()
Writing the Detailed (all straws) TRT Positions.
std::string m_outputFileName
Name of the Output file.
void writePixelFames()
Functions to write the data.
void writeTransForm(const HepGeom::Transform3D &transform)
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82
Eigen::Matrix< double, 3, 1 > Vector3D
Message Stream Member.
void initialize()