X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliPreprocessor.cxx;h=0fd756bb6f20bb7bd0edeec016f18b543c9a584e;hb=81826976dced6734f58c2a6588a144676b9387b6;hp=c7f65bd706072e6c596dd881aa313b3ba1cc89d4;hpb=f12d42ce278a59610f20e1e05a794238bdc9f2ab;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliPreprocessor.cxx b/STEER/AliPreprocessor.cxx index c7f65bd7060..0fd756bb6f2 100644 --- a/STEER/AliPreprocessor.cxx +++ b/STEER/AliPreprocessor.cxx @@ -303,13 +303,13 @@ TList* AliPreprocessor::GetFileIDs(Int_t system, const char* source) } //______________________________________________________________________________________________ -void AliPreprocessor::Log(const char* message) +void AliPreprocessor::Log(const char* message, UInt_t level) { // Adds a log message to the Shuttle log of this preprocessor // // The call is delegated to AliShuttleInterface - fShuttle->Log(GetName(), message); + fShuttle->Log(GetName(), message, level); } //______________________________________________________________________________________________ @@ -373,6 +373,38 @@ const char* AliPreprocessor::GetTriggerConfiguration() return fShuttle->GetTriggerConfiguration(); } +//______________________________________________________________________________________________ +const char* AliPreprocessor::GetCTPTimeParams() +{ + // Returns the CTP timing parameters read from a table in the DAQ logbook + // The call is delegated to AliShuttleInterface + // Only GRP can call this function. + + TString detName(GetName()); + if (detName != "GRP") + { + Log("GetCTPTimeParams - Only GRP can call this function."); + return 0; + } + + return fShuttle->GetCTPTimeParams(); +} +//______________________________________________________________________________________________ +const char* AliPreprocessor::GetTriggerDetectorMask() +{ + // Returns the trigger detector mask which is read from a table in the DAQ logbook + // The call is delegated to AliShuttleInterface + // Only TRI can call this function. + + TString detName(GetName()); + if (detName != "TRI") + { + Log("GetTriggerDetectorMask - Only TRI can call this function."); + return 0; + } + + return fShuttle->GetTriggerDetectorMask(); +} //______________________________________________________________________________________________ void AliPreprocessor::AddRunType(const char* runType) @@ -427,3 +459,42 @@ UInt_t AliPreprocessor::GetEndTimeDCSQuery() return fShuttle->GetEndTimeDCSQuery(); } +//______________________________________________________________________________________________ +const char* AliPreprocessor::GetForeignFile(const char* detector, Int_t system, const char* id, const char* source) +{ + // This function retrieves a file produced from the given detector (different from the + // current one) from the given system (kDAQ, kDCS, kHLT) + // with the given file id + // and from the given source in the system. + // The function returnes the path to the local file. + // + // The call is delegated to AliShuttleInterface + // The function can be called only from the GRP preprocessor + + TString detName(GetName()); + if (detName != "GRP") + { + Log("GetForeignFile - Only GRP can call this function."); + return 0; + } + return fShuttle->GetFile(system, detector, id, source); +} + +//______________________________________________________________________________________________ +TList* AliPreprocessor::GetForeignFileSources(const char* detector, Int_t system, const char* id) +{ + // Returns the list of sources in a given system that produced the file + // with the given id for the foreign detector specified + // + // The call is delegated to AliShuttleInterface + // The function can be called only from the GRP preprocessor + + TString detName(GetName()); + if (detName != "GRP") + { + Log("GetForeignFileSources - Only GRP can call this function."); + return 0; + } + return fShuttle->GetFileSources(system, detector, id); +} +