void SetMaxCA_ForAlign(){ const int ndt=4; const int nda=4; int vdt[ndt] = {0, 200, 600, 800}; int vda[nda] = {0, 3, 6, 9}; int psiCA[nda][ndt]; TMultiGraph *mgr_CAlim = new TMultiGraph("CAlim",""); TLegend *leg = new TLegend(0.15,0.7,0.39,0.98); TGraph *grpsi[nda]; for(int ida=0; idaGet("hcosPSI"); double IntTot = hcospsi->Integral(); double EntTot = hcospsi->GetEntries(); // cout<<"IntTot = "<AddEntry(grpsi[ida],leAng,"P"); } mgr_CAlim->Draw("APL"); mgr_CAlim->GetXaxis()->SetTitle("#delta_{t}, #mum"); mgr_CAlim->GetYaxis()->SetTitle("CA limit to accept 90% of neighboring cells, 10^{-5}"); leg->SetFillColor(0); leg->Draw(); // hcospsi->Draw(); }