ATLAS Offline Software
PRDHandle_SCT.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_SCT_H
6 #define PRDHANDLE_SCT_H
7 
10 
11 class PRDCollHandle_SCT;
12 
13 class PRDHandle_SCT : public PRDHandleBase {
14 public:
15 
17  virtual ~PRDHandle_SCT() {};
18 
19  void buildShapes(SoNode*&shape_simple, SoNode*&shape_detailed);
20  int regionIndex();
21 
22  const InDet::SCT_Cluster * cluster() const { return m_cluster; }
23  const Trk::PrepRawData * getPRD() const { return m_cluster; }
24  bool isBarrel() const { return m_cluster->detectorElement()->isBarrel(); }
25  bool isPositiveZ() const { return m_cluster->detectorElement()->center().z() > 0.0; }
26 
27 private:
29 
30 };
31 
32 #endif
PRDCollHandle_SCT
Definition: PRDCollHandle_SCT.h:11
PRDHandle_SCT::PRDHandle_SCT
PRDHandle_SCT(PRDCollHandle_SCT *, const InDet::SCT_Cluster *)
Definition: PRDHandle_SCT.cxx:20
InDetDD::SolidStateDetectorElementBase::center
virtual const Amg::Vector3D & center() const override final
Center in global coordinates.
PRDHandle_SCT::buildShapes
void buildShapes(SoNode *&shape_simple, SoNode *&shape_detailed)
Definition: PRDHandle_SCT.cxx:27
PRDHandle_SCT::getPRD
const Trk::PrepRawData * getPRD() const
Definition: PRDHandle_SCT.h:23
SCT_Cluster.h
PRDHandle_SCT::isPositiveZ
bool isPositiveZ() const
Definition: PRDHandle_SCT.h:25
PRDHandle_SCT::regionIndex
int regionIndex()
Definition: PRDHandle_SCT.cxx:96
InDet::SCT_Cluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SCT_Cluster.h:34
PRDHandle_SCT::isBarrel
bool isBarrel() const
Definition: PRDHandle_SCT.h:24
InDet::SiCluster::detectorElement
virtual const InDetDD::SiDetectorElement * detectorElement() const override final
return the detector element corresponding to this PRD The pointer will be zero if the det el is not d...
Trk::PrepRawData
Definition: PrepRawData.h:62
PRDHandle_SCT::~PRDHandle_SCT
virtual ~PRDHandle_SCT()
Definition: PRDHandle_SCT.h:17
InDetDD::SiDetectorElement::isBarrel
bool isBarrel() const
PRDHandle_SCT::m_cluster
const InDet::SCT_Cluster * m_cluster
Definition: PRDHandle_SCT.h:28
PRDHandle_SCT::cluster
const InDet::SCT_Cluster * cluster() const
Definition: PRDHandle_SCT.h:22
PRDHandleBase
Definition: PRDHandleBase.h:35
PRDHandleBase.h
PRDHandle_SCT
Definition: PRDHandle_SCT.h:13