ATLAS Offline Software
TestBeam
TBEvent
TBEvent
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
8
#include "
AthenaKernel/CLASS_DEF.h
"
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
16
class
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
;
38
int
m_tdcmin
;
39
float
m_scale
;
//Scale of the TDC (in ns)
40
int
m_phase
;
41
};
42
43
CLASS_DEF
(
TBTDC
,182194156,0)
44
45
#endif
TBTDC::scale
float scale() const
Definition:
TBTDC.h:34
TBTDC::TBTDC
TBTDC()
Definition:
TBTDC.cxx:8
TBTDC::m_tdc
int m_tdc
Definition:
TBTDC.h:37
TBTDC::phase
int phase() const
Definition:
TBTDC.h:25
TBTDC::m_scale
float m_scale
Definition:
TBTDC.h:39
TBTDC::m_tdcmin
int m_tdcmin
Definition:
TBTDC.h:38
TBTDC::tdc
int tdc() const
Definition:
TBTDC.h:28
TBTDC
Definition:
TBTDC.h:17
TBTDC::m_phase
int m_phase
Definition:
TBTDC.h:40
TBTDC::tdcmin
int tdcmin() const
Definition:
TBTDC.h:31
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
CLASS_DEF.h
macros to associate a CLID to a type
Generated on Thu Nov 7 2024 21:27:15 for ATLAS Offline Software by
1.8.18