]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliPreprocessor.cxx
Possibility to propagate tracks to the DCA to the primary vertex at the AOD level...
[u/mrichter/AliRoot.git] / STEER / AliPreprocessor.cxx
index 0e60d2c0acfd5a472922fb988ca9e2d14add27bb..0ba065bddf7b26c63f818663b0594d249d865806 100644 (file)
@@ -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);
 }
 
 //______________________________________________________________________________________________
@@ -336,6 +336,17 @@ AliCDBEntry* AliPreprocessor::GetFromOCDB(const char* pathLevel2, const char* pa
        (fShuttle->GetFromOCDB(GetName(), AliCDBPath(offlineDetName, pathLevel2, pathLevel3)));
 }
 
+//______________________________________________________________________________________________
+AliCDBEntry* AliPreprocessor::GetGeometryFromOCDB()
+{
+  // Return geometry from OCDB (GRP/Geometry/Data) valid for current run
+  //
+  // The call is delegated to AliShuttleInterface
+
+  return dynamic_cast<AliCDBEntry*>
+       (fShuttle->GetFromOCDB(GetName(), AliCDBPath("GRP", "Geometry", "Data")));
+}
+
 //______________________________________________________________________________________________
 const char* AliPreprocessor::GetRunType()
 {
@@ -459,3 +470,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);
+}
+