23 |
|
~Layout() {} |
24 |
|
|
25 |
|
void Draw(const std::vector<HistoBlock>& histos, |
26 |
< |
std::string& xlabel, float K, float MU, float SIG); |
26 |
> |
const std::string& xlabel, bool fit, float K, float MU, float SIG); |
27 |
> |
void Draw(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); |
33 |
> |
} |
34 |
> |
|
35 |
> |
void Draw(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); |
42 |
> |
} |
43 |
> |
|
44 |
> |
void Draw(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); |
52 |
> |
} |
53 |
> |
|
54 |
> |
void Draw(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 |
> |
{ |
58 |
> |
std::vector<HistoBlock> histos(4); |
59 |
> |
histos[0]=histo1; |
60 |
> |
histos[1]=histo2; |
61 |
> |
histos[2]=histo3; |
62 |
> |
histos[3]=histo4; |
63 |
> |
Draw(histos,xlabel,fit,K,MU,SIG); |
64 |
> |
} |
65 |
> |
|
66 |
|
void DrawInit(); |
67 |
|
|
68 |
|
private: |
83 |
|
{ |
84 |
|
for (unsigned int i=0;i<name.size();i++) |
85 |
|
{ |
86 |
< |
if (name[i]=' ') name[i]='_'; |
87 |
< |
if (name[i]='*') name[i]='_'; |
88 |
< |
if (name[i]='/') name[i]='_'; |
89 |
< |
if (name[i]='\\') name[i]='_'; |
86 |
> |
if (name[i]=='^') name[i]='_'; |
87 |
> |
else if (name[i]=='{') name[i]='_'; |
88 |
> |
else if (name[i]=='}') name[i]='_'; |
89 |
> |
else if (name[i]=='(') name[i]='_'; |
90 |
> |
else if (name[i]==')') name[i]='_'; |
91 |
> |
else if (name[i]==' ') name[i]='_'; |
92 |
> |
else if (name[i]=='*') name[i]='_'; |
93 |
> |
else if (name[i]=='/') name[i]='_'; |
94 |
> |
else if (name[i]=='\\') name[i]='_'; |
95 |
> |
else if (name[i]=='#') name[i]='_'; |
96 |
|
} |
97 |
|
return name; |
98 |
|
} |