ATLAS Offline Software
Loading...
Searching...
No Matches
GetDetectorPositions.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
14
16
19
20#include <string>
21#include <fstream>
22
23namespace InDetDD {
25}
26
27class TRT_ID;
28class SCT_ID;
29class PixelID;
30class Identifier;
31
34
35 public:
36 GetDetectorPositions (const std::string& name, ISvcLocator* pSvcLocator);
37 StatusCode initialize();
38 StatusCode execute(const EventContext& ctx);
39 StatusCode finalize();
40
41 private:
42
45 void writeSCTPositions();
46 void writeTRTPositions();
47
49 void writeDetailedTRTPositions(bool doDoubleSampling=false);
50 void writeTRTPositions(Identifier const& trtId);
51 void writeTwoTRTPositions(Identifier const& trtId);
52
54 unsigned int m_detailLevel;
55 bool m_doTRT;
56 std::string m_outputFileName;
57 std::ofstream m_outputFile;
58
60 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey{this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
61
63 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
64
67
69
72
74 int m_eventCount{-1};
75
76};
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
void writeTRTPositions()
Writing the TRT positions (depends on the level of detail).
void writeTwoTRTPositions(Identifier const &trtId)
Write the TRT Positions, sampling each straw twice Allows the wire-by-wire alignment to be debugged.
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Pixel Data.
StatusCode execute(const EventContext &ctx)
execute
const PixelID * m_PixelHelper
Tools.
void writePixelPositions()
Functions to get the data.
void writeSimpleTRTPositions()
Writing the Simple (not all straws) TRT Positions.
unsigned int m_detailLevel
Name of the Output file.
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SCT Data.
void writeDetailedTRTPositions(bool doDoubleSampling=false)
Writing the Detailed (all straws) TRT Positions.
void writeSCTPositions()
Writing the SCT Positions.
StatusCode finalize()
Finalize.
const InDetDD::TRT_DetectorManager * m_TRTDetectorManager
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 Pixel subdetector.
Definition PixelID.h:69
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:84
Message Stream Member.
void initialize()