{
TGraph *g = new TGraph("10B27Al-120MeV-Ge-8.dat");
g->SetTitle("Sample title;channel number;#counts");
Int_t T_real = g->GetY()[0]; g->GetY()[0] = 0;
Int_t T_vivo = g->GetY()[1]; g->GetY()[1] = 0;
std::cout << "Espectro en: " << g->GetN() << " canales" << std::endl;
std::cout << "T real: " << T_real << " s" << std::endl;
std::cout << "T vivo: " << T_vivo << " s" << std::endl;
g->Draw("ALP");
// g->SetMinimum(1); gPad->SetLogy(1);
}
1 Like