87 operator std::string()
const;
116 std::string
__str__()
const {
return (std::string)(*this); }
139 std::ostream&
operator<<(std::ostream& out,
const VxdID&
id);
Class to uniquely identify a any structure of the PXD and SVD.
void setSegmentNumber(baseType segment)
Set the sensor segment.
std::string __str__() const
make this type printable in python with print(vxd_id)
baseType getID() const
Get the unique id.
baseType getSensorNumber() const
Get the sensor id.
baseType ladder
Ladder id.
bool operator<(const VxdID &b) const
Order by unique id.
@ LadderBits
Number of bits available to represent a ladder.
@ SensorBits
Number of bits available to represent a sensor.
@ MaxLayer
Maximum valid Layer ID.
@ SegmentBits
Number of bits available to represent segmentation of the sensor.
@ MaxLadder
Maximum valid Ladder ID.
@ MaxID
Maximum value for ID.
@ MaxSegment
Maximum valid Segment ID.
@ LayerBits
Number of bits available to represent a layer.
@ MaxSensor
Maximum valid Sensor ID.
@ Bits
Total bit size of the VxdID.
VxdID(const VxdID &b)
Copy constructor.
VxdID(baseType layer, baseType ladder, baseType sensor, baseType segment=0)
Constructor using layer, ladder and sensor ids.
VxdID & operator=(baseType id)
Assignment from baseType.
bool operator==(const VxdID &b) const
Check for equality.
baseType segment
Segment id.
struct Belle2::VxdID::@308::@309 parts
< Struct to contain all id components
baseType getSegmentNumber() const
Get the sensor segment.
void setID(baseType id)
Set the unique id.
unsigned short baseType
The base integer type for VxdID.
VxdID & operator=(const VxdID &b)
Assignment operator.
void setSensorNumber(baseType sensor)
Set the sensor id.
void setLadderNumber(baseType ladder)
Set the ladder id.
VxdID(baseType id=0)
Constructor using the unique id.
baseType sensor
Sensor id.
baseType getLadderNumber() const
Get the ladder id.
union Belle2::VxdID::@308 m_id
Union to store the ID and all components in one go.
baseType getLayerNumber() const
Get the layer id.
void setLayerNumber(baseType layer)
Set the layer id.
std::ostream & operator<<(std::ostream &output, const IntervalOfValidity &iov)
Abstract base class for different kinds of events.