|
ATLAS Offline Software
|
Go to the documentation of this file.
47 }
else if (ps < 1 && ps>-1) {
72 const unsigned int dd,
const int ss = 1) {
95 if (nn <= -1 || nn >= 1) {
125 unsigned int nTemp = 1;
126 unsigned int mTemp = 0;
127 unsigned int dTemp = 0;
133 if (prescaleBitArray < 0) {
135 psTemp = (
uint32_t) (-1 * prescaleBitArray);
138 psTemp = (
uint32_t) prescaleBitArray;
143 nTemp = psTemp&
NMASK;
154 std::stringstream
ss;
155 if (
m_m == 0 &&
m_d == 0) {
169 int tmpN = (
int) psF;
170 float psOne = psF / (
float) tmpN;
186 tmpPS = (
float) ((tmpM + tmpD + 1.0) / (tmpM + 1.0));
187 tmpDiff = fabs(tmpPS - psOne);
188 if (tmpPS * tmpN >= tmpN + 1) {
191 if (tmpDiff <
diff) {
208 const unsigned int dd) {
210 unsigned int nTemp = 1;
233 ret = (ret | ((
dd & 0xF) <<
DSHIFT));
234 ret = (ret | (nn &
NMASK));
static const int s_auxLength
static const uint32_t MMASK
static const unsigned int s_psAuxValues[79][2]
Help array containing the allowed MD combinations (for N=1).
void setInt64(const int64_t tmpLong)
Sets the N,M,D values from a Int64_t prescale value.
Forward iterator to traverse the main components of the trigger configuration.
static const uint32_t DMASK
std::string write()
Writes nicely the ps value.
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.
static int64_t decodeFloat(const float psF)
Calculates the NMD combination nearest to psF.
static const uint32_t NMASK
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 int64_t makeLong(unsigned int n, unsigned int m, unsigned int d)
Returns the POSITIVE int64_t of 3 ints.