ATLAS Offline Software
Loading...
Searching...
No Matches
GetDetectorPositions.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
14
16
19
20#include <string>
21#include <iostream>
22#include <fstream>
23
24namespace InDetDD {
26}
27
28class TRT_ID;
29class SCT_ID;
30class PixelID;
31class Identifier;
32
35
36 public:
37 GetDetectorPositions (const std::string& name, ISvcLocator* pSvcLocator);
38 StatusCode initialize();
39 StatusCode execute();
40 StatusCode finalize();
41
42 private:
43
46 void writeSCTPositions();
47 void writeTRTPositions();
48
50 void writeDetailedTRTPositions(bool doDoubleSampling=false);
51 void writeTRTPositions(Identifier const& trtId);
52 void writeTwoTRTPositions(Identifier const& trtId);
53
55 unsigned int m_detailLevel;
56 bool m_doTRT;
57 std::string m_outputFileName;
58 std::ofstream m_outputFile;
59
61 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey{this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
62
64 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
65
68
70
73
75 int m_eventCount{-1};
76
77};
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
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.
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.
StatusCode execute()
execute
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:67
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:82
Message Stream Member.
void initialize()