![]() |
Project
|
#include <Geometry.h>
Public Types | |
enum | EGeoType { eUninitialized , eOnlySensitive , eRough , eFull } |
enum | EGeoComponent { eScintillator , ePlastics , ePmts , eFibers , eScrews , eRods , eContainer } |
Geometry components possible to be enabled/disabled. Only enabled components will be created. More... | |
Public Member Functions | |
Geometry () | |
Geometry (const Geometry &geometry) | |
Copy constructor. | |
~Geometry () | |
int | getCurrentCellId (const TVirtualMC *fMC) const |
const std::vector< std::string > & | getSensitiveVolumeNames () const |
bool | enableComponent (EGeoComponent component, bool enable=true) |
void | buildGeometry () const |
Build the geometry. | |
void | getGlobalPosition (float &x, float &y, float &z) |
Utility functions to be accessed externally. | |
Point3Dsimple & | getCellCenter (UInt_t cellId) |
Point3Dsimple & | getReadoutCenter (UInt_t cellId) |
bool | isRing5 (UInt_t cellId) |
TGeoPNEntry * | getPNEntry (int index) const |
Static Public Member Functions | |
static Geometry * | instance (EGeoType initType=eUninitialized) |
static constexpr int | getNumberOfReadoutChannels () |
static constexpr o2::detectors::DetID::ID | getDetID () |
static constexpr float | getPmtDensity () |
Get the density of the PMTs. | |
FV0 Geometry.
Definition at line 50 of file Geometry.h.
Geometry components possible to be enabled/disabled. Only enabled components will be created.
Enumerator | |
---|---|
eScintillator | |
ePlastics | |
ePmts | |
eFibers | |
eScrews | |
eRods | |
eContainer |
Definition at line 67 of file Geometry.h.
Geometry type options possible to be initialized. The type of the geometry will specify which components are created. Geometry types -> eUnitialized => no parts -> eOnlySensitive => only sensitive detector parts -> eRough => sensitive parts and rough structural elements -> eFull => complete, detailed geometry (including screws, etc.)
Enumerator | |
---|---|
eUninitialized | |
eOnlySensitive | |
eRough | |
eFull |
Definition at line 59 of file Geometry.h.
|
inline |
Default constructor. It must be kept public for root persistency purposes, but should never be called by the outside world
Definition at line 80 of file Geometry.h.
Geometry::Geometry | ( | const Geometry & | geometry | ) |
Copy constructor.
Definition at line 46 of file Geometry.cxx.
Geometry::~Geometry | ( | ) |
Definition at line 51 of file Geometry.cxx.
void Geometry::buildGeometry | ( | ) | const |
Build the geometry.
Definition at line 95 of file Geometry.cxx.
bool Geometry::enableComponent | ( | EGeoComponent | component, |
bool | enable = true |
||
) |
Enable or disable a geometry component. To be called before the geometry is built. A disabled component will not be added to the geometry. The enabled components are by default specified by the geometry type.
component | The geometry component to be enabled/disabled. |
enable | Setting the enabled state. Default is true. |
Definition at line 85 of file Geometry.cxx.
Point3Dsimple & Geometry::getCellCenter | ( | UInt_t | cellId | ) |
Definition at line 125 of file Geometry.cxx.
int Geometry::getCurrentCellId | ( | const TVirtualMC * | fMC | ) | const |
Get the unique ID of the current scintillator cell during simulation. The ID is a number starting from 0 at the first cell right of the y-axis and continues clockwise one ring at a time.
fMC | The virtual Monte Carlo interface. |
Definition at line 61 of file Geometry.cxx.
|
inlinestaticconstexpr |
Definition at line 128 of file Geometry.h.
void Geometry::getGlobalPosition | ( | float & | x, |
float & | y, | ||
float & | z | ||
) |
Utility functions to be accessed externally.
Sets the input parameters to the position of the geometrical center of sensitive detector
x | x [cm]. |
y | y [cm]. |
z | z [cm]. |
Definition at line 118 of file Geometry.cxx.
|
inlinestaticconstexpr |
Definition at line 121 of file Geometry.h.
|
inlinestaticconstexpr |
Get the density of the PMTs.
Definition at line 137 of file Geometry.h.
|
inline |
Get a pointer to the TGeoPNEntry of a chip identified by 'index' Returns NULL in case of invalid index, missing TGeoManager or invalid symbolic name
Definition at line 129 of file Geometry.h.
Point3Dsimple & Geometry::getReadoutCenter | ( | UInt_t | cellId | ) |
Definition at line 130 of file Geometry.cxx.
|
inline |
Get the names of all the sensitive volumes of the geometry.
Definition at line 100 of file Geometry.h.
|
static |
Access to geometry instance
initType | The geometry type to be initialized - if the geometry already exists this parameter is ignored |
Definition at line 1346 of file Geometry.cxx.
bool Geometry::isRing5 | ( | UInt_t | cellId | ) |
Helper function to check if the cellId belongs to ring 5.
cellId | Id of the cell in range from 0 to 39. |
Definition at line 135 of file Geometry.cxx.