ATLAS Offline Software
Loading...
Searching...
No Matches
PrintSiElements.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef InDetDetDescrExample_PrintSiElements_h
6#define InDetDetDescrExample_PrintSiElements_h
7
9
14
15#include "GaudiKernel/ServiceHandle.h"
16
17#include <fstream>
18
20
22public:
23 PrintSiElements (const std::string& name, ISvcLocator* pSvcLocator);
24 virtual StatusCode initialize() override;
25 virtual StatusCode execute() override;
26 virtual StatusCode finalize() override;
27
28 StatusCode printElements(const std::string & managerName);
29
30 std::string printTransform(const Amg::Transform3D & trans) const;
31 void extractAlphaBetaGamma(const Amg::Transform3D & trans, double& alpha, double& beta, double &gamma) const;
32
33private:
34 std::ofstream m_fileout;
36 // Alg properties
42 std::string m_outputFileName;
43 ServiceHandle<IGeoModelSvc> m_geoModelSvc{this, "GeoModelSvc", "GeoModelSvc"};
44 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey{this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
45 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
46 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_ITkPixelDetEleCollKey{this, "ITkPixelDetEleCollKey", "ITkPixelDetectorElementCollection", "Key of SiDetectorElementCollection for ITkPixel"};
47 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_ITkStripDetEleCollKey{this, "ITkStripDetEleCollKey", "ITkStripDetectorElementCollection", "Key of SiDetectorElementCollection for ITkStrip"};
48 std::vector<std::string> m_detManagerNames;
49};
50
51#endif // InDetDetDescrExample_PrintSiElements_h
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::ofstream m_fileout
std::string m_outputFileName
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
std::vector< std::string > m_detManagerNames
virtual StatusCode initialize() override
virtual StatusCode execute() override
std::string printTransform(const Amg::Transform3D &trans) const
void extractAlphaBetaGamma(const Amg::Transform3D &trans, double &alpha, double &beta, double &gamma) const
virtual StatusCode finalize() override
StatusCode printElements(const std::string &managerName)
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_ITkPixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_ITkStripDetEleCollKey
ServiceHandle< IGeoModelSvc > m_geoModelSvc
PrintSiElements(const std::string &name, ISvcLocator *pSvcLocator)
Eigen::Affine3d Transform3D