|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef LArSamples_ShapeInfo_H
12 #define LArSamples_ShapeInfo_H
30 unsigned char nPhases = 8,
float shift = 0);
37 unsigned int nPoints()
const {
return m_values.size() + 1; }
38 unsigned char binSize()
const {
return m_binSize; }
39 unsigned char nSamples()
const {
return m_nSamples; }
40 unsigned char nPhases()
const {
return m_nPhases; }
41 unsigned int nIntervals()
const {
return nBuckets/binSize(); }
42 float shift()
const {
return m_shift + m_timeShift; }
48 double value(
unsigned int i)
const;
50 unsigned char phase(
unsigned int i)
const;
52 void set(
unsigned char iSample,
unsigned char iPhase,
float value);
55 double footprint()
const {
return sizeof(*this) + m_values.size()*
sizeof(
short); }
62 static constexpr
unsigned int nBuckets = 24;
65 static void setTimeShift(
double shift = 0) { m_timeShift = shift; }
unsigned int nIntervals() const
unsigned char nPhases() const
unsigned int nPoints() const
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
static double m_timeShift
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
std::vector< short > m_values
unsigned char nSamples() const
static double timeShift()
unsigned char binSize() const
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
static void setTimeShift(double shift=0)
Define macros for attributes used to control the static checker.