ATLAS Offline Software
Loading...
Searching...
No Matches
TBTDC.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TBEVENT_TBTDC_H
6#define TBEVENT_TBTDC_H
7
9
10/* Author: Walter Lampl, Remi Lafaye */
11/* Contains information from the TDC
12 * in the Beam Crate. The Phase is
13 * is given in ns (0 to 24)
14 */
15
16class TBTDC
17{
18 public:
19 TBTDC(); //Default constructor
20
21 TBTDC(int tdc_value, int tdcmin_value, float scale_value=0.05);
22 TBTDC(int phase_value, float scale_value=0.05);
23 TBTDC(int tdc_value, int tdcmin_value, float scale_value, int phase_value);
24
25 inline int phase() const
26 {return m_phase;}
27
28 inline int tdc() const
29 {return m_tdc;}
30
31 inline int tdcmin() const
32 {return m_tdcmin;}
33
34 float scale() const { return m_scale; }
35
36 private:
37 int m_tdc;
39 float m_scale; //Scale of the TDC (in ns)
41};
42
43CLASS_DEF(TBTDC,182194156,0)
44
45#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
Definition TBTDC.h:17
int m_tdcmin
Definition TBTDC.h:38
TBTDC()
Definition TBTDC.cxx:8
int phase() const
Definition TBTDC.h:25
float m_scale
Definition TBTDC.h:39
int m_phase
Definition TBTDC.h:40
float scale() const
Definition TBTDC.h:34
int tdcmin() const
Definition TBTDC.h:31
int m_tdc
Definition TBTDC.h:37
int tdc() const
Definition TBTDC.h:28