87 operator std::string()
const;
116 std::string
__str__()
const {
return (std::string)(*this); }
139 std::ostream&
operator<<(std::ostream& out,
const VxdID&
id);
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.
VxdID(const VxdID &b)
Copy constructor.
union Belle2::VxdID::@143023104105136016013021064024205015372005120247 m_id
Union to store the ID and all components in one go.
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.
@ 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.
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.
struct Belle2::VxdID::@143023104105136016013021064024205015372005120247::@320010243252030131307025213014252054365164133356 parts
< Struct to contain all id components
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.
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.