ATLAS Offline Software
Loading...
Searching...
No Matches
ReadSiDetectorElements.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef InDetDetDescrExample_ReadSiDetectorElements_h
6#define InDetDetDescrExample_ReadSiDetectorElements_h
7
9#include "GaudiKernel/ServiceHandle.h"
10#include "GaudiKernel/ToolHandle.h"
18
19#include <vector>
20
21class Identifier;
22
23namespace InDetDD{
26}
27
28class AtlasDetectorID;
29class PixelID;
30class SCT_ID;
31
33
35public:
36 ReadSiDetectorElements (const std::string& name, ISvcLocator* pSvcLocator);
37 StatusCode initialize();
38 StatusCode execute();
39 StatusCode finalize();
40
41 void testElement(const Identifier & id,
42 const std::vector<InDetDD::SiCellId> & cellIdVec,
43 const std::vector<Amg::Vector2D> & positionsVec,
44 const InDetDD::SiDetectorElementCollection* elements=nullptr) const;
45 std::string printElementId(const InDetDD::SiDetectorElement * element) const;
46 void printAllElements(const bool accessDuringInitialization);
47 void printRandomAccess(const bool accessDuringInitialization);
48 void printDifference() const;
49
50 private:
51 // Job properties
52 std::string m_managerName;
57 ToolHandle<ISiliconConditionsTool> m_siConditionsTool{this, "SiConditionsTool", "SCT_SiliconConditionsTool", "Silicon conditions tool"};
58 ToolHandle<ISiLorentzAngleTool> m_siLorentzAngleTool{this, "SiLorentzAngleTool", "SiLorentzAngleTool", "Silicon Lorentz anglet tool"};
59
60 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_detEleCollKey{this, "DetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection"};
61
62 // Other
67
68 bool m_first;
72
73};
74
75#endif // InDetDetDescrExample_ReadSiDetectorElements_h
defines and typedefs for IOVSvc
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Class to hold the SiDetectorElement objects to be put in the detector store.
Class to hold geometrical description of a silicon detector element.
Base class for Pixel and SCT Detector managers.
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:67
ReadSiDetectorElements(const std::string &name, ISvcLocator *pSvcLocator)
const InDetDD::SiDetectorManager * m_manager
ToolHandle< ISiLorentzAngleTool > m_siLorentzAngleTool
ToolHandle< ISiliconConditionsTool > m_siConditionsTool
void printRandomAccess(const bool accessDuringInitialization)
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_detEleCollKey
const AtlasDetectorID * m_idHelper
void testElement(const Identifier &id, const std::vector< InDetDD::SiCellId > &cellIdVec, const std::vector< Amg::Vector2D > &positionsVec, const InDetDD::SiDetectorElementCollection *elements=nullptr) const
std::string printElementId(const InDetDD::SiDetectorElement *element) const
void printAllElements(const bool accessDuringInitialization)
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Message Stream Member.