- Implementing functions for the GRP preprocessor to retrieve DA output files from...
[u/mrichter/AliRoot.git] / SHUTTLE / AliShuttleLogbookEntry.cxx
index 6222495..41d6215 100644 (file)
@@ -31,7 +31,8 @@ ClassImp(AliShuttleLogbookEntry)
 AliShuttleLogbookEntry::AliShuttleLogbookEntry() :
 TObject(),
 fRun(-1),
-fRunParameters(0)
+fRunParameters(0),
+fDATestMode(kFALSE)
 {
        //
        // default constructor
@@ -46,7 +47,8 @@ fRunParameters(0)
 AliShuttleLogbookEntry::AliShuttleLogbookEntry(Int_t run, Status* status) :
 TObject(),
 fRun(run),
-fRunParameters(0)
+fRunParameters(0),
+fDATestMode(kFALSE)
 {
        //
        // default constructor
@@ -63,14 +65,15 @@ AliShuttleLogbookEntry::~AliShuttleLogbookEntry() {
        //
        // destructor
        //
-
+       fRunParameters.DeleteAll();
 }
 
 //______________________________________________________________________________________________
 AliShuttleLogbookEntry::AliShuttleLogbookEntry(const AliShuttleLogbookEntry &c) :
 TObject(),
 fRun(c.fRun),
-fRunParameters(0)
+fRunParameters(0),
+fDATestMode(c.fDATestMode)
 {
        //
        // copy constructor
@@ -119,6 +122,7 @@ void AliShuttleLogbookEntry::Copy(TObject& c) const
        }
 
        target.SetDetectorStatus(GetDetectorStatus());
+       target.fDATestMode = fDATestMode;
 }
 
 //______________________________________________________________________________________________
@@ -276,12 +280,13 @@ void AliShuttleLogbookEntry::Print(Option_t* option) const
                                if(keyStr.Length()<30) message.Append(' ', 30-keyStr.Length());
                                message += Form("%s\n", aValue->GetName());
                        } else {
-                               message += "\tlog                            ...\n";
+                               TString logStr(aValue->GetName(), 100);
+                               message += Form("\tlog (first 100 chars)          %s \n",logStr.Data());
                        }
                }
        }
 
-       AliInfo(Form("%s",message.Data()));
+       AliInfo(message.Data());
 }
 //______________________________________________________________________________________________
 void AliShuttleLogbookEntry::SetRunParameter(const char* key, const char* value){