17 gStyle->SetOptStat(0);
20 Detectors.push_back(
new mRICH(0.00175, 1, 1,
mom) );
21 Detectors.push_back(
new mRICH(0.00175, 1, 2,
mom) );
22 Detectors.push_back(
new mRICH(0.00175, 1, 3,
mom) );
25 TH1* Performance =
new TH1D(
"Performance",
"Performance",100,-6,6);
32 for (
int i=0; i<Detectors.size(); i++)
34 Detectors[i]->description();
38 for (
int i=0; i<Detectors.size(); i++)
40 Plots.push_back( (TH1*)Performance->Clone(Detectors[i]->name().c_str()) );
41 Plots[i]->SetLineColor(i+1);
42 Plots[i]->SetLineWidth(4);
46 for (
int i=1; i<Plots[0]->GetNbinsX(); i++)
48 double eta = Plots[0]->GetBinCenter(i);
49 for (
int j=0; j<Detectors.size(); j++)
59 TCanvas *
c1 =
new TCanvas(
"c1",
"c1",700,500);
61 for (
int i=0; i<Plots.size(); i++)
63 Plots[i]->Draw(
"same");
67 TPaveText *
pt =
new TPaveText(0.15,0.7,0.4,0.90,
"NDC");
68 for (
int i=0; i<Detectors.size(); i++)
70 pt->AddText( Detectors[i]->
name().c_str() );
71 ((TText*)pt->GetListOfLines()->Last())->SetTextColor(i+1);