ATLAS Offline Software
Loading...
Searching...
No Matches
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
10// //
11// Phase for an event.
12// //
14
15
17#include <math.h>
18
19
20
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
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;
55 float m_dTtoWAC;
56
57
58};
59
60CLASS_DEF( TBPhase , 127061164 , 1 )
61#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
TBPhase(float phase, short phaseind)
Definition TBPhase.h:34
static const int unknown
Definition TBPhase.h:26
TBPhase(float phase, short phaseind, float dTtoWAC)
Definition TBPhase.h:35
float getdTtoWACSigned() const
Definition TBPhase.h:44
float m_dTtoWAC
Definition TBPhase.h:55
float getdTtoWAC() const
Definition TBPhase.h:45
short getPhaseind() const
Definition TBPhase.h:43
TBPhase()
Definition TBPhase.h:33
static const short sunknown
Definition TBPhase.h:27
float m_phase
Definition TBPhase.h:53
~TBPhase()
Definition TBPhase.h:37
short m_phaseind
Definition TBPhase.h:54
float getPhase() const
Definition TBPhase.h:42