![]() |
ATLAS Offline Software
|
#include <L1PSNumber.h>
Public Member Functions | |
| L1PSNumber () | |
| L1PSNumber (const float ps) | |
| Constructor from float. | |
| L1PSNumber (const int64_t ps) | |
| Constructor, with 64 bit integer. | |
| L1PSNumber (const int ps) | |
| Simple constructor, sets only int. | |
| L1PSNumber (const int nn, const unsigned int mm, unsigned const int dd, const int ss) | |
| Constructor from N,M,D and S. | |
| std::string | write () |
| Writes nicely the ps value. | |
| unsigned int | getN () const |
| unsigned int | getM () const |
| unsigned int | getD () const |
| int | getSign () const |
| float | getFloatPrescale () const |
| int64_t | getInt64 () const |
| int | getInt32 () const |
Static Public Member Functions | |
| static int64_t | decodeFloat (const float psF) |
| Calculates the NMD combination nearest to psF. | |
| 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. | |
Private Member Functions | |
| 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. | |
| void | setInt64 (const int64_t tmpLong) |
| Sets the N,M,D values from a Int64_t prescale value. | |
Static Private Member Functions | |
| static int64_t | makeLong (unsigned int n, unsigned int m, unsigned int d) |
| Returns the POSITIVE int64_t of 3 ints. | |
Private Attributes | |
| unsigned int | m_n |
| unsigned int | m_m |
| unsigned int | m_d |
| int | m_s |
| float | m_psFloat |
| int64_t | m_psLong |
Static Private Attributes | |
| static const uint32_t | NMASK = 0x00FFFFFF |
| static const uint32_t | MMASK = 0xF0000000 |
| static const uint32_t | DMASK = 0x0F000000 |
| static const int | MSHIFT = 28 |
| static const int | DSHIFT = 24 |
| static const int | s_auxLength = 79 |
| static const unsigned int | s_psAuxValues [79][2] |
| Help array containing the allowed MD combinations (for N=1). | |
Definition at line 33 of file L1PSNumber.h.
| TrigConf::L1PSNumber::L1PSNumber | ( | ) |
| TrigConf::L1PSNumber::L1PSNumber | ( | const float | ps | ) |
Constructor from float.
Definition at line 83 of file L1PSNumber.cxx.
| TrigConf::L1PSNumber::L1PSNumber | ( | const int64_t | ps | ) |
Constructor, with 64 bit integer.
Definition at line 64 of file L1PSNumber.cxx.
| TrigConf::L1PSNumber::L1PSNumber | ( | const int | ps | ) |
| TrigConf::L1PSNumber::L1PSNumber | ( | const int | nn, |
| const unsigned int | mm, | ||
| unsigned const int | dd, | ||
| const int | ss = 1 ) |
Constructor from N,M,D and S.
Definition at line 71 of file L1PSNumber.cxx.
|
static |
Calculates the NMD combination nearest to psF.
Returns the int64_t representation of NMD.
Definition at line 167 of file L1PSNumber.cxx.
|
static |
Returns INT64_T prescale number with the correct sign as it is stored in DB.
Definition at line 207 of file L1PSNumber.cxx.
|
inline |
Definition at line 74 of file L1PSNumber.h.
|
inline |
Definition at line 76 of file L1PSNumber.h.
|
inline |
Definition at line 78 of file L1PSNumber.h.
|
inline |
Definition at line 77 of file L1PSNumber.h.
|
inline |
Definition at line 73 of file L1PSNumber.h.
|
inline |
Definition at line 72 of file L1PSNumber.h.
|
inline |
Definition at line 75 of file L1PSNumber.h.
|
staticprivate |
Returns the POSITIVE int64_t of 3 ints.
Takes care that no number is longer than it should.
Definition at line 228 of file L1PSNumber.cxx.
|
private |
Sets the N,M,D values from a Int64_t prescale value.
| prescaleArray | the prescale as a long. |
Decodeonly if ps > 0. Else PS=1.
Definition at line 124 of file L1PSNumber.cxx.
|
private |
Checks whether the m_n,m_m,m_d combination is valid, i.e.
whether m_n >= 1 && 1 < (m_m+m_d+1)/(m_m+1) < 2. Sets N, M, D & m_psFloat.
Definition at line 93 of file L1PSNumber.cxx.
| std::string TrigConf::L1PSNumber::write | ( | ) |
Writes nicely the ps value.
Definition at line 153 of file L1PSNumber.cxx.
|
staticprivate |
Definition at line 44 of file L1PSNumber.h.
|
staticprivate |
Definition at line 46 of file L1PSNumber.h.
|
private |
Definition at line 37 of file L1PSNumber.h.
|
private |
Definition at line 36 of file L1PSNumber.h.
|
private |
Definition at line 35 of file L1PSNumber.h.
|
private |
Definition at line 39 of file L1PSNumber.h.
|
private |
Definition at line 40 of file L1PSNumber.h.
|
private |
Definition at line 38 of file L1PSNumber.h.
|
staticprivate |
Definition at line 43 of file L1PSNumber.h.
|
staticprivate |
Definition at line 45 of file L1PSNumber.h.
|
staticprivate |
Definition at line 42 of file L1PSNumber.h.
|
staticprivate |
Definition at line 55 of file L1PSNumber.h.
|
staticprivate |
Help array containing the allowed MD combinations (for N=1).
These will be iterated in L1PSNumber::decodeFloat() to find the best aproximation.
Definition at line 56 of file L1PSNumber.h.