3 vector< TString > v_cuts;
5 TString base_ep =
"em_cluster_e/em_track_ptotal > ";
6 TString base_prob =
"em_cluster_prob >= ";
8 Double_t cut_ep = 0.90;
9 Double_t cut_prob = 0.02;
10 v_cuts.push_back(TString(base_ep) += cut_ep);
11 v_cuts.push_back(TString(base_prob) += cut_prob);
13 for (
unsigned i = 0;
i < v_cuts.size();
i++ )
15 cout << v_cuts.at(
i) << endl;
18 vector< float > v_momenta;
19 v_momenta.push_back(1.0);
20 v_momenta.push_back(2.0);
21 v_momenta.push_back(5.0);
22 v_momenta.push_back(10.0);
23 v_momenta.push_back(20.0);
32 vector< float > v_rates_tp;
33 vector< float > v_rates_fp;
35 for (
unsigned idx_p = 0; idx_p < v_momenta.size(); idx_p++ )
37 v_rates_tp.push_back( 1. - 0.1 * v_momenta.at(idx_p) );
38 v_rates_fp.push_back( 0.1 * v_momenta.at(idx_p) );
40 TGraph* g_tp =
new TGraph(v_momenta.size(), &(v_momenta[0]), &(v_rates_tp[0]));
41 TGraph* g_fp =
new TGraph(v_momenta.size(), &(v_momenta[0]), &(v_rates_fp[0]));
43 g_tp->SetMarkerColor(kGreen+2);
44 g_fp->SetMarkerColor(kRed+2);
46 g_tp->SetLineColor(g_tp->GetMarkerColor());
47 g_fp->SetLineColor(g_fp->GetMarkerColor());