MarlinTPC  1.2.0
TimePixRemoveMaskedPixelsProcessor.h
1 #ifndef TimePixRemoveMaskedPixelsProcessor_h
2 #define TimePixRemoveMaskedPixelsProcessor_h 1
3 
4 // C++
5 #include <string>
6 
7 // LCIO
8 #include "lcio.h"
9 
10 // Marlin
11 #include "marlin/Processor.h"
12 #include "TimePixPixelMode.h"
13 #include "lccd/ConditionsMap.hh"
14 #include "TimePixMapListener.h"
15 
16 namespace AIDA{
17  class IHistogram2D;
18 }
19 
20 namespace marlintpc{
21 
22  /* the following comment is tranfered to doxygen documentation
23  * which begins with a second asterix, or in case of on line comment an extra third slash
24  */
47  class TimePixRemoveMaskedPixelsProcessor : public marlin::Processor {
48 
49  public:
50 
51  /* This method will be called by the marlin package
52  * It returns a processor of the currend type (here TimePixRemoveMaskedPixelsProcessor)
53  */
54  virtual Processor* newProcessor() { return new TimePixRemoveMaskedPixelsProcessor ; }
55 
56  /* the default constructor
57  * here the processor parameters are registered to the marlin package
58  * other initialisation should be placed in the init method
59  */
61 
62  /* Called at the beginning of the job before anything is read.
63  * Use to initialize the processor, e.g. book histograms
64  */
65  virtual void init() ;
66 
67  /* Called for every run.
68  * in this processor it is not used
69  */
70  virtual void processRunHeader( lcio::LCRunHeader* run ) ;
71 
72  /* Called for every event - the working horse.
73  * Here the real conversion take place
74  */
75  virtual void processEvent( lcio::LCEvent * evt ) ;
76 
77  /* This method is only called if the check flag is set (default) in the main processor
78  * (where the input files are given)
79  * It should be used to create check plots which are not needed in a complete analysis
80  * (where normaly the check flag is deactivated)
81  */
82  virtual void check( lcio::LCEvent * evt ) ;
83 
84 
85  /* Called after data processing for clean up.
86  * e.g. saving control histogramms, delete created objects
87  * (which are not stored in a collection/event), etc.
88  */
89  virtual void end() ;
90 
91 
92  protected:
93 
94  /* normally the doxygen documentation is placed before the method/variable
95  * but for one line comments in case of variables it may be more convenient for you
96  * to place it after the variable. In this case you use an arrow to tell doxygen
97  * to which variable the comment belongs to.
98  */
99 
100  std::string _inputColName ;
101  std::string _outputColName ;
102 
107 
113 
114  int _nRun ;
115  int _nEvt ;
116 
118 
121 
122  tpcconddata::TimePixMap * _timePixMap;
123 
124 private:
125 
126  } ;
127 
128 }
129 
130 #endif
131 
132 
133 
std::string _inputColName
Definition: TimePixRemoveMaskedPixelsProcessor.h:100
int _nEvt
Definition: TimePixRemoveMaskedPixelsProcessor.h:115
bool isFirstCollection
is true till the first output collection is written to an event used to store parameters only in the ...
Definition: TimePixRemoveMaskedPixelsProcessor.h:112
bool _removeDeadPixels
Flag whether to remove dead pixels from data.
Definition: TimePixRemoveMaskedPixelsProcessor.h:120
bool _removeNoisyPixels
Flag whether to remove noisy pixels from data.
Definition: TimePixRemoveMaskedPixelsProcessor.h:119
std::string _outputColName
Definition: TimePixRemoveMaskedPixelsProcessor.h:101
int _outputIsTransient
give the status which is set to the transient flag of the output collection it is an int instead of a...
Definition: TimePixRemoveMaskedPixelsProcessor.h:106
bool _skipEmptyEvents
Flag whether to throw SkipEventException for epmty events.
Definition: TimePixRemoveMaskedPixelsProcessor.h:117
remove masked pixels Processor of the MarlinTPC package .
Definition: TimePixRemoveMaskedPixelsProcessor.h:47
int _nRun
Definition: TimePixRemoveMaskedPixelsProcessor.h:114