MarlinTPC  1.2.0
ADCRawEventDisplayProcessor.h
1 #ifndef ADCRawEventDisplayProcessor_h
2 #define ADCRawEventDisplayProcessor_h 1
3 
4 // LCIO
5 #include "lcio.h"
6 
7 // Marlin
8 #include "marlin/Processor.h"
9 
10 namespace AIDA{
11  class IHistogram1D;
12 }
13 
14 namespace marlintpc{
15 
35  class ADCRawEventDisplayProcessor : public marlin::Processor {
36 
37  public:
38 
39  /* This method will be called by the marlin package
40  * It returns a processor of the currend type (here AltroRawEventDisplayProcessor)
41  */
42  virtual Processor* newProcessor() { return new ADCRawEventDisplayProcessor ; }
43 
44  /* the default constructor
45  * here the processor parameters are registered to the marlin package
46  * other initialisation should be placed in the init method
47  */
49 
50  /* Called at the beginning of the job before anything is read.
51  * Use to initialize the processor, e.g. book histograms
52  */
53  virtual void init() ;
54 
55  /* Called for every run.
56  * in this processor it is not used
57  */
58  virtual void processRunHeader( lcio::LCRunHeader* run ) ;
59 
60  /* Called for every event - the working horse.
61  * Here the real conversion take place
62  */
63  virtual void processEvent( lcio::LCEvent * evt ) ;
64 
65  /* This method is only called if the check flag is set (default) in the main processor
66  * (where the input files are given)
67  * It should be used to create check plots which are not needed in a complete analysis
68  * (where normaly the check flag is deactivated)
69  */
70  virtual void check( lcio::LCEvent * evt ) ;
71 
72 
73  /* Called after data processing for clean up.
74  * e.g. saving control histogramms, delete created objects
75  * (which are not stored in a collection/event), etc.
76  */
77  virtual void end() ;
78 
79 
80  protected:
81 
82  /* normally the doxygen documentation is palced before the method/variable
83  * but for one line comments in case of variables it may be more convenied for you
84  * to place it after the variable. In this case you use an arrow to tell doxygen
85  * to which variable the commet belongs to.
86  */
88  std::string _inputColName;
89 
91  bool _deleteHistograms;
92 
93  std::map<std::pair<int,int>, AIDA::IHistogram1D*> rawHistos;
94 
95  } ;
96 
97 }
98 
99 #endif
100 
101 
102 
This processor creates one histogram with the raw data of each channel.
Definition: ADCRawEventDisplayProcessor.h:35
int _nTimeSamples
Number of time samples (bins per histogram)
Definition: ADCRawEventDisplayProcessor.h:87
std::string _inputColName
Name of the input collection.
Definition: ADCRawEventDisplayProcessor.h:88