CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
comparisonPlots.h
Go to the documentation of this file.
1 //#include "TMultiGraph.h"
2 #include "TFile.h"
3 //#include "TGraph.h"
4 #include "TCanvas.h"
5 //#include <vector.h>
6 //#include "TVectorD.h"
7 //#include "TVectorD.h"
8 //#include "TEllipse.h"
9 //#include "TH1F.h"
10 //#include "TVector2.h"
11 #include "TArrow.h"
12 #include "TPaveText.h"
13 #include "TFrame.h"
14 #include "TH1F.h"
15 //#include "TF1.h"
16 //#include "TGraph.h"
17 #include "TLegend.h"
18 #include "TH1F.h"
19 #include "TH2F.h"
20 #include "TProfile.h"
21 #include "TTree.h"
22 #include "TCut.h"
23 
25  {
26 
27  public:
28  comparisonPlots(std::string filename, std::string outputDir, std::string outputFilename = "OUTPUT_comparison.root");
29 
30  void readTree();
31  void plot3x5(TCut Cut, char* dirName, bool savePlot = false, std::string plotName = "plot3x5.eps", bool autolimits = false,int ColorCode = 1);
32  void plot3x3Rot(TCut Cut, char* dirName, bool savePlot = false, std::string plotName = "plot3x5.eps", bool autolimits = false,int ColorCode = 1);
33  void plot3x5Profile(TCut Cut, char* dirName, int nBins, bool savePlot = false, std::string plotName = "plot3x5Profile.eps", bool autolimits = false,int ColorCode = 1);
34 
35  void plotTwist(TCut Cut, char* dirName, bool savePlot = false, std::string plotName = "plot3x5.eps", bool autolimits = false,int ColorCode = 1);
36 
37  float arrowSize;
38  void Write();
39  TFile* fin;
40  TFile* output;
41  TTree* data;
42 
43 
44 
45  private:
46 
47  void getMaxMin();
48  void getHistMaxMin( TH1* hist, double &max, double &min, int flag );
49 
51 
52  //reading tree
54  float x_, y_, z_, r_, phi_, alpha_, beta_, gamma_,eta_;
56 
57  float maxR, minR;
58  float maxZ, minZ;
59  float maxPhi, minPhi;
60  float maxDR, minDR;
61  float maxDZ, minDZ;
63  float maxDX, minDX;
64  float maxDY, minDY;
65 
66 
67  };
void plotTwist(TCut Cut, char *dirName, bool savePlot=false, std::string plotName="plot3x5.eps", bool autolimits=false, int ColorCode=1)
void getHistMaxMin(TH1 *hist, double &max, double &min, int flag)
const T & max(const T &a, const T &b)
comparisonPlots(std::string filename, std::string outputDir, std::string outputFilename="OUTPUT_comparison.root")
void plot3x5(TCut Cut, char *dirName, bool savePlot=false, std::string plotName="plot3x5.eps", bool autolimits=false, int ColorCode=1)
void plot3x5Profile(TCut Cut, char *dirName, int nBins, bool savePlot=false, std::string plotName="plot3x5Profile.eps", bool autolimits=false, int ColorCode=1)
tuple filename
Definition: lut2db_cfg.py:20
void plot3x3Rot(TCut Cut, char *dirName, bool savePlot=false, std::string plotName="plot3x5.eps", bool autolimits=false, int ColorCode=1)
std::string _outputDir