ATLAS Offline Software
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 
16 
19 
20 #include <string>
21 #include <iostream>
22 #include <fstream>
23 
24 namespace InDetDD {
25  class TRT_DetectorManager;
26 }
27 
28 class TRT_ID;
29 class SCT_ID;
30 class PixelID;
31 class Identifier;
32 
35 
36  public:
37  GetDetectorPositions (const std::string& name, ISvcLocator* pSvcLocator);
41 
42  private:
43 
45  void writePixelPositions();
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 };
GetDetectorPositions::m_PixelHelper
const PixelID * m_PixelHelper
Tools.
Definition: GetDetectorPositions.h:67
GetDetectorPositions::writeSimpleTRTPositions
void writeSimpleTRTPositions()
Writing the Simple (not all straws) TRT Positions.
Definition: GetDetectorPositions.cxx:251
GetDetectorPositions::writePixelPositions
void writePixelPositions()
Functions to get the data.
Definition: GetDetectorPositions.cxx:138
GetDetectorPositions::finalize
StatusCode finalize()
Finalize.
Definition: GetDetectorPositions.cxx:128
GetDetectorPositions::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Pixel Data.
Definition: GetDetectorPositions.h:61
GetDetectorPositions::writeSCTPositions
void writeSCTPositions()
Writing the SCT Positions.
Definition: GetDetectorPositions.cxx:182
GetDetectorPositions::writeTRTPositions
void writeTRTPositions()
Writing the TRT positions (depends on the level of detail)
Definition: GetDetectorPositions.cxx:224
GetDetectorPositions::writeTwoTRTPositions
void writeTwoTRTPositions(Identifier const &trtId)
Write the TRT Positions, sampling each straw twice Allows the wire-by-wire alignment to be debugged.
Definition: GetDetectorPositions.cxx:331
GetDetectorPositions::writeDetailedTRTPositions
void writeDetailedTRTPositions(bool doDoubleSampling=false)
Writing the Detailed (all straws) TRT Positions.
Definition: GetDetectorPositions.cxx:267
GetDetectorPositions::m_outputFileName
std::string m_outputFileName
Definition: GetDetectorPositions.h:57
GetDetectorPositions.name
name
Definition: GetDetectorPositions.py:11
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GetDetectorPositions::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SCT Data.
Definition: GetDetectorPositions.h:64
GetDetectorPositions::m_SCTHelper
const SCT_ID * m_SCTHelper
Definition: GetDetectorPositions.h:69
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
SiDetectorElementCollection.h
GetDetectorPositions::m_TRTDetectorManager
const InDetDD::TRT_DetectorManager * m_TRTDetectorManager
Definition: GetDetectorPositions.h:72
GetDetectorPositions::execute
StatusCode execute()
execute
Definition: GetDetectorPositions.cxx:99
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
SCT_ID
Definition: SCT_ID.h:68
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
GetDetectorPositions::m_TRTHelper
const TRT_ID * m_TRTHelper
Definition: GetDetectorPositions.h:71
GetDetectorPositions::GetDetectorPositions
GetDetectorPositions(const std::string &name, ISvcLocator *pSvcLocator)
Authors: John Alison johnda@hep.upenn.edu
Definition: GetDetectorPositions.cxx:40
GetDetectorPositions::m_eventCount
int m_eventCount
Counter.
Definition: GetDetectorPositions.h:75
PixelID
Definition: PixelID.h:67
GetDetectorPositions
Definition: GetDetectorPositions.py:1
GetDetectorPositions::initialize
StatusCode initialize()
initialize
Definition: GetDetectorPositions.cxx:59
GetDetectorPositions::m_outputFile
std::ofstream m_outputFile
Definition: GetDetectorPositions.h:58
GetDetectorPositions::m_doTRT
bool m_doTRT
Definition: GetDetectorPositions.h:56
GetDetectorPositions::m_detailLevel
unsigned int m_detailLevel
Name of the Output file.
Definition: GetDetectorPositions.h:55
Identifier
Definition: IdentifierFieldParser.cxx:14