 |
Belle II Software
release-05-02-19
|
37 friend class HitPatternVXDTest_General_Test;
38 friend class HitPatternVXDTest_NumberingScheme_Test;
39 friend class HitPatternVXDTest_SVDSetterAndGetter_Test;
40 friend class HitPatternVXDTest_PXDSetterAndGetter_Test;
45 enum class PXDMode : unsigned short { normal =
static_cast<unsigned short>(0), gated = 1 };
64 unsigned short getNdf()
const;
85 void setSVDLayer(
const unsigned short layerId,
unsigned short uHits,
unsigned short vHits);
92 std::pair<const unsigned short, const unsigned short>
getSVDLayer(
const unsigned short layerId)
const;
137 void setPXDLayer(
const unsigned short layerId,
unsigned short nHits,
const PXDMode& mode = PXDMode::normal);
146 unsigned short getPXDLayer(
const unsigned short layerId,
const PXDMode& mode = PXDMode::normal)
const;
static const std::list< unsigned short > s_SVDLayerNumbers
For iterating through layers.
static const std::bitset< 32 > s_SVDuvMasks[2]
Mask to zero out all bits from other layers.
unsigned short getNdf() const
Get degrees of freedom in PXD and SVD.
short getFirstSVDLayer() const
Get the first activated SVD layer index.
unsigned short getNPXDHits() const
Get total number of hits in the PXD.
static const std::bitset< 32 > s_LayerMasks[6]
Masks to zero out all bits from other layers.
unsigned short getNVXDLayers(const PXDMode &pxdmode=PXDMode::normal) const
Return the total number of activated layers in the VXD depending on the mode of the PXD.
HitPatternVXD()
Create empty pattern.
short getFirstPXDLayer(const PXDMode &mode=PXDMode::normal) const
Returns the first activated layer of the PXD depending on the mode.
void resetPXDLayer(const unsigned short layerId, const PXDMode &mode=PXDMode::normal)
Reset the number of hits in a specific layer of the PXD.
std::pair< const unsigned short, const unsigned short > getSVDLayer(const unsigned short layerId) const
Get the number of hits in a specific layer of the SVD.
short getLastPXDLayer(const PXDMode &mode=PXDMode::normal) const
Returns the last activated layer of the PXD depending on the mode.
unsigned short getNPXDLayers(const PXDMode &mode=PXDMode::normal) const
Returns the total number of activated layers of the PXD.
Abstract base class for different kinds of events.
std::bitset< 32 > getBitset() const
Getter for underlying bitset.
static const unsigned int s_svdVshift
for internal shifting to the SVD bits.
void setPXDLayer(const unsigned short layerId, unsigned short nHits, const PXDMode &mode=PXDMode::normal)
Set the number of hits in a specific layer of the PXD.
void resetSVDLayer(const unsigned short layerId)
Reset the number of hits in a specific layer of the SVD.
void setSVDLayer(const unsigned short layerId, unsigned short uHits, unsigned short vHits)
Set the number of hits in a specific layer of the SVD.
unsigned short getNSVDLayers() const
Returns the total number of activated layers of the SVD.
std::bitset< 32 > getLayerMask(const unsigned short layerId) const
Getter for the proper layer masks.
static const std::bitset< 32 > s_infoLayerMask
Mask to zero out all bits from other layers.
unsigned short getPXDLayer(const unsigned short layerId, const PXDMode &mode=PXDMode::normal) const
Get the number of hits in a specific layer of the PXD.
std::bitset< 32 > m_pattern
Storing of actual hit pattern.
static const std::bitset< 32 > s_PXDModeMasks[2]
Mask to zero out all bits from other layers.
std::string __repr__() const
String for printing in python.
unsigned short getNSVDHits() const
Get total number of hits in the SVD.
static const unsigned int s_svdUshift
for internal shifting to the SVD bits.
static const std::list< unsigned short > s_PXDLayerNumbers
For iterating through layers.
unsigned int getInteger() const
Getter for the underlying integer.
short getLastSVDLayer() const
Get the last activated SVD layer index.