BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
RunNumber.cxx
Go to the documentation of this file.
1//Dear emacs, this is -*- c++ -*-
2
3/**
4 * @file RunNumber.cxx
5 * @author <a href="mailto:[email protected]">Andre DOS ANJOS</a>
6 * $Author: zhangy $
7 * $Revision: 1.1.1.1 $
8 * $Date: 2009/06/19 07:35:41 $
9 *
10 * Implements the RunNumber helper class.
11 */
12
13#include "eformat/RunNumber.h"
14
16 : m_type(static_cast<eformat::RunType>(rn>>24)),
17 m_n(0xffffff&rn)
18{
19}
20
22{
23 uint32_t retval = m_type;
24 retval <<= 24;
25 retval |= m_n;
26 return retval;
27}
28
29
A helper class to aid in composing valid run numbers.
uint32_t code(void) const
Definition RunNumber.cxx:21
RunNumber(eformat::RunType type, uint32_t n)
Definition RunNumber.h:47