Fix for #80383: Reconstruction Info (Pass, Aliroot rev., ...) in ESD and Analysis
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Jul 2011 23:29:05 +0000 (23:29 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Jul 2011 23:29:05 +0000 (23:29 +0000)
STEER/STEER/AliReconstruction.cxx

index 352106b..1b21e4c 100644 (file)
 #include "AliESDHLTDecision.h"
 #include "AliTriggerInput.h"
 #include "AliLHCData.h"
+#include "ARVersion.h"
+#include <RVersion.h>
 ClassImp(AliReconstruction)
 
 //_____________________________________________________________________________
@@ -2260,6 +2262,21 @@ void AliReconstruction::SlaveTerminate()
    ftree->GetUserInfo()->Add(cdbMapCopy);       
    ftree->GetUserInfo()->Add(cdbListCopy);
 
+   // Add the AliRoot version that created this file
+   TString sVersion("aliroot ");
+   sVersion += ALIROOT_SVN_BRANCH;
+   sVersion += ":";
+   sVersion += ALIROOT_SVN_REVISION;
+   sVersion += "; root ";
+   sVersion += ROOT_SVN_BRANCH;
+   sVersion += ":";
+   sVersion += ROOT_SVN_REVISION;
+   sVersion += "; metadata ";
+   sVersion += gSystem->Getenv("PRODUCTION_METADATA");
+                   
+
+   TNamed * alirootVersion = new TNamed("alirootVersion",sVersion.Data());
+   ftree->GetUserInfo()->Add(alirootVersion); // The list becomes owner of alirootVersion
 
   ffile->cd();