CMS 3D CMS Logo

comparisonPlots.h

Go to the documentation of this file.
00001 //#include "TMultiGraph.h"
00002 #include "TFile.h"
00003 //#include "TGraph.h"
00004 #include "TCanvas.h"
00005 //#include <vector.h>
00006 //#include "TVectorD.h"
00007 //#include "TVectorD.h"
00008 //#include "TEllipse.h"
00009 //#include "TH1F.h"
00010 //#include "TVector2.h"
00011 #include "TArrow.h"
00012 #include "TPaveText.h"
00013 #include "TFrame.h"
00014 #include "TH1F.h"
00015 //#include "TF1.h"
00016 //#include "TGraph.h"
00017 #include "TLegend.h"
00018 #include "TH1F.h"
00019 #include "TH2F.h"
00020 #include "TProfile.h"
00021 #include "TTree.h"
00022 #include "TCut.h"
00023 
00024 class comparisonPlots
00025         {
00026                 
00027         public:
00028                 comparisonPlots(std::string filename, std::string outputDir, std::string outputFilename = "OUTPUT_comparison.root");
00029                 
00030                 void readTree();
00031                 void plot3x5(TCut Cut, char* dirName, bool savePlot = false, std::string plotName = "plot3x5.eps", bool autolimits = false);
00032                 void plot3x5Profile(TCut Cut, char* dirName, int nBins, bool savePlot = false, std::string plotName = "plot3x5Profile.eps", bool autolimits = false);
00033                 
00034                 float arrowSize;
00035                 void Write();
00036                 TFile* fin;
00037                 TFile* output;
00038                 TTree*  data;
00039                 
00040                 
00041                 
00042         private:
00043                 
00044                 void getMaxMin();
00045                 void getHistMaxMin( TH1* hist, double &max, double &min, int flag );
00046                 
00047                 std::string _outputDir;
00048                 
00049                 //reading tree
00050                 int id_, level_, sublevel_, mid_, mlevel_, useDetId_, detDim_;
00051                 float x_, y_, z_, r_, phi_, alpha_, beta_, gamma_,eta_;
00052                 float dx_, dy_, dz_, dr_, dphi_, dalpha_, dbeta_, dgamma_;
00053                 
00054                 float maxR, minR;
00055                 float maxZ, minZ;
00056                 float maxPhi, minPhi;
00057                 float maxDR, minDR;
00058                 float maxDZ, minDZ;
00059                 float maxRDPhi, minRDPhi;
00060                 float maxDX, minDX;
00061                 float maxDY, minDY;
00062                 
00063                 
00064                 };

Generated on Tue Jun 9 17:24:58 2009 for CMSSW by  doxygen 1.5.4