12#include <vxd/dataobjects/VxdID.h>
101 explicit FullSecID(
VxdID vxdID,
bool subLayerID =
false,
unsigned int sectorNumber = 0);
110 FullSecID(
unsigned int layerID,
bool subLayerID,
unsigned int sensorID,
unsigned int sectorNumber);
Class to identify a sector inside of the VXD.
int getLadderNumber() const
returns LadderID compatible with basf2 standards
static const int VxdIDBits
Number of bits available to store a full vxdID.
int getLadderID() const
returns LadderID compatible with basf2 standards
static const int SectorBits
Number of bits available to represent a sector.
FullSecID & operator=(const FullSecID &secID)
overloaded assignment operator
std::string getFullSecString() const
returns the FullSecID coded as string compatible to secIDs stored in the xml-sectormaps
static const int Bits
Total bit size of the VxdID.
static const int MaxVxdID
Maximum valid Sensor ID.
bool operator<(const FullSecID &secID) const
overloaded '<'-operator for sorting algorithms
bool operator==(const FullSecID &secID) const
overloaded '=='-operator for sorting algorithms
VxdID getVxdID() const
returns VxdID of sensor.
static const int MaxSubLayer
Maximum valid Ladder ID.
static const int SubLayerMask
mask to get subLayerID from fullSecID
bool equalIgnoreSubLayerID(const FullSecID &secID)
comparison which ignores the sublayer ID
short int getLayerNumber() const
returns LayerID compatible with basf2 standards.
unsigned int getFullSecID() const
returns the FullSecID coded as integer for further use (can be reconverted to FullSecID by using Full...
unsigned short int getUniID() const
returns uniID of sensor (basically the same as VxdID (can simply converted to vxdID(uniID)) but a tri...
static const int LayerBits
Number of bits available to represent a layer.
FullSecID(unsigned int id=0)
Constructor taking the encoded full Sec ID (int).
static const int SectorMask
mask to get SectorID from fullSecID
static const int MaxSector
Maximum valid Segment ID.
static const int LayerBitShift
Number of bits to shift for storing a LayerID.
static const int SubLayerBitShift
Number of bits to shift for storing a SubLayerID.
static const int MaxID
Maximum value for ID.
short int getLayerID() const
returns LayerID compatible with basf2 standards.
BaseType m_fullSecID
contains full info of current SecID.
bool getSubLayerID() const
returns SubLayerID which tells you whether it is useful to search for compatible sectors in the same ...
static const int VxdIDMask
mask to get VxdID from fullSecID
static const int MaxLayer
Maximum valid Layer ID.
static const int SubLayerBits
Number of bits available to represent a subLayer (a sublayer is 1 if current sector on sensor is in a...
FullSecID(const FullSecID &secID)
Copy constructor.
static const int VxdIDBitShift
Number of bits shift for storing a full vxdID.
short int getSecID() const
returns SecID of current FullSecID (only unique for each sensor).
friend std::ostream & operator<<(std::ostream &out, const FullSecID &secID)
overloaded '<<' stream operator.
unsigned int BaseType
defines the base type used for FullSecID
Class to uniquely identify a any structure of the PXD and SVD.
baseType getLadderNumber() const
Get the ladder id.
Abstract base class for different kinds of events.