21 using namespace DD4hep;
22 using namespace DD4hep::Geometry;
30 detector(0), sensitive(0), segmentation(s)
long long int CellID
Useful typedefs to differentiate cell IDs and volume IDs.
virtual VolumeID volumeID(const CellID &cellID) const
Determine the volume ID from the full cell ID by removing all local fields.
const std::string & description() const
Access the description of the segmentation.
virtual BitField64 * decoder() const
Access the underlying decoder.
Parameter parameter(const std::string ¶meterName) const
Access to parameter by name.
const std::string & type() const
Access the segmentation type.
static void decrement(T *)
Decrement count according to type information.
virtual Parameters parameters() const
Access to all parameters.
virtual const std::string & name() const
Access the segmentation name.
void setName(const std::string &value)
Set the segmentation name.
std::string fieldDescription() const
Access the encoding string.
std::vector< Parameter > Parameters
BaseSegmentation * segmentation
Reference to base segmentation.
virtual Vector3D position(const CellID &cellID) const =0
Determine the local position based on the cell ID.
virtual void setParameters(const Parameters ¶meters)
Set all parameters from an existing set of parameters.
virtual ~SegmentationObject()
Default destructor.
Position position(const CellID &cellID) const
Determine the local position based on the cell ID.
ROOT::Math::XYZVector Position
Base class for all segmentations.
virtual CellID cellID(const Vector3D &localPosition, const Vector3D &globalPosition, const VolumeID &volumeID) const =0
Determine the cell ID based on the position.
static void increment(T *)
Increment count according to type information.
DDSegmentation::Parameters Parameters
virtual Parameter parameter(const std::string ¶meterName) const
Access to parameter by name.
VolumeID volumeID(const CellID &cellID) const
Determine the volume ID from the full cell ID by removing all local fields.
virtual void setDecoder(BitField64 *decoder)
Set the underlying decoder.
virtual void setName(const std::string &value)
Set the segmentation name.
void setParameters(const Parameters ¶meters)
Set all parameters from an existing set of parameters.
virtual const std::string & type() const
Access the segmentation type.
Class to hold a segmentation parameter with its description.
const std::string & name() const
Access the segmentation name.
SegmentationParameter * Parameter
CellID cellID(const Position &localPosition, const Position &globalPosition, const VolumeID &volumeID) const
Determine the cell ID based on the position.
void setDecoder(BitField64 *decoder) const
Set the underlying decoder.
BitField64 * decoder() const
Access the underlying decoder.
virtual const std::string & description() const
Access the description of the segmentation.
virtual std::string fieldDescription() const
Access the encoding string.
Parameters parameters() const
Access to all parameters.
unsigned long long int magic_word()
Access to the magic word, which is protecting some objects against memory corruptions.