ATLAS Offline Software
TBBPC.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #include "TBEvent/TBBPC.h"
7 
8 
10 // Constructors and Destructor //
12 
14  : TBBeamDetector()
15 {
16  this->reset();
17 }
18 
19 TBBPC::TBBPC(const std::string& thisBPCName)
20  : TBBeamDetector(thisBPCName)
21 {
22  this->reset();
23 }
24 
26 { }
27 
29 // Data Manipulation //
31 
33 {
34  m_xErr = 0;
35  m_yErr = 0;
36  m_hitnumber = 0;
37 
38  // default signals
39  m_xPos = m_yPos = 0;
40  m_xPulse = m_yPulse = 0.;
41 
42  // default overflow conditions
45  // global overflow indicator (from TBBeamDetector)
46  m_overflow = false;
47 }
48 
50 {
51  m_xPos = theSignal;
52 }
53 
55 {
56  m_yPos = theSignal;
57 }
58 
60 {
61  m_xErr = theSignal;
62 }
63 
65 {
66  m_yErr = theSignal;
67 }
68 
70 {
71  m_xPulse = theSignal;
72 }
73 
75 {
76  m_yPulse = theSignal;
77 }
78 
79 void TBBPC::setHitNbr(int theSignal)
80 {
81  m_hitnumber = theSignal;
82 }
83 
84 void TBBPC::setXPosOverflow(bool overflow)
85 {
86  m_xPosOverflow = overflow;
87 }
88 
89 void TBBPC::setYPosOverflow(bool overflow)
90 {
91  m_yPosOverflow = overflow;
92 }
93 
94 void TBBPC::setXPulseOverflow(bool overflow)
95 {
96  m_xPulseOverflow = overflow;
97 }
98 
99 void TBBPC::setYPulseOverflow(bool overflow)
100 {
101  m_yPulseOverflow = overflow;
102 }
103 
TBBPC::setHitNbr
void setHitNbr(int hitnbr)
Definition: TBBPC.cxx:79
TBBPC::setXPulse
void setXPulse(signal_type theSignal)
Definition: TBBPC.cxx:69
TBBPC::m_yPulseOverflow
bool m_yPulseOverflow
Definition: TBBPC.h:124
TBBPC::m_xPulse
signal_type m_xPulse
Definition: TBBPC.h:117
TBBPC::reset
void reset()
Definition: TBBPC.cxx:32
TBBPC::~TBBPC
~TBBPC()
Definition: TBBPC.cxx:25
TBBPC::signal_type
double signal_type
Definition: TBBPC.h:26
TBBPC::m_xPos
signal_type m_xPos
Definition: TBBPC.h:113
TBBPC::setYPulse
void setYPulse(signal_type theSignal)
Definition: TBBPC.cxx:74
TBBPC::setXErr
void setXErr(signal_type theSignal)
Definition: TBBPC.cxx:59
TBBPC::m_yPosOverflow
bool m_yPosOverflow
Definition: TBBPC.h:123
TBBPC::setXPulseOverflow
void setXPulseOverflow(bool overflow=true)
Definition: TBBPC.cxx:94
TBBPC.h
TBBPC::m_xPosOverflow
bool m_xPosOverflow
Definition: TBBPC.h:123
TBBPC::setYPosOverflow
void setYPosOverflow(bool overflow=true)
Definition: TBBPC.cxx:89
TBBPC::setYErr
void setYErr(signal_type theSignal)
Definition: TBBPC.cxx:64
TBBPC::m_yPulse
signal_type m_yPulse
Definition: TBBPC.h:117
TBBeamDetector::m_overflow
bool m_overflow
Detector Name.
Definition: TBBeamDetector.h:81
TBBPC::m_hitnumber
short m_hitnumber
Definition: TBBPC.h:120
TBBPC::setXPos
void setXPos(signal_type theSignal)
Definition: TBBPC.cxx:49
TBBPC::m_xPulseOverflow
bool m_xPulseOverflow
Definition: TBBPC.h:124
TBBPC::m_xErr
signal_type m_xErr
Definition: TBBPC.h:114
TBBPC::TBBPC
TBBPC()
Definition: TBBPC.cxx:13
TBBPC::m_yErr
signal_type m_yErr
Definition: TBBPC.h:114
TBBPC::m_yPos
signal_type m_yPos
Definition: TBBPC.h:113
TBBPC::setYPulseOverflow
void setYPulseOverflow(bool overflow=true)
Definition: TBBPC.cxx:99
TBBeamDetector
Definition: TBBeamDetector.h:16
TBBPC::setYPos
void setYPos(signal_type theSignal)
Definition: TBBPC.cxx:54
TBBPC::setXPosOverflow
void setXPosOverflow(bool overflow=true)
Definition: TBBPC.cxx:84