24#ifndef TrigConf_L1PSNumber
25#define TrigConf_L1PSNumber
42 static const uint32_t
NMASK = 0x00FFFFFF;
43 static const uint32_t
MMASK = 0xF0000000;
44 static const uint32_t
DMASK = 0x0F000000;
48 bool validate(
const int nn,
const unsigned int mm,
49 const unsigned int dd,
const int ss);
50 void setInt64(
const int64_t tmpLong);
52 static int64_t
makeLong(
unsigned int n,
unsigned int m,
unsigned int d);
63 L1PSNumber(
const int nn,
const unsigned int mm,
64 unsigned const int dd,
const int ss);
67 static int64_t
encodeNMD(
const int nn,
const unsigned int mm,
68 const unsigned int dd);
72 unsigned int getN()
const {
return m_n; };
73 unsigned int getM()
const {
return m_m; };
74 unsigned int getD()
const {
return m_d; };
static int64_t makeLong(unsigned int n, unsigned int m, unsigned int d)
Returns the POSITIVE int64_t of 3 ints.
std::string write()
Writes nicely the ps value.
static const uint32_t NMASK
void setInt64(const int64_t tmpLong)
Sets the N,M,D values from a Int64_t prescale value.
unsigned int getD() const
static const uint32_t MMASK
static const int s_auxLength
bool validate(const int nn, const unsigned int mm, const unsigned int dd, const int ss)
Checks whether the m_n,m_m,m_d combination is valid, i.e.
static const unsigned int s_psAuxValues[79][2]
Help array containing the allowed MD combinations (for N=1).
static int64_t encodeNMD(const int nn, const unsigned int mm, const unsigned int dd)
Returns INT64_T prescale number with the correct sign as it is stored in DB.
unsigned int getN() const
static const uint32_t DMASK
unsigned int getM() const
static int64_t decodeFloat(const float psF)
Calculates the NMD combination nearest to psF.
float getFloatPrescale() const
Forward iterator to traverse the main components of the trigger configuration.