From 1bcd28db10200743bfcd8cf8cfe7c74d298e4c55 Mon Sep 17 00:00:00 2001 From: jgrosseo Date: Thu, 12 Jul 2007 08:06:45 +0000 Subject: [PATCH] adding log messages in getfile... functions adding not implemented copy constructor in alishuttleconfigholder --- SHUTTLE/AliShuttle.cxx | 18 +++++++++++++----- SHUTTLE/AliShuttleConfig.h | 3 +++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/SHUTTLE/AliShuttle.cxx b/SHUTTLE/AliShuttle.cxx index 75e6e505ee4..d39dde880fc 100644 --- a/SHUTTLE/AliShuttle.cxx +++ b/SHUTTLE/AliShuttle.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.51 2007/07/03 17:24:52 acolla +root moved to v5-16-00. TFileMerger->Cp moved to TFile::Cp. + Revision 1.50 2007/07/02 17:19:32 acolla preprocessor is run in a temp directory that is removed when process is finished. @@ -2017,12 +2020,11 @@ const char* AliShuttle::GetFile(Int_t system, const char* detector, fFXSlist[system].Add(fileParams); static TString fullLocalFileName; - fullLocalFileName = TString::Format("%s/%s", GetShuttleTempDir(), localFileName.Data()); + fullLocalFileName.Form("%s/%s", GetShuttleTempDir(), localFileName.Data()); - AliInfo(Form("fullLocalFileName = %s", fullLocalFileName.Data())); + Log(fCurrentDetector, Form("GetFile - Retrieved file with id %s and source %s from %s to %s", id, source, GetSystemName(system), fullLocalFileName.Data())); return fullLocalFileName.Data(); - } //______________________________________________________________________________________________ @@ -2085,6 +2087,8 @@ TList* AliShuttle::GetFileSources(Int_t system, const char* detector, const char // Get sources producing the condition file Id from file exchange servers // if id is NULL all sources are returned (distinct) // + + Log(detector, Form("GetFileSources - Retrieving sources with id %s from %s", id, GetSystemName(system))); // check if test mode should simulate a FXS error if (fTestMode & kErrorFXSSources) @@ -2093,7 +2097,6 @@ TList* AliShuttle::GetFileSources(Int_t system, const char* detector, const char return 0; } - if (system == kDCS) { AliWarning("DCS system has only one source of data!"); @@ -2148,8 +2151,9 @@ TList* AliShuttle::GetFileSources(Int_t system, const char* detector, const char return list; } - TSQLRow* aRow; + Log(detector, Form("GetFileSources - Found %d sources", aResult->GetRowCount())); + TSQLRow* aRow; while ((aRow = aResult->Next())) { @@ -2171,6 +2175,8 @@ TList* AliShuttle::GetFileIDs(Int_t system, const char* detector, const char* so // Get all ids of condition files produced by a given source from file exchange servers // + Log(detector, Form("GetFileIDs - Retrieving ids with source %s with %s", source, GetSystemName(system))); + // check if test mode should simulate a FXS error if (fTestMode & kErrorFXSSources) { @@ -2223,6 +2229,8 @@ TList* AliShuttle::GetFileIDs(Int_t system, const char* detector, const char* so return list; } + Log(detector, Form("GetFileIDs - Found %d ids", aResult->GetRowCount())); + TSQLRow* aRow; while ((aRow = aResult->Next())) diff --git a/SHUTTLE/AliShuttleConfig.h b/SHUTTLE/AliShuttleConfig.h index 5b3a4794d5f..006d7b4930e 100644 --- a/SHUTTLE/AliShuttleConfig.h +++ b/SHUTTLE/AliShuttleConfig.h @@ -97,6 +97,9 @@ private: void ExpandAndAdd(TObjArray* target, const char* entry); private: + AliShuttleConfigHolder(const AliShuttleConfigHolder& other); // not implemented + AliShuttleConfigHolder& operator= (const AliShuttleConfigHolder& other); // not implemented + TString fDetector; // Detector name TString fDCSHost; // Host name of the DCS server Int_t fDCSPort; // port of the DCS server -- 2.43.5