From 9f8fce5d471db8db6bfccaee2bbcd51a1fabaad7 Mon Sep 17 00:00:00 2001
From: Viktor <klochkov44@gmail.com>
Date: Fri, 21 Sep 2018 11:13:22 +0200
Subject: [PATCH] simpler example for model parameters

---
 glauber/Fitter.cpp | 1 -
 glauber/main.cpp   | 6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/glauber/Fitter.cpp b/glauber/Fitter.cpp
index e702e9d..f8c54e9 100644
--- a/glauber/Fitter.cpp
+++ b/glauber/Fitter.cpp
@@ -372,7 +372,6 @@ std::unique_ptr<TH1F> Glauber::Fitter::GetModelHisto (const float range[2], TStr
         for (int j=0; j<Na; ++j){
             nHits += (int)fNbdHisto.GetRandom();
         }
-//         nHits += random.Rndm();
         
         if ( nHits > range[0] && nHits < range[1] ){
             hModel->Fill(modelpar);
diff --git a/glauber/main.cpp b/glauber/main.cpp
index d324938..7a57337 100644
--- a/glauber/main.cpp
+++ b/glauber/main.cpp
@@ -71,11 +71,11 @@ int main(int argc, char *argv[])
     
     Glauber::DrawHistos(fitter, true, true, true, true);
 
-    const float range[2] = {100, 160.};
-    std::unique_ptr<TH1F> hB(fitter.GetModelHisto (range, "Npart", par, 100000));
+    const float range[2] = {300, 350.};
+    std::unique_ptr<TH1F> hB(fitter.GetModelHisto (range, "B", par, 100000));
     hB->SaveAs( "b_test.root" );
     
     std::cout << "END!" << std::endl;
 
     return 0;
-}
\ No newline at end of file
+}
-- 
GitLab