ATLAS Offline Software
TBPhase.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TBEVENT_TBPHASE
8 #define TBEVENT_TBPHASE
9 // //
11 // Phase for an event.
12 // //
14 
15 
16 #include "AthenaKernel/CLASS_DEF.h"
17 #include <math.h>
18 
19 
20 
21 class TBPhase
22 {
23  public:
24 
25 
26  static const int unknown = -99999 ;
27  static const short sunknown = -999 ;
28 
30  // Constructors and Destructor //
32 
34  TBPhase(float phase,short phaseind) : m_phase(phase),m_phaseind(phaseind) , m_dTtoWAC(unknown) {};
35  TBPhase(float phase,short phaseind,float dTtoWAC) : m_phase(phase),m_phaseind(phaseind),m_dTtoWAC(dTtoWAC) {};
36 
37  ~TBPhase() {};
38 
40  // Data Manipulation //
42  float getPhase() const {return m_phase;}
43  short getPhaseind() const {return m_phaseind;}
44  float getdTtoWACSigned() const {return m_dTtoWAC;}
45  float getdTtoWAC() const {return fabs(m_dTtoWAC);}
46 
47  private:
48 
50  // Private Data //
52 
53  float m_phase;
54  short m_phaseind;
55  float m_dTtoWAC;
56 
57 
58 };
59 
60 CLASS_DEF( TBPhase , 127061164 , 1 )
61 #endif
TBPhase::~TBPhase
~TBPhase()
Definition: TBPhase.h:37
ReadOfcFromCool.phase
phase
Definition: ReadOfcFromCool.py:127
TBPhase::getdTtoWAC
float getdTtoWAC() const
Definition: TBPhase.h:45
TBPhase::m_dTtoWAC
float m_dTtoWAC
Definition: TBPhase.h:55
TBPhase::sunknown
static const short sunknown
Definition: TBPhase.h:27
TBPhase::TBPhase
TBPhase(float phase, short phaseind, float dTtoWAC)
Definition: TBPhase.h:35
TBPhase::TBPhase
TBPhase()
Definition: TBPhase.h:33
TBPhase::getPhaseind
short getPhaseind() const
Definition: TBPhase.h:43
TBPhase::m_phaseind
short m_phaseind
Definition: TBPhase.h:54
TBPhase
Definition: TBPhase.h:22
TBPhase::unknown
static const int unknown
Definition: TBPhase.h:26
TBPhase::TBPhase
TBPhase(float phase, short phaseind)
Definition: TBPhase.h:34
TBPhase::getdTtoWACSigned
float getdTtoWACSigned() const
Definition: TBPhase.h:44
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TBPhase::m_phase
float m_phase
Definition: TBPhase.h:53
TBPhase::getPhase
float getPhase() const
Definition: TBPhase.h:42
CLASS_DEF.h
macros to associate a CLID to a type