raw data class for BPC measurement
More...
#include <TBBPCRaw.h>
raw data class for BPC measurement
The TBBPCRaw class provides the object characteristics for the raw data from the BPCs, i.e. four time and two pulse height measurements.
- Author
- Peter Loch loch@.nosp@m.phys.nosp@m.ics.a.nosp@m.rizo.nosp@m.na.ed.nosp@m.u
-
Pierre-Antoine Delsart delsa.nosp@m.rt@l.nosp@m.ps.um.nosp@m.ontr.nosp@m.eal.c.nosp@m.a
- Date
- May 20, 2004 - first implementation of new design
Definition at line 32 of file TBBPCRaw.h.
◆ adc_signal_type
◆ adc_store_iterator
◆ adc_store_type
◆ tdc_signal_type
◆ tdc_store_iterator
◆ tdc_store_type
◆ SignalSource
| Enumerator |
|---|
| tdcLeft | |
| tdcRight | |
| tdcUp | |
| tdcDown | |
| adcHorizontal | |
| adcVertical | |
| unknown | |
Definition at line 44 of file TBBPCRaw.h.
◆ TBBPCRaw() [1/3]
◆ TBBPCRaw() [2/3]
| TBBPCRaw::TBBPCRaw |
( |
const std::string & | thisBPCName | ) |
|
|
inline |
standard constructor
Definition at line 60 of file TBBPCRaw.h.
◆ TBBPCRaw() [3/3]
| TBBPCRaw::TBBPCRaw |
( |
const std::string & | thisBPCName, |
|
|
const TBTDCRawCont * | theTDCCont, |
|
|
const std::vector< const TBTDCRaw * > & | theTDCs, |
|
|
const TBADCRawCont * | theADCCont, |
|
|
const std::vector< const TBADCRaw * > & | theADCs ) |
Definition at line 25 of file TBBPCRaw.cxx.
31{
32 setSignals(theTDCCont,theTDCs,theADCCont,theADCs);
33}
void setSignals(const TBTDCRawCont *theTDCCont, const std::vector< const TBTDCRaw * > &theTDCs, const TBADCRawCont *theADCCont, const std::vector< const TBADCRaw * > &theADCs)
◆ ~TBBPCRaw()
◆ adc_begin()
Definition at line 211 of file TBBPCRaw.h.
212{
214}
adc_store_type m_adcSignals
◆ adc_end()
◆ findIndex() [1/2]
| size_t TBBPCRaw::findIndex |
( |
const adc_store_type & | theStore, |
|
|
adc_store_type::const_iterator & | theIterator ) const |
|
inlineprivate |
Definition at line 145 of file TBBPCRaw.h.
146 {
147 adc_store_type::const_iterator firstInStore = theStore.begin();
148 adc_store_type::const_iterator lastInStore = theStore.end();
149 size_t theIndex = 0;
150 while ( firstInStore != theIterator && firstInStore != lastInStore )
151 {
152 ++theIndex;
153 ++firstInStore;
154 }
155 if ( firstInStore == lastInStore ) theIndex = size_t(-1);
156 return theIndex;
157 }
◆ findIndex() [2/2]
Definition at line 132 of file TBBPCRaw.h.
133 {
134 tdc_store_type::const_iterator firstInStore = theStore.begin();
135 tdc_store_type::const_iterator lastInStore = theStore.end();
136 size_t theIndex = 0;
137 while ( firstInStore != theIterator && firstInStore != lastInStore )
138 {
139 ++theIndex;
140 ++firstInStore;
141 }
142 if ( firstInStore == lastInStore ) theIndex = size_t(-1);
143 return theIndex;
144 }
◆ getADCHorizontal()
Definition at line 192 of file TBBPCRaw.h.
193{
195}
adc_signal_type getADCSignal(SignalSource theSource) const
◆ getADCSignal()
Definition at line 123 of file TBBPCRaw.cxx.
124{
126 switch ( theSource )
127 {
130 {
133 }
134 break;
135 default:
136 theSignal = 0;
137 break;
138 }
139 return theSignal;
140}
float getADC(const AFP_SiDigi &digi)
TBADCRaw::signal_type adc_signal_type
◆ getADCVertical()
◆ getDetectorName()
| const std::string & TBBeamDetector::getDetectorName |
( |
| ) |
const |
|
inlineinherited |
◆ getSignalSource() [1/2]
Definition at line 170 of file TBBPCRaw.cxx.
171{
174 switch ( theIndex )
175 {
176 case 0:
178 break;
179 case 1 :
181 break;
182 default:
184 break;
185 }
186 return theSource;
187}
size_t findIndex(const tdc_store_type &theStore, tdc_store_iterator &theIterator) const
◆ getSignalSource() [2/2]
Definition at line 144 of file TBBPCRaw.cxx.
145{
148 switch ( theIndex )
149 {
150 case 0:
152 break;
153 case 1:
155 break;
156 case 2:
158 break;
159 case 3:
161 break;
162 default:
164 break;
165 }
166 return theSource;
167}
tdc_store_type m_tdcSignals
◆ getTDCDown()
Definition at line 187 of file TBBPCRaw.h.
188{
190}
tdc_signal_type getTDCSignal(SignalSource theSource) const
◆ getTDCLeft()
◆ getTDCRight()
◆ getTDCSignal()
Definition at line 100 of file TBBPCRaw.cxx.
101{
103 switch ( theSource )
104 {
109 {
110 size_t theIndex = (size_t)theSource;
112 }
113 break;
114 default:
115 theSignal = 0;
116 break;
117 }
118 return theSignal;
119}
float getTDC(const AFP_SiDigi &digi)
TBTDCRaw::signal_type tdc_signal_type
◆ getTDCUp()
◆ isOverflow() [1/2]
| bool TBBPCRaw::isOverflow |
( |
| ) |
const |
|
inlinevirtual |
Definition at line 166 of file TBBPCRaw.h.
167{
169}
bool m_overflow
Detector Name.
◆ isOverflow() [2/2]
Definition at line 68 of file TBBPCRaw.cxx.
69{
71 switch ( theSource )
72 {
77 {
78 size_t theIndex = (size_t)theSource;
81 }
82 break;
85 {
89 }
90 break;
91 default:
93 break;
94 }
96}
◆ resetOverflow()
| virtual void TBBeamDetector::resetOverflow |
( |
| ) |
|
|
inlinevirtualinherited |
◆ setDetectorName()
| virtual void TBBeamDetector::setDetectorName |
( |
const std::string & | tbBeamDetectorName | ) |
|
|
inlinevirtualinherited |
◆ setOverflow() [1/2]
| virtual void TBBeamDetector::setOverflow |
( |
| ) |
|
|
inlinevirtualinherited |
◆ setOverflow() [2/2]
| virtual void TBBeamDetector::setOverflow |
( |
bool | overflow | ) |
|
|
inlinevirtualinherited |
◆ setSignals()
Definition at line 35 of file TBBPCRaw.cxx.
39{
40
41 for (const TBTDCRaw* tdc : theTDCs)
42 {
43 ElementLink<TBTDCRawCont> theLink;
44
48 }
49
50
51 for (const TBADCRaw* adc : theADCs)
52 {
53 ElementLink<TBADCRawCont> theLink;
57 }
58}
bool toContainedElement(BaseConstReference data, ElementType element, IProxyDict *sg=0)
Set from element pointer and a reference to the container (storable)
◆ tdc_begin()
◆ tdc_end()
◆ m_adcSignals
◆ m_overflow
| bool TBBeamDetector::m_overflow |
|
protectedinherited |
◆ m_tbDetectorName
| std::string TBBeamDetector::m_tbDetectorName |
|
privateinherited |
◆ m_tdcSignals
The documentation for this class was generated from the following files: