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