Luiza  v03-01
RootImageViewer.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef RootImageViewer_h
4 #define RootImageViewer_h 1
5 
6 #include "RootProcessor.h"
7 
8 
9 // root includes
10 
11 #include "TASImage.h"
12 #include "TH2D.h"
13 #include "TGraph.h"
14 #include "TTimer.h"
15 
16 using namespace gloria;
17 
18 namespace luiza {
19 
20 
22 
30  class RootImageViewer : public RootProcessor {
31 
32  public:
33 
34  virtual Processor* newProcessor() { return new RootImageViewer ; }
35 
36 
37  RootImageViewer() ;
38 
42  virtual void init() ;
43 
46  virtual void processData( GloriaDataContainer* data ) ;
47 
48 
49  virtual void check( GloriaDataContainer* data ) ;
50 
51 
54  virtual void end() ;
55 
56 
57  protected:
58 
59  void printEndMessage() const ;
60 
61  string _imageCollectionName;
62 
63  string _listCollectionName;
64 
65  string _canvasName;
66 
67  string _canvasTitle;
68 
69  bool _showHistogram;
70 
71  static TTimer* rootTimer;
72 
73  TASImage* rootImage;
74  TH2D* rootHistogram;
75  TGraph* rootGraph;
76 
77  int _pauseTime;
78  std::vector<int > _CanvasGeom;
79 
80  int _nLoops ;
81  int _nImages ;
82 
83  } ;
84 
85 } // end namespace luiza
86 #endif
87 
88 
89 
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for Luiza processors.
Definition: Processor.h:55
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: RootImageViewer.h:34
Namespace for Luiza framework.
Definition: CCCollection.h:6
Processor allowing to view images during processing.
Definition: RootImageViewer.h:30
Base class for processors accessing input data.
Definition: RootProcessor.h:23