QwAnalysis
QwSIS3320_LogicalAccumulator.h
Go to the documentation of this file.
1 /**
2  * \class QwSIS3320_LogicalAccumulator QwSIS3320_LogicalAccumulator.h
3  *
4  * \brief 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 #ifndef __QwSIS3320_LogicalAccumulator__
18 #define __QwSIS3320_LogicalAccumulator__
19 
20 // System headers
21 #include <vector>
22 
23 // Qweak headers
24 #include "VQwDataElement.h"
25 #include "QwSIS3320_Accumulator.h"
26 
28 public:
29 
30  QwSIS3320_LogicalAccumulator(TString name = "")
31  : QwSIS3320_Accumulator(name)
32  { };
34 
35  void AddAccumulatorReference( QwSIS3320_Accumulator *accum, Double_t weight);
36 
37  void ProcessEvent();
38  Int_t ProcessEvBuffer(UInt_t* buffer, UInt_t num_words_left, UInt_t subelement = 0) { return 0; };
39 
40 private:
41 
42  std::vector<QwSIS3320_Accumulator*> fAccumulators;
43  std::vector<Double_t> fAccumulatorWeights;
44 };
45 
46 #endif // __QwSIS3320_LogicalAccumulator__
std::vector< QwSIS3320_Accumulator * > fAccumulators
SIS3320 sampling ADC accumulator.
SIS3320 sampling ADC accumulator.
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t num_words_left, UInt_t subelement=0)
Process the CODA event buffer for this element.
Definition of the pure virtual base class of all data elements.
void AddAccumulatorReference(QwSIS3320_Accumulator *accum, Double_t weight)
std::vector< Double_t > fAccumulatorWeights