BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
eformat::helper::Status Class Reference

#include <Status.h>

Public Member Functions

 Status (eformat::GenericStatus gen, uint16_t spec)
 
 Status (uint32_t v)
 
eformat::GenericStatus generic (void) const
 
uint16_t specific (void) const
 
uint32_t code (void) const
 

Detailed Description

Defines converters between version numbers and its components

Definition at line 51 of file Status.h.

Constructor & Destructor Documentation

◆ Status() [1/2]

eformat::helper::Status::Status ( eformat::GenericStatus  gen,
uint16_t  spec 
)
inline

Constructor. Takes the components to form a status

Parameters
genThe generic component
specThe specific component

Definition at line 60 of file Status.h.

61 : m_gen(gen), m_spec(spec) {}

◆ Status() [2/2]

eformat::helper::Status::Status ( uint32_t  v)

Constructor. Takes the status to understand the components from.

Parameters
sThe status number, fully built.
Warning
This status value has to conform to the current version of the library or unpredictable results might occur.

Definition at line 15 of file Status.cxx.

16 : m_gen(static_cast<eformat::GenericStatus>(v&0xffff)),
17 m_spec((v>>16)&0xffff)
18{
19}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35
GenericStatus
Definition: Status.h:24

Member Function Documentation

◆ code()

uint32_t eformat::helper::Status::code ( void  ) const

Gets the full 32-bit number made by assembling the 2 numbers above.

Definition at line 21 of file Status.cxx.

22{
23 uint32_t retval = m_spec;
24 retval <<= 16;
25 retval |= m_gen;
26 return retval;
27}

◆ generic()

eformat::GenericStatus eformat::helper::Status::generic ( void  ) const
inline

Extracts the generic part of this status word

Definition at line 75 of file Status.h.

75{ return m_gen; }

◆ specific()

uint16_t eformat::helper::Status::specific ( void  ) const
inline

Extracts the specific part of this status word

Definition at line 80 of file Status.h.

80{ return m_spec; }

The documentation for this class was generated from the following files: