Skip to content
Snippets Groups Projects
Commit 9f8fce5d authored by Viktor's avatar Viktor
Browse files

simpler example for model parameters

parent 0ee4a91d
No related branches found
No related tags found
No related merge requests found
...@@ -372,7 +372,6 @@ std::unique_ptr<TH1F> Glauber::Fitter::GetModelHisto (const float range[2], TStr ...@@ -372,7 +372,6 @@ std::unique_ptr<TH1F> Glauber::Fitter::GetModelHisto (const float range[2], TStr
for (int j=0; j<Na; ++j){ for (int j=0; j<Na; ++j){
nHits += (int)fNbdHisto.GetRandom(); nHits += (int)fNbdHisto.GetRandom();
} }
// nHits += random.Rndm();
if ( nHits > range[0] && nHits < range[1] ){ if ( nHits > range[0] && nHits < range[1] ){
hModel->Fill(modelpar); hModel->Fill(modelpar);
......
...@@ -71,11 +71,11 @@ int main(int argc, char *argv[]) ...@@ -71,11 +71,11 @@ int main(int argc, char *argv[])
Glauber::DrawHistos(fitter, true, true, true, true); Glauber::DrawHistos(fitter, true, true, true, true);
const float range[2] = {100, 160.}; const float range[2] = {300, 350.};
std::unique_ptr<TH1F> hB(fitter.GetModelHisto (range, "Npart", par, 100000)); std::unique_ptr<TH1F> hB(fitter.GetModelHisto (range, "B", par, 100000));
hB->SaveAs( "b_test.root" ); hB->SaveAs( "b_test.root" );
std::cout << "END!" << std::endl; std::cout << "END!" << std::endl;
return 0; return 0;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment