1 #ifndef _SIMPLE_PEDESTAL_CALCULATOR_PROCESSOR_H
2 #define _SIMPLE_PEDESTAL_CALCULATOR_PROCESSOR_H
12 #include <marlin/Processor.h>
60 virtual void check( lcio::LCEvent * evt ) ;
96 long long int _sumXSquare;
109 std::string _inputColName, _outputColName, _outputFileName;
PedestalCreatorMap_t _pedestalCreatorMap
A map to associate a hardware ID (pair of ints for channel and readout group) to the corresponding pe...
Definition: SimplePedestalCalculatorProcessor.h:106
size_t getNSamples() const
Get the number of samples that have been used to calculate the pedestal.
Definition: SimplePedestalCalculatorProcessor.cc:171
virtual void end()
The end function writes the caclulated pedestals to the lcio file.
Definition: SimplePedestalCalculatorProcessor.cc:130
virtual void init()
Initialises the processor parameters.
Definition: SimplePedestalCalculatorProcessor.cc:59
void addSample(int adcValue)
Add one measured ADC value to the calculation.
Definition: SimplePedestalCalculatorProcessor.cc:219
double getPedestalWidth() const
Get the width of the pedestal.
Definition: SimplePedestalCalculatorProcessor.cc:190
virtual void check(lcio::LCEvent *evt)
Nothing to check.
Definition: SimplePedestalCalculatorProcessor.cc:124
double getPedestalValue() const
Get the pedestal value.
Definition: SimplePedestalCalculatorProcessor.cc:176
The SimpePedestalCalculatorProcessor calculates the pedestal for each channel from all events in the ...
Definition: SimplePedestalCalculatorProcessor.h:36
virtual void processRunHeader(lcio::LCRunHeader *run)
Nothing to do here...
Definition: SimplePedestalCalculatorProcessor.cc:65
Internal helper class to sum up the pedestals and calculate the mean value and width.
Definition: SimplePedestalCalculatorProcessor.h:72
virtual void processEvent(lcio::LCEvent *evt)
Sum up all pedestals in the pedestalCreator classes.
Definition: SimplePedestalCalculatorProcessor.cc:81
std::map< std::pair< int, int >, pedestalCreator > PedestalCreatorMap_t
For better readability: define a pedestal map type.
Definition: SimplePedestalCalculatorProcessor.h:101