anaDisplay.cxx

Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <iostream>
00003 
00004 #include "TRootanaDisplay.hxx"
00005 #include "TH1D.h"
00006 #include "TV792Data.hxx"
00007 
00008 #include "TFancyHistogramCanvas.hxx"
00009 
00010 #define USE_V792
00011 #define USE_V1190
00012 //#define USE_L2249
00013 //#define USE_AGILENT
00014 
00015 
00016 #ifdef  USE_V792
00017 #include "TV792Histogram.h"
00018 #endif 
00019 #ifdef  USE_V1190
00020 #include "TV1190Histogram.h"
00021 #endif 
00022 #ifdef  USE_L2249
00023 #include "TL2249Histogram.h"
00024 #endif 
00025 #ifdef  USE_AGILENT
00026 #include "TAgilentHistogram.h"
00027 #endif 
00028 
00029 
00030 
00031 class MyTestLoop: public TRootanaDisplay { 
00032 
00033 public:
00034 
00035   MyTestLoop() {
00036     SetOutputFilename("example_output");
00037     DisableRootOutput(false);
00038   }
00039 
00040   void AddAllCanvases(){
00041 
00042     SetNumberSkipEvent(100);
00043     // Set up tabbed canvases
00044 #ifdef  USE_V792
00045     TFancyHistogramCanvas* v792_all = new TFancyHistogramCanvas(new TV792Histograms(),"V792");
00046     AddSingleCanvas(v792_all);
00047 #endif 
00048 #ifdef  USE_V1190
00049     TFancyHistogramCanvas* v1190_all = new TFancyHistogramCanvas(new TV1190Histograms(),"V1190");
00050     AddSingleCanvas(v1190_all);
00051 #endif 
00052 #ifdef  USE_L2249
00053    TFancyHistogramCanvas* l2249_all = new TFancyHistogramCanvas(new TL2249Histograms(),"L2249");
00054     AddSingleCanvas(l2249_all);
00055 #endif 
00056 #ifdef  USE_AGILENT
00057    TFancyHistogramCanvas* agilent_all = new TFancyHistogramCanvas(new TAgilentHistograms(),"AGILENT");
00058     AddSingleCanvas(agilent_all);
00059 #endif 
00060 
00061 
00062     SetDisplayName("Example Display");
00063   };
00064 
00065   virtual ~MyTestLoop() {};
00066 
00067   void ResetHistograms(){}
00068 
00069   void UpdateHistograms(TDataContainer& dataContainer){}
00070 
00071   void PlotCanvas(TDataContainer& dataContainer){}
00072 
00073 
00074 }; 
00075 
00076 
00077 
00078 
00079 
00080 
00081 int main(int argc, char *argv[])
00082 {
00083   MyTestLoop::CreateSingleton<MyTestLoop>();  
00084   return MyTestLoop::Get().ExecuteLoop(argc, argv);
00085 }
00086 

Generated on 5 May 2014 for ROOT Analyzer by  doxygen 1.6.1