QwAnalysis
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
QwSIS3320_LogicalAccumulator.cc
Go to the documentation of this file.
1
/**
2
* \file QwSIS3320_LogicalAccumulator.cc
3
*
4
* \brief Implementation of the SIS3320 sampling ADC accumulator
5
*
6
* \author W. Deconinck
7
* \date 2009-09-04 18:06:23
8
* \ingroup QwCompton
9
*
10
* The QwSIS3320_LogicalAccumulator should allow convenient access to the accumulator
11
* data collected with the SIS3320 for the Compton photon detector. This class
12
* implements its own sum, difference, and ratio methods inherited from the
13
* general VQwDataElement.
14
*
15
*/
16
17
#include "
QwSIS3320_LogicalAccumulator.h
"
18
#include "
QwSIS3320_Accumulator.h
"
19
20
// Qweak headers
21
#include "
QwLog.h
"
22
#include "
QwHistogramHelper.h
"
23
24
25
void
QwSIS3320_LogicalAccumulator::ProcessEvent
()
26
{
27
for
(
size_t
i = 0; i <
fAccumulators
.size(); i++) {
28
fAccumulatorSum
+=
fAccumulatorWeights
[i]*(
fAccumulators
[i]->GetAccumulatorSum());
29
}
30
}
31
32
void
QwSIS3320_LogicalAccumulator::AddAccumulatorReference
(
33
QwSIS3320_Accumulator
*accum, Double_t weight)
34
{
35
if
(accum) {
36
fAccumulators
.push_back(accum);
37
fAccumulatorWeights
.push_back(weight);
38
}
39
}
40
QwHistogramHelper.h
QwSIS3320_LogicalAccumulator::fAccumulators
std::vector< QwSIS3320_Accumulator * > fAccumulators
Definition:
QwSIS3320_LogicalAccumulator.h:38
QwSIS3320_LogicalAccumulator::ProcessEvent
void ProcessEvent()
Definition:
QwSIS3320_LogicalAccumulator.cc:25
QwSIS3320_Accumulator::fAccumulatorSum
Double_t fAccumulatorSum
Accumulator sum.
Definition:
QwSIS3320_Accumulator.h:94
QwSIS3320_Accumulator
SIS3320 sampling ADC accumulator.
Definition:
QwSIS3320_Accumulator.h:34
QwSIS3320_Accumulator.h
QwLog.h
A logfile class, based on an identical class in the Hermes analyzer.
QwSIS3320_LogicalAccumulator.h
QwSIS3320_LogicalAccumulator::AddAccumulatorReference
void AddAccumulatorReference(QwSIS3320_Accumulator *accum, Double_t weight)
Definition:
QwSIS3320_LogicalAccumulator.cc:32
QwSIS3320_LogicalAccumulator::fAccumulatorWeights
std::vector< Double_t > fAccumulatorWeights
Definition:
QwSIS3320_LogicalAccumulator.h:43
Analysis
src
QwSIS3320_LogicalAccumulator.cc
Generated on Sun Sep 24 2017 04:33:20 for QwAnalysis by
1.8.5