MarlinTPC  1.2.0
HistogramSimTrackerHitChargeSpectrumProcessor.h
1 #ifndef HISTOGRAMSIMTRACKERHITCHARGESPECTRUMPROCESSOR_H
2 #define HISTOGRAMSIMTRACKERHITCHARGESPECTRUMPROCESSOR_H
3 
4 #include <marlin/Processor.h>
5 #include <lcio.h>
6 #include <string>
7 
8 // In case you want AIDA histograms
9 namespace AIDA
10 {
11  class IHistogram1D;
12 }
13 
14 namespace marlintpc
15 {
16 
24 class HistogramSimTrackerHitChargeSpectrumProcessor : public marlin::Processor
25 {
26  public:
27 
28  virtual Processor* newProcessor() { return new HistogramSimTrackerHitChargeSpectrumProcessor; }
29 
31 
32  virtual void init();
33 
34  virtual void processRunHeader(EVENT::LCRunHeader* run);
35 
36  virtual void processEvent(EVENT::LCEvent* evt);
37 
38  virtual void check(EVENT::LCEvent* evt);
39 
40  virtual void end();
41 
42 
43  protected:
44  /* the place for protected and private member data and functions */
45  std::string _inputColName;
46 
47  AIDA::IHistogram1D * _myAidaHistogram;
49  float _histoMin;
50  float _histoMax;
51 
52 };
53 } // namespace marlintpc
54 #endif // HISTOGRAMSIMTRACKERHITCHARGESPECTRUMPROCESSOR_H
AIDA::IHistogram1D * _myAidaHistogram
Pointer to the histogram.
Definition: HistogramSimTrackerHitChargeSpectrumProcessor.h:47
float _histoMax
Maximum of the histogram.
Definition: HistogramSimTrackerHitChargeSpectrumProcessor.h:50
std::string _inputColName
Name of the input collection.
Definition: HistogramSimTrackerHitChargeSpectrumProcessor.h:45
int _histoNBins
Number of bins in the histogram.
Definition: HistogramSimTrackerHitChargeSpectrumProcessor.h:48
Histogram the charge of SimTrackerHits in units of e (hardcoded value 26 eV for Argon).
Definition: HistogramSimTrackerHitChargeSpectrumProcessor.h:24
float _histoMin
Minimum of the histogram.
Definition: HistogramSimTrackerHitChargeSpectrumProcessor.h:49