ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
SimHitHandle_SiHit::Imp Class Reference
Collaboration diagram for SimHitHandle_SiHit::Imp:

Public Member Functions

 Imp (const SiHit *h)
 
bool ensureDetElemInit () const
 
Amg::Vector3D localToGlobal (const HepGeom::Point3D< double > &) const
 

Public Attributes

const SiHitthehit
 
const InDetDD::SiDetectorElementdetelem
 

Detailed Description

Definition at line 29 of file SimHitHandle_SiHit.cxx.

Constructor & Destructor Documentation

◆ Imp()

SimHitHandle_SiHit::Imp::Imp ( const SiHit h)
inline

Definition at line 31 of file SimHitHandle_SiHit.cxx.

31 : thehit(h),detelem(nullptr) {}

Member Function Documentation

◆ ensureDetElemInit()

bool SimHitHandle_SiHit::Imp::ensureDetElemInit ( ) const

Definition at line 54 of file SimHitHandle_SiHit.cxx.

55 {
56  if (detelem)
57  return true;
58  int Barrel = thehit->getBarrelEndcap();
59  //Not needed anymore and spoils stuff for slhc studies: if (Barrel== 1) Barrel = -2;//Found this hack in GeoSiHit.
60 
61  if (thehit->isPixel()) {
65  thehit->getEtaModule() );
66  //fixme: id is_valid ?
68  } else {
73  thehit->getSide() );
74  //fixme: id is_valid ?
76  }
77  //Fixme : Handle case where detelem can not be found gracefully. And check pointers from VP1DetInfo!!
78  if (!detelem)
79  VP1Msg::messageDebug("SimHitHandle_SiHit ERROR: Could not get detector element for hit!");
80  return detelem!=nullptr;
81 }

◆ localToGlobal()

Amg::Vector3D SimHitHandle_SiHit::Imp::localToGlobal ( const HepGeom::Point3D< double > &  local) const

Definition at line 93 of file SimHitHandle_SiHit.cxx.

94 {
95  if (!ensureDetElemInit())
96  return Amg::Vector3D(0,0,0);
98 }

Member Data Documentation

◆ detelem

const InDetDD::SiDetectorElement* SimHitHandle_SiHit::Imp::detelem
mutable

Definition at line 33 of file SimHitHandle_SiHit.cxx.

◆ thehit

const SiHit* SimHitHandle_SiHit::Imp::thehit

Definition at line 32 of file SimHitHandle_SiHit.cxx.


The documentation for this class was generated from the following file:
SimHitHandle_SiHit::Imp::ensureDetElemInit
bool ensureDetElemInit() const
Definition: SimHitHandle_SiHit.cxx:54
SiHit::getLayerDisk
int getLayerDisk() const
Definition: SiHit.cxx:164
VP1DetInfo::pixelDetMgr
static const InDetDD::PixelDetectorManager * pixelDetMgr()
Definition: VP1DetInfo.cxx:145
SiHit::getPhiModule
int getPhiModule() const
Definition: SiHit.cxx:172
VP1DetInfo::pixelIDHelper
static const PixelID * pixelIDHelper()
Definition: VP1DetInfo.cxx:164
InDetDD::SCT_DetectorManager::getDetectorElement
virtual SiDetectorElement * getDetectorElement(const Identifier &id) const override
access to individual elements via Identifier
Definition: SCT_DetectorManager.cxx:64
PixelID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition: PixelID.h:364
DetType::Barrel
@ Barrel
Definition: DetType.h:14
SimHitHandle_SiHit::Imp::thehit
const SiHit * thehit
Definition: SimHitHandle_SiHit.cxx:32
SiHit::getEtaModule
int getEtaModule() const
Definition: SiHit.cxx:168
SiHit::getBarrelEndcap
int getBarrelEndcap() const
Definition: SiHit.cxx:160
InDetDD::local
@ local
Definition: InDetDD_Defs.h:16
SiHit::getSide
int getSide() const
Definition: SiHit.cxx:176
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
VP1DetInfo::sctIDHelper
static const SCT_ID * sctIDHelper()
Definition: VP1DetInfo.cxx:165
VP1Msg::messageDebug
static void messageDebug(const QString &)
Definition: VP1Msg.cxx:39
h
SiHit::isPixel
bool isPixel() const
Definition: SiHit.cxx:130
Amg::EigenTransformToCLHEP
HepGeom::Transform3D EigenTransformToCLHEP(const Amg::Transform3D &eigenTransf)
Converts an Eigen-based Amg::Transform3D into a CLHEP-based HepGeom::Transform3D.
Definition: CLHEPtoEigenConverter.h:120
SimHitHandle_SiHit::Imp::detelem
const InDetDD::SiDetectorElement * detelem
Definition: SimHitHandle_SiHit.cxx:33
SCT_ID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Definition: SCT_ID.h:464
InDetDD::SolidStateDetectorElementBase::transformHit
const GeoTrf::Transform3D & transformHit() const
Local (simulation/hit frame) to global transform.
InDetDD::PixelDetectorManager::getDetectorElement
virtual SiDetectorElement * getDetectorElement(const Identifier &id) const override
access to individual elements : via Identifier
Definition: PixelDetectorManager.cxx:80
VP1DetInfo::sctDetMgr
static const InDetDD::SCT_DetectorManager * sctDetMgr()
Definition: VP1DetInfo.cxx:146
Identifier
Definition: IdentifierFieldParser.cxx:14