ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/IPHCalignment2/analysis/Layout.h
(Generate patch)

Comparing UserCode/IPHCalignment2/analysis/Layout.h (file contents):
Revision 1.5 by econte, Mon Nov 28 17:17:18 2011 UTC vs.
Revision 1.6 by econte, Tue Nov 29 11:01:00 2011 UTC

# Line 22 | Line 22 | class Layout
22    Layout() { counter_=0;}
23    ~Layout() {}
24  
25 <  void Draw(const std::vector<HistoBlock>& histos,
25 >  void Draw(const std::string title, const std::vector<HistoBlock>& histos,
26              const std::string& xlabel, bool fit, float K, float MU, float SIG);
27 <  void Draw(const HistoBlock& histo1,
27 >  void Draw(const std::string title, const HistoBlock& histo1,
28              const std::string& xlabel, bool fit=false, float K=0, float MU=0, float SIG=0)
29    {
30      std::vector<HistoBlock> histos(1);
31      histos[0]=histo1;
32 <    Draw(histos,xlabel,fit,K,MU,SIG);
32 >    Draw(title,histos,xlabel,fit,K,MU,SIG);
33    }
34  
35 <  void Draw(const HistoBlock& histo1, const HistoBlock& histo2,
35 >  void Draw(const std::string title, const HistoBlock& histo1, const HistoBlock& histo2,
36              const std::string& xlabel, bool fit=false, float K=0, float MU=0, float SIG=0)
37    {
38      std::vector<HistoBlock> histos(2);
39      histos[0]=histo1;
40      histos[1]=histo2;
41 <    Draw(histos,xlabel,fit,K,MU,SIG);
41 >    Draw(title,histos,xlabel,fit,K,MU,SIG);
42    }
43  
44 <  void Draw(const HistoBlock& histo1,const HistoBlock& histo2,const HistoBlock& histo3,
44 >  void Draw(const std::string title, const HistoBlock& histo1,const HistoBlock& histo2,const HistoBlock& histo3,
45              const std::string& xlabel, bool fit=false, float K=0, float MU=0, float SIG=0)
46    {
47      std::vector<HistoBlock> histos(3);
48      histos[0]=histo1;
49      histos[1]=histo2;
50      histos[2]=histo3;
51 <    Draw(histos,xlabel,fit,K,MU,SIG);
51 >    Draw(title,histos,xlabel,fit,K,MU,SIG);
52    }
53  
54 <  void Draw(const HistoBlock& histo1, const HistoBlock& histo2,
54 >  void Draw(const std::string title, const HistoBlock& histo1, const HistoBlock& histo2,
55              const HistoBlock& histo3, const HistoBlock& histo4,
56              const std::string& xlabel, bool fit=false, float K=0, float MU=0, float SIG=0)
57    {
# Line 60 | Line 60 | class Layout
60      histos[1]=histo2;
61      histos[2]=histo3;
62      histos[3]=histo4;
63 <    Draw(histos,xlabel,fit,K,MU,SIG);
63 >    Draw(title,histos,xlabel,fit,K,MU,SIG);
64    }
65  
66 <  void Draw(const HistoBlock& histo1, const HistoBlock& histo2,
66 >  void Draw(const std::string title, const HistoBlock& histo1, const HistoBlock& histo2,
67              const HistoBlock& histo3, const HistoBlock& histo4,
68              const HistoBlock& histo5,
69              const std::string& xlabel, bool fit=false, float K=0, float MU=0, float SIG=0)
# Line 74 | Line 74 | class Layout
74      histos[2]=histo3;
75      histos[3]=histo4;
76      histos[4]=histo5;
77 <    Draw(histos,xlabel,fit,K,MU,SIG);
77 >    Draw(title,histos,xlabel,fit,K,MU,SIG);
78    }
79  
80 <  void Draw(const HistoBlock& histo1, const HistoBlock& histo2,
80 >  void Draw(const std::string title, const HistoBlock& histo1, const HistoBlock& histo2,
81              const HistoBlock& histo3, const HistoBlock& histo4,
82              const HistoBlock& histo5, const HistoBlock& histo6,
83              const std::string& xlabel, bool fit=false, float K=0, float MU=0, float SIG=0)
84    {
85 <    std::vector<HistoBlock> histos(5);
85 >    std::vector<HistoBlock> histos(6);
86      histos[0]=histo1;
87      histos[1]=histo2;
88      histos[2]=histo3;
89      histos[3]=histo4;
90      histos[4]=histo5;
91      histos[5]=histo6;
92 <    Draw(histos,xlabel,fit,K,MU,SIG);
92 >    Draw(title,histos,xlabel,fit,K,MU,SIG);
93    }
94  
95    void DrawInit();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines