|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
15 #ifndef DD4HEP_GRIDRPHIETA_H
16 #define DD4HEP_GRIDRPHIETA_H 1
70 return access()->implementation->cellID(local, global, volID);
77 inline int phiBins()
const {
return access()->implementation->phiBins(); }
83 inline double offsetR()
const {
return access()->implementation->offsetR(); }
92 inline void setOffsetEta(
double offset)
const {
access()->implementation->setOffsetEta(offset); }
95 inline void setOffsetR(
double offset)
const {
access()->implementation->setOffsetR(offset); }
98 inline void setOffsetPhi(
double offset)
const {
access()->implementation->setOffsetPhi(offset); }
104 inline void setGridSizeR(
double cellSize)
const {
access()->implementation->setGridSizeR(cellSize); }
107 inline void setPhiBins(
int cellSize)
const {
access()->implementation->setPhiBins(cellSize); }
110 inline const std::string&
fieldNameR()
const {
return access()->implementation->fieldNameR(); }
129 return {
access()->implementation->gridSizeR(),
130 access()->implementation->gridSizePhi(),
131 access()->implementation->gridSizeEta()};
135 #endif // DD4HEP_GRIDRPHIETA_H
double offsetEta() const
access the coordinate offset in Eta
bool operator==(const GridRPhiEta &seg) const
Equality operator.
T Object
Extern accessible definition of the contained element type.
void setGridSizeEta(double cellSize) const
set the grid size in Eta
GridRPhiEta()=default
Default constructor.
const std::string & fieldNamePhi() const
access the field name used for Phi
void setOffsetEta(double offset) const
set the coordinate offset in R
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
void setPhiBins(int cellSize) const
set the grid size in Phi
GridRPhiEta(const Handle< Q > &e)
Copy constructor from other polymorph/equivalent handle.
GridRPhiEta(const GridRPhiEta &e)=default
Copy constructor.
double gridSizeEta() const
access the grid size in Eta
GridRPhiEta(const Handle< Object > &e)
Copy constructor from handle.
Position position(const CellID &id) const
determine the position based on the cell ID
void setGridSizeR(double cellSize) const
set the grid size in R
Handle< SegmentationWrapper< DDSegmentation::GridRPhiEta > > GridRPhiEtaHandle
We need some abbreviation to make the code more readable.
double gridSizeR() const
access the grid size in Phi
Implementation class for the grid phi-eta segmentation.
int phiBins() const
access the grid size in Phi
void setOffsetPhi(double offset) const
set the coordinate offset in Phi
dd4hep::CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
double offsetPhi() const
access the coordinate offset in Phi
T * m_element
Single and only data member: Reference to the actual element.
GridRPhiEta & operator=(const GridRPhiEta &seg)=default
Assignment operator.
ROOT::Math::XYZVector Position
dd4hep::DDSegmentation::VolumeID VolumeID
const std::string & fieldNameEta() const
access the field name used for Eta
T * access() const
Checked object access. Throws invalid handle runtime exception if invalid handle.
GridRPhiEta(const Segmentation &e)
Copy Constructor from segmentation base object.
Namespace for the AIDA detector description toolkit.
double offsetR() const
access the coordinate offset in R
const std::string & fieldNameR() const
access the field name used for R
void setOffsetR(double offset) const
set the coordinate offset in Phi
Handle class supporting generic Segmentations of sensitive detectors.
std::vector< double > cellDimensions(const CellID &) const
Returns a std::vector<double> of the cellDimensions of the given cell ID in natural order of dimensio...
dd4hep::DDSegmentation::CellID CellID