 |
Belle II Software
release-05-02-19
|
12 #include <RtypesCore.h>
38 friend class HitPatternCDCTest_settersNGetters_Test;
39 friend class HitPatternCDCTest_getFirstLastLayer_Test;
77 void setLayer(
const unsigned short layer);
91 bool hasLayer(
const unsigned short layer)
const;
115 bool hasSLayer(
const unsigned short sLayer)
const;
165 static const std::map<unsigned short, std::pair<unsigned short, unsigned short>>
s_superLayerIndices;
HitPatternCDC()
Create empty pattern.
std::bitset< 64 > m_pattern
Saves the actual pattern.
unsigned short getLongestContRunInSL(const unsigned short sLayer) const
Getter for longest run of consecutive layers with hits within the given Super-layer.
short getFirstLayer() const
Returns the index of the first layer with a hit.
bool hasSLayer(const unsigned short sLayer) const
Getter for super-layer match.
void resetSLayer(const unsigned short sLayer)
Reset complete superLayer, e.g.
static const std::map< unsigned short, std::pair< unsigned short, unsigned short > > s_superLayerIndices
Holds the indices for super layer access.
unsigned short getSLayerNHits(const unsigned short sLayer) const
Getter for the number of hits in one super-layer.
bool hasStereoLayer() const
True, if at least one axial layer is true.
std::string __repr__() const
String for printing in python.
void resetLayer(const unsigned short layer)
Set bit corresponding to layer to false.
Abstract base class for different kinds of events.
std::bitset< 64 > getSLayerPattern(const unsigned short sLayer)
Get the bit pattern in a specific super layer.
void setNHits(unsigned short nHits)
Sets the 8 MSBs to the total number of hits in the CDC.
void setLayer(const unsigned short layer)
Set bit corresponding to layer to true.
ULong64_t getInteger() const
Getter for underlying integer type.
short getLastLayer() const
Returns the index of the last layer with a hit.
bool hasLayer(const unsigned short layer) const
Getter for single layer.
unsigned short getNHits() const
Get the total Number of CDC hits in the fit.
static const std::bitset< 64 > s_sLayerMasks[9]
Masks to zero out all bits from other layers.
bool hasAxialLayer() const
True, if at least one axial layer is true.
static const std::bitset< 64 > s_infoLayerMask
Mask to zero out all bits from other layers.
std::bitset< 64 > getBitSet() const
Getter for underlying bit set.
void resetPattern()
Reset the complete hit pattern.