ATLAS Offline Software
PrintSiElements.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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 
21 class PrintSiElements : public AthAlgorithm {
22 public:
23  PrintSiElements (const std::string& name, ISvcLocator* pSvcLocator);
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 
33 private:
34  std::ofstream m_fileout;
36  // Alg properties
38  bool m_expandId;
39  bool m_nominal;
40  bool m_aligned;
42  std::string m_outputFileName;
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
PrintSiElements::m_ITkStripDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_ITkStripDetEleCollKey
Definition: PrintSiElements.h:47
PrintSiElements::m_fileout
std::ofstream m_fileout
Definition: PrintSiElements.h:34
PrintSiElements::printElements
StatusCode printElements(const std::string &managerName)
Definition: PrintSiElements.cxx:77
PrintSiElements::m_outputFileName
std::string m_outputFileName
Definition: PrintSiElements.h:42
PrintSiElements::m_nominal
bool m_nominal
Definition: PrintSiElements.h:39
PrintSiElements::initialize
StatusCode initialize()
Definition: PrintSiElements.cxx:51
AthAlgorithm.h
GeoPrimitives.h
PrintSiElements::extractAlphaBetaGamma
void extractAlphaBetaGamma(const Amg::Transform3D &trans, double &alpha, double &beta, double &gamma) const
Definition: PrintSiElements.cxx:222
PrintSiElements::PrintSiElements
PrintSiElements(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PrintSiElements.cxx:32
TrigVtx::gamma
@ gamma
Definition: TrigParticleTable.h:26
PrintSiElements::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Definition: PrintSiElements.h:44
PrintSiElements::m_ITkPixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_ITkPixelDetEleCollKey
Definition: PrintSiElements.h:46
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
PrintSiElements::m_aligned
bool m_aligned
Definition: PrintSiElements.h:40
AthAlgorithm
Definition: AthAlgorithm.h:47
PrintSiElements::m_modulesOnly
bool m_modulesOnly
Definition: PrintSiElements.h:37
ReadCondHandleKey.h
PrintSiElements::finalize
StatusCode finalize()
Definition: PrintSiElements.cxx:194
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SiDetectorElementCollection.h
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
PrintSiElements::m_firstEvent
bool m_firstEvent
Definition: PrintSiElements.h:35
PrintSiElements::execute
StatusCode execute()
Definition: PrintSiElements.cxx:183
PrintSiElements::printTransform
std::string printTransform(const Amg::Transform3D &trans) const
Definition: PrintSiElements.cxx:201
PrintSiElements::m_detManagerNames
std::vector< std::string > m_detManagerNames
Definition: PrintSiElements.h:48
PrintSiElements::m_geoModelSvc
ServiceHandle< IGeoModelSvc > m_geoModelSvc
Definition: PrintSiElements.h:43
PrintSiElements::m_fullRotationMatrix
bool m_fullRotationMatrix
Definition: PrintSiElements.h:41
PrintSiElements::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition: PrintSiElements.h:45
MuonParameters::beta
@ beta
Definition: MuonParamDefs.h:144
IGeoModelSvc.h
PrintSiElements
Definition: PrintSiElements.h:21
PrintSiElements::m_expandId
bool m_expandId
Definition: PrintSiElements.h:38
ServiceHandle< IGeoModelSvc >