From b95ca3014e677e58489ed800b53dcf6ecf40fa6c Mon Sep 17 00:00:00 2001
From: soul <soul@se51-99.jinr.ru>
Date: Tue, 14 Mar 2017 15:09:03 +0300
Subject: [PATCH] some compilation errors were corrected to prepare for
 external tools of memory checking

---
 CMakeLists.txt                        |  2 +-
 clustering/CMakeLists.txt             |  8 +++-----
 emc/clustering/EmcClusterCollection.h |  2 +-
 generators/MpdLAQGSMGenerator.cxx     | 12 +++++++-----
 macro/mpd_scheduler                   |  2 +-
 mpdfield/MpdFieldMap.cxx              |  6 ++++++
 tpc/MpdTpcClusterFinderTask.h         |  2 +-
 7 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4378da7..db44d54 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -185,6 +185,7 @@ add_subdirectory (mcstack)
 add_subdirectory (lhetrack)
 add_subdirectory (kalman)
 add_subdirectory (macro)
+add_subdirectory (clustering)
 add_subdirectory (tpc)
 add_subdirectory (tof)
 add_subdirectory (zdc)
@@ -204,7 +205,6 @@ add_subdirectory (cpc)
 add_subdirectory (shield_pack)
 add_subdirectory (strawECT)
 add_subdirectory (physics/femto)
-add_subdirectory (clustering)
 #add_subdirectory (mpdpid)
 
 if(EXISTS "${CMAKE_SOURCE_DIR}/macro/mpd_scheduler/CMakeLists.txt")
diff --git a/clustering/CMakeLists.txt b/clustering/CMakeLists.txt
index 9c9b9b4..0e74a15 100644
--- a/clustering/CMakeLists.txt
+++ b/clustering/CMakeLists.txt
@@ -5,16 +5,15 @@
  #         GNU Lesser General Public Licence version 3 (LGPL) version 3,        #  
  #                  copied verbatim in the file "LICENSE"                       #
  ################################################################################
-# Create a library called "libSpdSts" which includes the source files given in
-# the array .
-# The extension is already found.  Any number of sources could be listed here.
+# Create a library called "libClustering" which includes the source files given in
+# the array
 
 set(INCLUDE_DIRECTORIES
 ${ROOT_INCLUDE_DIR} 
 ${CMAKE_SOURCE_DIR}/clustering
 )
 
-include_directories( ${INCLUDE_DIRECTORIES})
+include_directories(${INCLUDE_DIRECTORIES})
 
 set(LINK_DIRECTORIES
 ${ROOT_LIBRARY_DIR}
@@ -23,7 +22,6 @@ ${ROOT_LIBRARY_DIR}
 link_directories( ${LINK_DIRECTORIES})
 
 set(MPDCLUSTER_SRCS
-
 ClusterElement.cxx
 Cluster.cxx
 ClusterCollection.cxx
diff --git a/emc/clustering/EmcClusterCollection.h b/emc/clustering/EmcClusterCollection.h
index e8d6e0e..f6a0eb2 100644
--- a/emc/clustering/EmcClusterCollection.h
+++ b/emc/clustering/EmcClusterCollection.h
@@ -25,7 +25,7 @@ public:
 
     EmcClusterCollection();
     EmcClusterCollection(Int_t uid);
-    EmcClusterCollection(TString name);
+    //EmcClusterCollection(TString name);
     
     virtual ~EmcClusterCollection();
 
diff --git a/generators/MpdLAQGSMGenerator.cxx b/generators/MpdLAQGSMGenerator.cxx
index 3926ac1..9fa7a15 100644
--- a/generators/MpdLAQGSMGenerator.cxx
+++ b/generators/MpdLAQGSMGenerator.cxx
@@ -35,7 +35,10 @@ const Double_t kProtonMass = 0.938272013;
 const Double_t kNeutronMass = 0.93957;
 
 // -----   Default constructor   ------------------------------------------
-MpdLAQGSMGenerator::MpdLAQGSMGenerator() {}
+MpdLAQGSMGenerator::MpdLAQGSMGenerator() :
+    fInputFile(NULL),
+    fGZInputFile(NULL)
+{}
 // ------------------------------------------------------------------------
 
 
@@ -43,7 +46,9 @@ MpdLAQGSMGenerator::MpdLAQGSMGenerator() {}
 // -----   Standard constructor   -----------------------------------------
 MpdLAQGSMGenerator::MpdLAQGSMGenerator(const char* fileName, const Bool_t use_collider_system, Int_t QGSM_format_ID,Int_t Max_Event_Number ) : 
    FairGenerator(),
-   fIonMap()
+   fIonMap(),
+   fInputFile(NULL),
+   fGZInputFile(NULL)
 {
 
   //AZ memset(la_tab,0,sizeof(la_tab));
@@ -53,9 +58,6 @@ MpdLAQGSMGenerator::MpdLAQGSMGenerator(const char* fileName, const Bool_t use_co
   fFileName  = fileName;
   cout << "-I- MpdLAQGSMGenerator: Opening input file " << fileName << endl;
 
-  fInputFile=NULL;
-  fGZInputFile = NULL;
-
   TString sFileName = fileName;
   if (sFileName.Contains(".gz"))
     fGZ_input=1;
diff --git a/macro/mpd_scheduler b/macro/mpd_scheduler
index 3c84fd3..11b6575 160000
--- a/macro/mpd_scheduler
+++ b/macro/mpd_scheduler
@@ -1 +1 @@
-Subproject commit 3c84fd363859e5a8da81d320fc578efcaa70fb11
+Subproject commit 11b65750e23c7de6c36c6444f39370da2f1d1a13
diff --git a/mpdfield/MpdFieldMap.cxx b/mpdfield/MpdFieldMap.cxx
index f87a336..871813d 100644
--- a/mpdfield/MpdFieldMap.cxx
+++ b/mpdfield/MpdFieldMap.cxx
@@ -552,4 +552,10 @@ void MpdFieldMap::GetFieldValue(const Double_t point[3], Double_t* bField) {
   bField[2] = GetBz(point[0], point[1], point[2]);
 }
 
+Double_t MpdFieldMap::Interpolate(Double_t dx, Double_t dy, Double_t dz)
+{
+    cout<<"MpdFieldMap::Interpolate( is not implemented!!!"<<endl;
+    return 0;
+}
+
 ClassImp(MpdFieldMap)
diff --git a/tpc/MpdTpcClusterFinderTask.h b/tpc/MpdTpcClusterFinderTask.h
index 0f793cd..7d669d4 100644
--- a/tpc/MpdTpcClusterFinderTask.h
+++ b/tpc/MpdTpcClusterFinderTask.h
@@ -55,7 +55,7 @@ public:
 
     Bool_t Find2DClusters(vector<MpdTpc2dCluster*> *extClust, DigOrigArray **digArr, UInt_t row, UInt_t sec);
     void FindPeaksInCluster(MpdTpc2dCluster* clust, vector<MpdTpcPeak*> *peakList, DigOrigArray** fOriginsArray);
-    void FindPeaksInClusterNew(MpdTpc2dCluster* clust, vector<MpdTpcPeak*> *peakList, DigOrigArray** fOriginsArray);
+    //void FindPeaksInClusterNew(MpdTpc2dCluster* clust, vector<MpdTpcPeak*> *peakList, DigOrigArray** fOriginsArray);
     void CollectPeaks(vector<MpdTpcPeak*> peakList, MpdTpc2dCluster* clust, vector<MpdTpcPeak*> *collectedPeakList);
     void CreateHit(vector<MpdTpcPeak*> collectedPeakList, MpdTpc2dCluster* clust, vector<MpdTpcFoundHit*> *hitList, DigOrigArray** fOriginsArray);
     Bool_t GetNextDigit(UInt_t* currDig, MpdTpc2dCluster* Clus2d, DigOrigArray **digArr, Bool_t **fADCMarks);
-- 
GitLab