MarlinTPC  1.2.0
ChargeOnPadsVisualisationProcessor.h
1 # ifndef ChargeOnPadsVisualisationProcessor_h
2 # define ChargeOnPadsVisualisationProcessor_h 1
3 
4 //LCIO
5 #include <lcio.h>
6 
7 //MARLIN
8 #include <marlin/Processor.h>
9 
10 //GEAR
11 #include <gear/PadRowLayout2D.h>
12 
13 namespace AIDA{
14  class IHistogram2D;
15 }
16 
17 
18 namespace marlintpc{
19 
20 /* The following comment is tranfered to doxygen documentation
21  * which begins with a second asterix, or in case of on line comment an extra third slash
22  */
23 
43  class ChargeOnPadsVisualisationProcessor : public marlin::Processor {
44 
45  public:
46 
47  virtual Processor* newProcessor() { return new ChargeOnPadsVisualisationProcessor ; }
48 
49 
52 
56  virtual void init() ;
57 
60  virtual void processRunHeader( EVENT::LCRunHeader* run ) ;
61 
64  virtual void processEvent( EVENT::LCEvent * evt ) ;
65 
66 
67  protected:
68 
69  std::string _inputCollectionName;
70 
71  //For internal bookkeeping only.
72  int _nEvt;
73  int _nRun;
74 
75  AIDA::IHistogram2D* _chargeOnPads;
76 
77  //gear pad layout
78  gear::PadRowLayout2D const* _padLayout;
79 
80  //pad layout type.
81  int _padLayoutType;
82 
83  int _resetHisto;
84 
85  };
86 
87 } //end of namespace marlintpc
88 #endif
virtual void processRunHeader(EVENT::LCRunHeader *run)
Called for every run.
Definition: ChargeOnPadsVisualisationProcessor.cc:126
This processor fills an 2D root histogram which represents the pad plane.
Definition: ChargeOnPadsVisualisationProcessor.h:43
std::string _inputCollectionName
Inputcollection name.
Definition: ChargeOnPadsVisualisationProcessor.h:69
virtual void init()
Called at the begin of the job before anything is read.
Definition: ChargeOnPadsVisualisationProcessor.cc:59
virtual void processEvent(EVENT::LCEvent *evt)
Called for every event - the working horse.
Definition: ChargeOnPadsVisualisationProcessor.cc:140