Add option to run on some local files with test mode using the alien plugin
[u/mrichter/AliRoot.git] / MFT / MergeClustersMFT.C
index b58d177..e5fbd15 100644 (file)
@@ -14,8 +14,8 @@ TFile *fileInPileUp=0, *fileInSignal, *fileInUnderlying, *fileOutPileUp=0, *file
 enum {kMergePileUpClusters_pp, kMergePileUpClusters_PbPb, kMergeAllClusters_pp, kMergeAllClusters_PbPb};
 enum {k_pp, k_PbPb};
 
-const Char_t *fPileUpDir[2] = {"$UnderlyingDirPP/spreadVtx",
-                              "$UnderlyingDirPbPb/spreadVtx"};
+const Char_t *fPileUpDir[2] = {"$UnderlyingDirPP/spreadVtx",      // local directory with pile-up event p-p
+                              "$UnderlyingDirPbPb/spreadVtx"};   // local directory with pile-up event Pb-Pb
 
 const Int_t fNRunsPileUp_pp   = 100;
 const Int_t fNRunsPileUp_PbPb =   3;
@@ -30,10 +30,13 @@ void MergeAllClusters();
                               
 //====================================================================================================================================================
 
-void MergeClustersMFT(Int_t option = 9999,
+void MergeClustersMFT(Int_t seed = 12345,
+                     Int_t option = 9999,
                      Int_t nEvents = 9999,
                      Int_t maxPileUp = 9999) {
   
+  gRandom->SetSeed(seed);
+
   if (option==kMergePileUpClusters_pp) {
 
     Int_t runs_pp[fNRunsPileUp_pp] = {0};