MarlinTPC  1.2.0
PedestalSubtractorProcessor.h
1 #ifndef PedestalSubtractorProcessor_h
2 #define PedestalSubtractorProcessor_h 1
3 
4 // LCIO
5 #include "lcio.h"
6 
7 // Marlin
8 #include "marlin/Processor.h"
9 #include "marlin/Exceptions.h"
10 
11 // MarlinTPC
12 #include "Pedestal.h"
13 #include "PedestalListener.h"
14 #include "ADCElectronicsListener.h"
15 
16 // C++
17 #include <string>
18 
19 
20 
21 namespace marlintpc
22 {
23 
49 class PedestalSubtractorProcessor : public marlin::Processor
50 {
51 
52  public:
53 
54  virtual Processor* newProcessor()
55  {
56  return new PedestalSubtractorProcessor ;
57  }
58 
60 
61  virtual void init() ;
62 
63  virtual void processRunHeader(lcio::LCRunHeader* run) ;
64 
65  virtual void processEvent(lcio::LCEvent * evt) ;
66 
67  virtual void check(lcio::LCEvent * evt) ;
68 
69  virtual void end() ;
70 
71 
72  protected:
73 
75  std::string _inputColName ;
77  std::string _outputColName ;
79  std::string _pedestalColName ;
81  std::string _electrParaObjName ;
83  std::string _electrParaColName ;
84 
87 
91 
95 
99 
100  private:
101 
102  PedestalListener* _pedestalListener;
103  ADCElectronicsListener* _adcElectronicsListener;
104 
106  lcio::long64 _missingConditionsDataOverrideLCIOTime;
107 } ;
108 }
109 #endif
float _pedestal_value_override
The pedestal value to be used for every hardware channel in every readout group.
Definition: PedestalSubtractorProcessor.h:94
std::string _inputColName
the name of the input collection
Definition: PedestalSubtractorProcessor.h:75
Helper Class which provides access to the pedestals for every event.
Definition: PedestalListener.h:37
Helper Class which provides access to the parameters of ADC Electroncis.
Definition: ADCElectronicsListener.h:39
bool _outputIsPersistent
set the persistency flag of the output collection
Definition: PedestalSubtractorProcessor.h:86
Pedestal subtracting processor of the MarlinTPC package.
Definition: PedestalSubtractorProcessor.h:49
int _missingConditionsDataOverrideTimespan
The timepan in seconds for which the last valid collection will be used if no conditions data are ava...
Definition: PedestalSubtractorProcessor.h:98
std::string _electrParaObjName
the name of the collection with the read out electronics parameters
Definition: PedestalSubtractorProcessor.h:81
std::string _electrParaColName
the name of the collection with the read out electronics parameters
Definition: PedestalSubtractorProcessor.h:83
std::string _pedestalColName
the name of the pedestal collection
Definition: PedestalSubtractorProcessor.h:79
std::string _outputColName
the name of the output collection
Definition: PedestalSubtractorProcessor.h:77
int _maximum_ADC_value_override
The maximum adc value, needed to determine if a pulse is maxed out.
Definition: PedestalSubtractorProcessor.h:90