ATLAS Offline Software
PRDHandle_Pixel.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_PIXEL_H
6 #define PRDHANDLE_PIXEL_H
7 
10 
12 class SoGroup;
13 
15 public:
16 
18  virtual ~PRDHandle_Pixel() {};
19 
20  void buildShapes(SoNode*&shape_simple, SoNode*&shape_detailed);
21  int regionIndex();
22 
23  const InDet::PixelCluster * cluster() const { return m_cluster; }
24  const Trk::PrepRawData * getPRD() const { return m_cluster; }
25  bool isBarrel() const { return m_cluster->detectorElement()->isBarrel(); }
26  bool isPositiveZ() const { return m_cluster->detectorElement()->center().z() > 0.0; }
27  bool isSane() const;
28 
29 private:
31 
32  SoGroup* createErrorAtPixelCluster( const double& sigmaScale,
33  const int& numPoints ) const;
34 
35 
36 };
37 
38 #endif
PRDHandle_Pixel::isBarrel
bool isBarrel() const
Definition: PRDHandle_Pixel.h:25
PixelCluster.h
InDetDD::SolidStateDetectorElementBase::center
virtual const Amg::Vector3D & center() const override final
Center in global coordinates.
PRDHandle_Pixel::getPRD
const Trk::PrepRawData * getPRD() const
Definition: PRDHandle_Pixel.h:24
PRDHandle_Pixel::buildShapes
void buildShapes(SoNode *&shape_simple, SoNode *&shape_detailed)
Definition: PRDHandle_Pixel.cxx:30
PRDHandle_Pixel::regionIndex
int regionIndex()
Definition: PRDHandle_Pixel.cxx:130
PRDHandle_Pixel::createErrorAtPixelCluster
SoGroup * createErrorAtPixelCluster(const double &sigmaScale, const int &numPoints) const
Definition: PRDHandle_Pixel.cxx:140
PRDHandle_Pixel
Definition: PRDHandle_Pixel.h:14
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
InDetDD::SiDetectorElement::isBarrel
bool isBarrel() const
PRDHandle_Pixel::isSane
bool isSane() const
returns false if anything seems weird about the Pixelcluster
Definition: PRDHandle_Pixel.cxx:153
InDet::PixelCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:49
PRDCollHandle_Pixel
Definition: PRDCollHandle_Pixel.h:11
PRDHandle_Pixel::~PRDHandle_Pixel
virtual ~PRDHandle_Pixel()
Definition: PRDHandle_Pixel.h:18
PRDHandle_Pixel::PRDHandle_Pixel
PRDHandle_Pixel(PRDCollHandle_Pixel *, const InDet::PixelCluster *)
Definition: PRDHandle_Pixel.cxx:23
PRDHandle_Pixel::cluster
const InDet::PixelCluster * cluster() const
Definition: PRDHandle_Pixel.h:23
PRDHandleBase
Definition: PRDHandleBase.h:35
PRDHandle_Pixel::isPositiveZ
bool isPositiveZ() const
Definition: PRDHandle_Pixel.h:26
PRDHandle_Pixel::m_cluster
const InDet::PixelCluster * m_cluster
Definition: PRDHandle_Pixel.h:30
PRDHandleBase.h