ATLAS Offline Software
Loading...
Searching...
No Matches
TestBeam
TBEvent
src
TBMWPCRaw.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
TBEvent/TBBeamDetector.h
"
7
#include "
TBEvent/TBMWPCRaw.h
"
8
9
11
// Constructors and Destructors //
13
14
TBMWPCRaw::TBMWPCRaw
()
15
:
TBBeamDetector
(),
16
m_isX
(false),
17
m_overflowSetFlag
(false)
18
{
19
// prepare stores
20
// this->setUpStores();
21
}
22
23
TBMWPCRaw::TBMWPCRaw
(std::string_view thisBPCName)
24
:
TBBeamDetector
(thisBPCName),
25
m_isX
(false)
26
{
27
// prepare stores
28
this->
reset
();
29
}
30
31
TBMWPCRaw::~TBMWPCRaw
()
32
{ }
33
35
// Data Manipulation //
37
38
void
TBMWPCRaw::reset
()
39
{
40
// reset signals and overflows
41
// m_signals.resize(m_signals.size(),0);
42
m_overflowType
.resize(
m_overflowType
.size(),
false
);
43
// global flags
44
m_overflowSetFlag
=
false
;
45
46
m_cwireno
.clear();
47
m_nwires
.clear();
48
}
49
50
// void TBMWPCRaw::setSignal(TBMWPCRaw::source_type theSignalType,
51
// TBMWPCRaw::signal_type theSignal)
52
// {
53
// if ( theSignalType < m_signals.size() )
54
// {
55
// m_signals[theSignalType] = theSignal;
56
// }
57
// }
58
59
// overflow handling for each signal type
60
// void TBMWPCRaw::setOverflow(TBMWPCRaw::source_type theSignalType)
61
// {
62
// this->setOverflow(theSignalType,true);
63
// }
64
65
// void TBMWPCRaw::resetOverflow(TBMWPCRaw::source_type theSignalType)
66
// {
67
// this->setOverflow(theSignalType,false);
68
// }
69
70
// void TBMWPCRaw::setOverflow(TBMWPCRaw::source_type theSignalType,
71
// bool overflow)
72
// {
73
// if ( theSignalType < m_signals.size() )
74
// {
75
// m_overflowType[theSignalType] = overflow;
76
// }
77
// if ( ! m_overflowSetFlag ) m_overflow = ( m_overflow | overflow );
78
// }
79
80
// global overflow handling
81
void
TBMWPCRaw::setOverflow
()
82
{
83
this->
setOverflow
(
true
);
84
}
85
86
void
TBMWPCRaw::resetOverflow
()
87
{
88
this->
setOverflow
(
false
);
89
}
90
91
void
TBMWPCRaw::setOverflow
(
bool
overflow)
92
{
93
m_overflowSetFlag
=
true
;
94
m_overflow
= overflow;
95
}
96
98
// Data Access //
100
101
// TBMWPCRaw::signal_type
102
// TBMWPCRaw::getSignal(TBMWPCRaw::source_type theSignalType) const
103
// {
104
// return ( theSignalType <= TBMWPCRaw::tdcUp )
105
// ? m_signals[theSignalType]
106
// : 0;
107
// }
108
109
// bool TBMWPCRaw::isOverflow(TBMWPCRaw::source_type theSignalType) const
110
// {
111
// return ( theSignalType <= TBMWPCRaw::tdcUp )
112
// ? m_overflowType[theSignalType]
113
// : false;
114
// }
115
117
// Internal //
119
120
// void TBMWPCRaw::setUpStores()
121
// {
122
// // find size
123
// unsigned int theSize = (unsigned int) TBMWPCRaw::tdcUp;
124
// theSize++;
125
// // preset
126
// m_signals.resize(theSize);
127
// m_overflowType.resize(theSize);
128
// this->reset();
129
// }
TBBeamDetector.h
TBMWPCRaw.h
TBBeamDetector::m_overflow
bool m_overflow
Detector Name.
Definition
TBBeamDetector.h:82
TBBeamDetector::TBBeamDetector
TBBeamDetector()
Definition
TBBeamDetector.h:24
TBMWPCRaw::m_cwireno
std::vector< int > m_cwireno
center wire number
Definition
TBMWPCRaw.h:113
TBMWPCRaw::m_isX
bool m_isX
Definition
TBMWPCRaw.h:118
TBMWPCRaw::setOverflow
virtual void setOverflow()
Definition
TBMWPCRaw.cxx:81
TBMWPCRaw::m_overflowSetFlag
bool m_overflowSetFlag
Definition
TBMWPCRaw.h:120
TBMWPCRaw::TBMWPCRaw
TBMWPCRaw()
Definition
TBMWPCRaw.cxx:14
TBMWPCRaw::~TBMWPCRaw
~TBMWPCRaw()
Definition
TBMWPCRaw.cxx:31
TBMWPCRaw::resetOverflow
virtual void resetOverflow()
Definition
TBMWPCRaw.cxx:86
TBMWPCRaw::m_nwires
std::vector< int > m_nwires
the number of wires a cluster
Definition
TBMWPCRaw.h:114
TBMWPCRaw::reset
void reset()
Definition
TBMWPCRaw.cxx:38
TBMWPCRaw::m_overflowType
std::vector< bool > m_overflowType
Definition
TBMWPCRaw.h:110
Generated on
for ATLAS Offline Software by
1.16.1