From 8c8d7bc3e04b8f4d5215cc329604305b78001a1f Mon Sep 17 00:00:00 2001
From: Elidiano Tronchin <elidiano.tronchin@gmail.com>
Date: Sat, 24 Nov 2018 17:36:37 +0100
Subject: [PATCH] * Added fit parameters values with setter and getters

---
 NPLib/Detectors/Minos/TMinosData.cxx | 10 +++++++
 NPLib/Detectors/Minos/TMinosData.h   | 43 +++++++++++++++++++++++++++-
 2 files changed, 52 insertions(+), 1 deletion(-)

diff --git a/NPLib/Detectors/Minos/TMinosData.cxx b/NPLib/Detectors/Minos/TMinosData.cxx
index 03e795c65..d59dc0eaf 100644
--- a/NPLib/Detectors/Minos/TMinosData.cxx
+++ b/NPLib/Detectors/Minos/TMinosData.cxx
@@ -123,6 +123,16 @@ Z.clear();
 trackID.clear();
 parentID.clear();
 
+ //For take fitpar values
+MINOSx_0.clear();
+MINOSy_0.clear();
+MINOSz_0.clear();
+ MINOS_D_min.clear();
+ MINOS_Radius.clear();
+ MINOS_NumberTracks.clear();
+ theta0.clear();
+ phi0.clear();
+energy0.clear();
 
 
 
diff --git a/NPLib/Detectors/Minos/TMinosData.h b/NPLib/Detectors/Minos/TMinosData.h
index 01ba60dbd..b6773407b 100644
--- a/NPLib/Detectors/Minos/TMinosData.h
+++ b/NPLib/Detectors/Minos/TMinosData.h
@@ -68,7 +68,7 @@ vector<double> x0, y0, z0, theta0, phi0, energy0;
 vector<bool> detection;
 int event;
 */
-
+ vector<Double_t> MINOSx_0, MINOSy_0, MINOSz_0, MINOS_D_min, MINOS_Radius, MINOS_NumberTracks, theta0, phi0, energy0; //For take fitpar values
 
   //////////////////////////////////////////////////////////////
   // Constructor and destructor
@@ -111,6 +111,33 @@ int event;
     };//!
     //
 
+
+
+    //Setters for position vertex and obsv in experiment analysis
+
+    // Position
+    inline void SetVertexPos(const Double_t& x,const Double_t& y,const Double_t& z)	{
+      MINOSx_0.push_back(x);
+      MINOSy_0.push_back(y);
+      MINOSz_0.push_back(z);     
+    };//!
+
+// Min Distance
+    inline void SetD_min(const Double_t& dmin)     {
+      MINOS_D_min.push_back(dmin);
+    };//!
+
+
+
+
+
+
+
+
+
+
+    
+
     //////////////////////    GETTERS    ////////////////////////
     // Energy
     inline UShort_t GetMultEnergy() const
@@ -129,6 +156,20 @@ int event;
       {return fMinos_Time[i];}//!
 
 
+    // Position
+    inline Double_t GetVertexPos() const
+    {return MINOSz_0[0] ; }//!
+    inline Double_t GetVertexPosX() const
+    {return MINOSx_0[0] ; }//!
+    inline Double_t GetVertexPosY() const
+    {return MINOSy_0[0] ; }//!
+    inline Double_t GetVertexPosZ() const
+    {return MINOSz_0[0] ; }//!
+
+    // Min Distance
+    inline Double_t GetD_min() const
+    {return MINOS_D_min[0] ; }//!
+
   //////////////////////////////////////////////////////////////
   // Required for ROOT dictionnary
   ClassDef(TMinosData,1)  // MinosData structure
-- 
GitLab