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