ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetExample
InDetDetDescrExample
InDetDetDescrExample
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
14
#include "
AthenaBaseComps/AthAlgorithm.h
"
15
#include "GaudiKernel/ServiceHandle.h"
16
#include "
GeoPrimitives/GeoPrimitives.h
"
17
18
19
#include <string>
20
21
class
Identifier
;
22
23
namespace
InDetDD
{
24
class
TRT_DetectorManager
;
25
class
TRT_BaseElement
;
26
class
TRT_BarrelElement
;
27
class
TRT_EndcapElement
;
28
}
29
30
class
TRT_ID
;
31
37
38
class
ReadTRT_DetectorElements
:
public
AthAlgorithm
{
39
public
:
41
ReadTRT_DetectorElements
(
const
std::string& name, ISvcLocator* pSvcLocator);
42
//@name Athena Algorithm methods
44
StatusCode
initialize
();
45
StatusCode
execute
(
const
EventContext& ctx);
46
StatusCode
finalize
();
48
49
void
printAllElements
();
50
51
void
printBarrelStraw
(
const
InDetDD::TRT_BarrelElement
* element,
const
unsigned
int
strawNum);
52
void
printEndcapStraw
(
const
InDetDD::TRT_EndcapElement
* element,
const
unsigned
int
strawNum);
53
void
printStraw
(
const
InDetDD::TRT_BaseElement
* element,
const
unsigned
int
strawNum);
54
55
void
compareBarrelStraw
(
const
InDetDD::TRT_BarrelElement
* element,
const
unsigned
int
strawNum);
56
void
compareEndcapStraw
(
const
InDetDD::TRT_EndcapElement
* element,
const
unsigned
int
strawNum);
57
bool
comparePos
(
const
Amg::Vector3D
& p1,
const
Amg::Vector3D
& p2,
const
double
err);
58
59
private
:
60
std::string
m_managerName
;
61
bool
m_doInit
;
62
bool
m_doExec
;
63
64
const
InDetDD::TRT_DetectorManager
*
m_manager
;
65
const
TRT_ID
*
m_idHelper
;
66
67
double
m_maxdiff
;
68
bool
m_first
;
69
};
70
71
#endif
// InDetDetDescrExample_ReadTRT_DetectorElements_h
AthAlgorithm.h
GeoPrimitives.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
InDetDD::TRT_BarrelElement
Extended TRT_BaseElement to describe a TRT readout element, this is a planar layer with n ( order of ...
Definition
TRT_BarrelElement.h:43
InDetDD::TRT_BaseElement
Virtual base class of TRT readout elements.
Definition
TRT_BaseElement.h:56
InDetDD::TRT_DetectorManager
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Definition
TRT_DetectorManager.h:63
InDetDD::TRT_EndcapElement
Extended class of a TRT_BaseElement to describe a readout elment in the endcap.
Definition
TRT_EndcapElement.h:43
ReadTRT_DetectorElements::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
ReadTRT_DetectorElements.cxx:70
ReadTRT_DetectorElements::printStraw
void printStraw(const InDetDD::TRT_BaseElement *element, const unsigned int strawNum)
Definition
ReadTRT_DetectorElements.cxx:330
ReadTRT_DetectorElements::printBarrelStraw
void printBarrelStraw(const InDetDD::TRT_BarrelElement *element, const unsigned int strawNum)
Definition
ReadTRT_DetectorElements.cxx:277
ReadTRT_DetectorElements::m_doInit
bool m_doInit
Definition
ReadTRT_DetectorElements.h:61
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:62
ReadTRT_DetectorElements::compareEndcapStraw
void compareEndcapStraw(const InDetDD::TRT_EndcapElement *element, const unsigned int strawNum)
Definition
ReadTRT_DetectorElements.cxx:372
ReadTRT_DetectorElements::m_manager
const InDetDD::TRT_DetectorManager * m_manager
Definition
ReadTRT_DetectorElements.h:64
ReadTRT_DetectorElements::initialize
StatusCode initialize()
Definition
ReadTRT_DetectorElements.cxx:49
ReadTRT_DetectorElements::finalize
StatusCode finalize()
Definition
ReadTRT_DetectorElements.cxx:270
ReadTRT_DetectorElements::m_maxdiff
double m_maxdiff
Definition
ReadTRT_DetectorElements.h:67
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
ReadTRT_DetectorElements::compareBarrelStraw
void compareBarrelStraw(const InDetDD::TRT_BarrelElement *element, const unsigned int strawNum)
Definition
ReadTRT_DetectorElements.cxx:351
ReadTRT_DetectorElements::m_first
bool m_first
Definition
ReadTRT_DetectorElements.h:68
ReadTRT_DetectorElements::m_managerName
std::string m_managerName
Definition
ReadTRT_DetectorElements.h:60
ReadTRT_DetectorElements::printEndcapStraw
void printEndcapStraw(const InDetDD::TRT_EndcapElement *element, const unsigned int strawNum)
Definition
ReadTRT_DetectorElements.cxx:302
ReadTRT_DetectorElements::m_idHelper
const TRT_ID * m_idHelper
Definition
ReadTRT_DetectorElements.h:65
TRT_ID
This is an Identifier helper class for the TRT subdetector.
Definition
TRT_ID.h:84
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
Identifier
Definition
IdentifierFieldParser.cxx:14
InDetDD
Message Stream Member.
Definition
FakeTrackBuilder.h:8
Generated on
for ATLAS Offline Software by
1.17.0