00001 #ifndef ANP_EVENTHITTAB_H
00002 #define ANP_EVENTHITTAB_H
00003
00004
00005 #include <vector>
00006
00007
00008 #include "Registry/Registry.h"
00009
00010
00011 #include "PhysicsNtuple/Record.h"
00012 #include "PhysicsNtuple/EventTab.h"
00013
00014 #include "DrawSpan.h"
00015
00016 class TAxis;
00017 class TCanvas;
00018 class TGraph;
00019 class TH2;
00020 class TPad;
00021
00022 namespace Anp
00023 {
00024 class EventHitTab: public EventTab
00025 {
00026 public:
00027
00028 EventHitTab();
00029 virtual ~EventHitTab();
00030
00031 void Init(TCanvas* canvas);
00032 void Expose();
00033 void Set(const Event &event, const Record &record);
00034 void ZoomIn();
00035 void ZoomOut();
00036
00037 void Config(const Registry ®);
00038
00039 private:
00040
00041 void SetTrack(const Track &track, const Record &record, short index);
00042 void SetShowers(const Event &event, const Record &record);
00043 void SetOthers(const Event &event, const Record &record);
00044
00045 bool Init(const Record &record);
00046
00047 void Reset();
00048
00049 private:
00050
00051 Registry fConfig;
00052
00053 std::vector<TObject *> fObjVec;
00054
00055 bool fInit;
00056 bool fDraw;
00057
00058 DrawSpan fSpan;
00059
00060 TCanvas *fCanvas;
00061
00062 TPad *fPadU;
00063 TPad *fPadV;
00064
00065 TH2 *f2hU;
00066 TH2 *f2hV;
00067
00068 TGraph *fgShwU;
00069 TGraph *fgShwV;
00070
00071 TGraph *fgTrk1U;
00072 TGraph *fgTrk1V;
00073
00074 TGraph *fgTrk2U;
00075 TGraph *fgTrk2V;
00076 };
00077 }
00078
00079 #endif