ATLAS Offline Software
PRDHandle_TRT.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PRDHANDLE_TRT_H
6 #define PRDHANDLE_TRT_H
7 
11 
12 class PRDHandle_TRT : public PRDHandleBase {
13 public:
14 
16  virtual ~PRDHandle_TRT() {};
17 
18  void buildShapes(SoNode*&shape_simple, SoNode*&shape_detailed);
19  int regionIndex();
20  inline bool highLight() const;
21 
22  bool transformUsesSurfacePositionOnly() const { return true; }
23 
24  const InDet::TRT_DriftCircle * driftCircle() const { return m_driftcircle; }
25  const Trk::PrepRawData * getPRD() const { return m_driftcircle; }
26 
28  bool isPositiveZ() const { return m_driftcircle->detectorElement()->center().z() > 0.0; }
29  bool highLevel() const { return m_driftcircle->highLevel(); }
30 
31  virtual QStringList clicked() const;
32 
33 
34 private:
36 
37 };
38 
40 // INLINES //
42 
43 inline bool PRDHandle_TRT::highLight() const
44 {
45  return highLevel() && static_cast<PRDCollHandle_TRT*>(collHandle())->highLightHighThreshold();
46 }
47 
48 
49 #endif
PRDCollHandle_TRT.h
PRDHandle_TRT
Definition: PRDHandle_TRT.h:12
PRDHandleBase::collHandle
PRDCollHandleBase * collHandle() const
Definition: PRDHandleBase.cxx:228
InDet::TRT_DriftCircle::detectorElement
virtual const InDetDD::TRT_BaseElement * detectorElement() const override final
return the detector element corresponding to this PRD
PRDHandle_TRT::regionIndex
int regionIndex()
Definition: PRDHandle_TRT.cxx:177
PRDHandle_TRT::buildShapes
void buildShapes(SoNode *&shape_simple, SoNode *&shape_detailed)
Definition: PRDHandle_TRT.cxx:30
PRDHandle_TRT::driftCircle
const InDet::TRT_DriftCircle * driftCircle() const
Definition: PRDHandle_TRT.h:24
InDet::TRT_DriftCircle
Definition: TRT_DriftCircle.h:32
PRDHandle_TRT::isBarrel
bool isBarrel() const
Definition: PRDHandle_TRT.h:27
PRDHandle_TRT::highLight
bool highLight() const
Definition: PRDHandle_TRT.h:43
InDetDD::TRT_BaseElement::BARREL
@ BARREL
Definition: TRT_BaseElement.h:61
InDetDD::TRT_BaseElement::type
virtual TRT_BaseElement::Type type() const =0
Type information: returns BARREL or ENDCAP.
PRDHandle_TRT::getPRD
const Trk::PrepRawData * getPRD() const
Definition: PRDHandle_TRT.h:25
PRDHandle_TRT::PRDHandle_TRT
PRDHandle_TRT(PRDCollHandle_TRT *, const InDet::TRT_DriftCircle *)
Definition: PRDHandle_TRT.cxx:24
TRT_DriftCircle.h
PRDHandle_TRT::isPositiveZ
bool isPositiveZ() const
Definition: PRDHandle_TRT.h:28
Trk::PrepRawData
Definition: PrepRawData.h:62
PRDHandle_TRT::clicked
virtual QStringList clicked() const
Definition: PRDHandle_TRT.cxx:188
PRDHandle_TRT::transformUsesSurfacePositionOnly
bool transformUsesSurfacePositionOnly() const
Definition: PRDHandle_TRT.h:22
PRDHandle_TRT::m_driftcircle
const InDet::TRT_DriftCircle * m_driftcircle
Definition: PRDHandle_TRT.h:35
InDet::TRT_DriftCircle::highLevel
bool highLevel() const
returns true if the high level threshold was passed
PRDHandle_TRT::~PRDHandle_TRT
virtual ~PRDHandle_TRT()
Definition: PRDHandle_TRT.h:16
InDetDD::TRT_BaseElement::center
virtual const Amg::Vector3D & center() const override final
Element Surface: center of a straw layer.
PRDHandle_TRT::highLevel
bool highLevel() const
Definition: PRDHandle_TRT.h:29
PRDHandleBase
Definition: PRDHandleBase.h:35
PRDHandleBase.h
PRDCollHandle_TRT
Definition: PRDCollHandle_TRT.h:12