LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "OpDetLookup.h"
Public Member Functions | |
void | AddPhysicalVolume (G4VPhysicalVolume *) |
int | GetOpDet (G4VPhysicalVolume const *) |
int | GetOpDet (std::string const &) |
int | GetN () const |
int | FindClosestOpDet (G4VPhysicalVolume *vol, double &Distance) |
Static Public Member Functions | |
static OpDetLookup * | Instance () |
Private Member Functions | |
OpDetLookup () | |
Private Attributes | |
std::map< std::string, int > | fTheOpDetMap |
int | fTheTopOpDet |
Definition at line 44 of file OpDetLookup.h.
|
private |
void larg4::OpDetLookup::AddPhysicalVolume | ( | G4VPhysicalVolume * | volume | ) |
Definition at line 83 of file OpDetLookup.cxx.
References FindClosestOpDet(), and fTheOpDetMap.
Referenced by larg4::OpDetReadoutGeometry::Construct().
int larg4::OpDetLookup::FindClosestOpDet | ( | G4VPhysicalVolume * | vol, |
double & | Distance | ||
) |
Definition at line 51 of file OpDetLookup.cxx.
References geo::OpDetGeo::GetCenter(), geo::GeometryCore::NOpDets(), and geo::GeometryCore::OpDetGeoFromOpDet().
Referenced by AddPhysicalVolume().
int larg4::OpDetLookup::GetN | ( | ) | const |
int larg4::OpDetLookup::GetOpDet | ( | G4VPhysicalVolume const * | TheVolume | ) |
Definition at line 44 of file OpDetLookup.cxx.
Referenced by larg4::OpDetSensitiveDetector::ProcessHits().
int larg4::OpDetLookup::GetOpDet | ( | std::string const & | TheName | ) |
Definition at line 38 of file OpDetLookup.cxx.
References fTheOpDetMap.
|
static |
Definition at line 31 of file OpDetLookup.cxx.
References OpDetLookup(), and larg4::TheOpDetLookup.
Referenced by larg4::OpDetReadoutGeometry::Construct(), and larg4::OpDetSensitiveDetector::OpDetSensitiveDetector().
|
private |
Definition at line 57 of file OpDetLookup.h.
Referenced by AddPhysicalVolume(), and GetOpDet().
|
private |
Definition at line 58 of file OpDetLookup.h.
Referenced by GetN(), and OpDetLookup().