ATLAS Offline Software
ReadTRT_DetectorElements.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #ifndef InDetDetDescrExample_ReadTRT_DetectorElements_h
12 #define InDetDetDescrExample_ReadTRT_DetectorElements_h
13 
15 #include "GaudiKernel/ServiceHandle.h"
18 
19 
20 #include <string>
21 
22 class Identifier;
23 
24 namespace InDetDD{
25  class TRT_DetectorManager;
26  class TRT_BaseElement;
27  class TRT_BarrelElement;
28  class TRT_EndcapElement;
29 }
30 
31 class TRT_ID;
32 
40 public:
42  ReadTRT_DetectorElements (const std::string& name, ISvcLocator* pSvcLocator);
43  //@name Athena Algorithm methods
49 
50  void printAllElements();
51 
52  void printBarrelStraw(const InDetDD::TRT_BarrelElement * element, const unsigned int strawNum);
53  void printEndcapStraw(const InDetDD::TRT_EndcapElement * element, const unsigned int strawNum);
54  void printStraw(const InDetDD::TRT_BaseElement * element, const unsigned int strawNum);
55 
56  void compareBarrelStraw(const InDetDD::TRT_BarrelElement * element, const unsigned int strawNum);
57  void compareEndcapStraw(const InDetDD::TRT_EndcapElement * element, const unsigned int strawNum);
58  bool comparePos(const Amg::Vector3D & p1, const Amg::Vector3D & p2, const double err);
59 
60 private:
61  std::string m_managerName;
62  bool m_doInit;
63  bool m_doExec;
64 
66  const TRT_ID * m_idHelper;
67 
68  double m_maxdiff;
69  bool m_first;
70 };
71 
72 #endif // InDetDetDescrExample_ReadTRT_DetectorElements_h
InDetDD::TRT_BarrelElement
Definition: TRT_BarrelElement.h:44
ReadTRT_DetectorElements::printAllElements
void printAllElements()
Definition: ReadTRT_DetectorElements.cxx:80
ReadTRT_DetectorElements::comparePos
bool comparePos(const Amg::Vector3D &p1, const Amg::Vector3D &p2, const double err)
Definition: ReadTRT_DetectorElements.cxx:395
InDetDD::TRT_EndcapElement
Definition: TRT_EndcapElement.h:44
ReadTRT_DetectorElements::m_manager
const InDetDD::TRT_DetectorManager * m_manager
Definition: ReadTRT_DetectorElements.h:65
ReadTRT_DetectorElements::m_maxdiff
double m_maxdiff
Definition: ReadTRT_DetectorElements.h:68
ReadTRT_DetectorElements::execute
StatusCode execute()
Definition: ReadTRT_DetectorElements.cxx:70
ReadTRT_DetectorElements::ReadTRT_DetectorElements
ReadTRT_DetectorElements(const std::string &name, ISvcLocator *pSvcLocator)
Default Algorithm constructor with parameters.
Definition: ReadTRT_DetectorElements.cxx:33
ReadTRT_DetectorElements::m_doExec
bool m_doExec
Definition: ReadTRT_DetectorElements.h:63
AthAlgorithm.h
GeoPrimitives.h
ReadTRT_DetectorElements::m_doInit
bool m_doInit
Definition: ReadTRT_DetectorElements.h:62
ReadTRT_DetectorElements::m_first
bool m_first
Definition: ReadTRT_DetectorElements.h:69
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:193
ReadTRT_DetectorElements::compareBarrelStraw
void compareBarrelStraw(const InDetDD::TRT_BarrelElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:351
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadTRT_DetectorElements::m_managerName
std::string m_managerName
Definition: ReadTRT_DetectorElements.h:61
ReadTRT_DetectorElements
Algorithm to demonstrate access to TRT detector elements, printing out parameters of specific straws.
Definition: ReadTRT_DetectorElements.h:39
ReadTRT_DetectorElements::printStraw
void printStraw(const InDetDD::TRT_BaseElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:330
ReadTRT_DetectorElements::printEndcapStraw
void printEndcapStraw(const InDetDD::TRT_EndcapElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:302
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadTRT_DetectorElements::printBarrelStraw
void printBarrelStraw(const InDetDD::TRT_BarrelElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:277
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
ReadTRT_DetectorElements::initialize
StatusCode initialize()
Definition: ReadTRT_DetectorElements.cxx:49
ReadTRT_DetectorElements::finalize
StatusCode finalize()
Definition: ReadTRT_DetectorElements.cxx:270
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
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
ReadTRT_DetectorElements::compareEndcapStraw
void compareEndcapStraw(const InDetDD::TRT_EndcapElement *element, const unsigned int strawNum)
Definition: ReadTRT_DetectorElements.cxx:372
IOVSvcDefs.h
defines and typedefs for IOVSvc
InDetDD::TRT_BaseElement
Definition: TRT_BaseElement.h:57
ReadTRT_DetectorElements::m_idHelper
const TRT_ID * m_idHelper
Definition: ReadTRT_DetectorElements.h:66