ATLAS Offline Software
Loading...
Searching...
No Matches
TBScintillatorRaw.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TBEVENT_TBSCINTILLATORRaw_H
6#define TBEVENT_TBSCINTILLATORRaw_H
8// //
9// Templated class for represenetation of scintillator signals (pulse //
10// heights). Typical implementation: //
11// //
12// TBScintillator<unsigned short> theRawSignal; // raw signal //
13// TBScintillator<double> theRecoSignal; // reconstructed signal //
14// Modified: Jan 29th 2004 by Malachi Schram //
16
17
21#include "AthLinks/ElementLink.h"
23
24
26{
27 public:
28
32 // Constructors and Destructor //
34
37
38 TBScintillatorRaw(const std::string& scintallatorName) : TBBeamDetector(scintallatorName)
39 { }
40
41 TBScintillatorRaw(const std::string& scintallatorName,
42 const TBTDCRawCont* tdcCont,TBTDCRaw* tbtdc,
43 const TBADCRawCont* adcCont,TBADCRaw* tbadc);
44
46 { }
47
49 // Data Manipulation //
51
52 void setSignals(const TBTDCRawCont* tdcCont,TBTDCRaw* tbtdc,
53 const TBADCRawCont* adcCont,TBADCRaw* tbadc);
54
56 bool isTDCOverflow() const;
57 bool isTDCUnderThreshold() const;
58
60 bool isADCOverflow() const;
61
62
64 // Data //
66
67 protected:
68
71
72
73};
74
76{
77 return (*m_tdclink)->getTDC();
78
79}
80
81
83{
84 return (*m_tdclink)->isOverflow();
85
86}
87
89{
90 return (*m_tdclink)->isUnderThreshold();
91
92}
93
95{
96 return (*m_adclink)->getADC();
97}
98
100{
101 return (*m_adclink)->isOverflow();
102
103}
104
105
106
107
108
109
110CLASS_DEF( TBScintillatorRaw , 35513831 , 1 )
111
112
113#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
"TBEvent/TBADCRawCont.h"
Data object holding adc measurement.
Definition TBADCRaw.h:21
unsigned int signal_type
Definition TBADCRaw.h:24
adc_signal_type getADCSignal() const
ElementLink< TBADCRawCont > m_adclink
TBTDCRaw::signal_type tdc_signal_type
bool isADCOverflow() const
bool isTDCUnderThreshold() const
TBScintillatorRaw(const std::string &scintallatorName)
bool isTDCOverflow() const
ElementLink< TBTDCRawCont > m_tdclink
tdc_signal_type getTDCSignal() const
TBADCRaw::signal_type adc_signal_type
void setSignals(const TBTDCRawCont *tdcCont, TBTDCRaw *tbtdc, const TBADCRawCont *adcCont, TBADCRaw *tbadc)
"TBEvent/TBTDCRawCont.h"
Data object holding tdc measurement.
Definition TBTDCRaw.h:21
unsigned int signal_type
Definition TBTDCRaw.h:24