MarlinTPC
1.2.0
|
The SimpePedestalCalculatorProcessor calculates the pedestal for each channel from all events in the run. More...
#include <SimplePedestalCalculatorProcessor.h>
Classes | |
class | pedestalCreator |
Internal helper class to sum up the pedestals and calculate the mean value and width. More... | |
Public Member Functions | |
virtual Processor * | newProcessor () |
virtual void | init () |
Initialises the processor parameters. | |
virtual void | processRunHeader (lcio::LCRunHeader *run) |
Nothing to do here... | |
virtual void | processEvent (lcio::LCEvent *evt) |
Sum up all pedestals in the pedestalCreator classes. | |
virtual void | check (lcio::LCEvent *evt) |
Nothing to check. | |
virtual void | end () |
The end function writes the caclulated pedestals to the lcio file. | |
Protected Types | |
typedef std::map< std::pair < int, int >, pedestalCreator > | PedestalCreatorMap_t |
For better readability: define a pedestal map type. | |
Protected Attributes | |
PedestalCreatorMap_t | _pedestalCreatorMap |
A map to associate a hardware ID (pair of ints for channel and readout group) to the corresponding pedestal creator object. | |
std::string | _inputColName |
std::string | _outputColName |
std::string | _outputFileName |
The SimpePedestalCalculatorProcessor calculates the pedestal for each channel from all events in the run.
It just sums up all measured ADC values and calculates the mean value, so the data must not contain peaks. You need dedicated pedestal runs to record these data. The output is a simple lcio file with only one event containing the conditions data. Data base files or MySQL conditions data will not be supported.
Processor Parameters:
InputCollectionName | Name of the TrackerRawData input collection (default: TPCRawData)" |
OutputCollectionName | Name of the output collection (default: TPCPedestals) |
OutputFileName | Name of the lcio output file (existing file will be overwritten). Default: TPCPedestals.slcio |