]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - SHUTTLE/TestShuttle/AliTestShuttle.cxx
Implementing functionality so that the detectors can send
[u/mrichter/AliRoot.git] / SHUTTLE / TestShuttle / AliTestShuttle.cxx
index 6d0d2d2dcfac18d2293ae3e5f35d315ff1e6a216..a47608cfa8711265142f91112bf8ce52fd3b0b73 100644 (file)
@@ -140,7 +140,10 @@ AliTestShuttle::AliTestShuttle(Int_t run, UInt_t startTime, UInt_t endTime) :
   fRunParameters(0),
   fRunType(),
   fPreprocessors(0),
-  fDcsAliasMap(0)
+  fDcsAliasMap(0),
+  fTriggerConfiguration(""),
+  fTriggerDetectorMask(""),
+  fCTPtiming("")
 {
   // constructor
 
@@ -499,12 +502,14 @@ TList* AliTestShuttle::GetFileIDs(Int_t system, const char* detector, const char
 }
 
 //______________________________________________________________________________________________
-void AliTestShuttle::Log(const char* detector, const char* message)
+void AliTestShuttle::Log(const char* detector, const char* message, UInt_t level)
 {
   // test implementation of Log
   // just prints to the screen
 
-  AliInfo(Form("%s: %s", detector, message));
+  TString fullMessage = detector;
+  fullMessage.Append(Form(": %s",message));
+  AliLog::Message(level, fullMessage, MODULENAME(), ClassName(), FUNCTIONNAME(), __FILE__, __LINE__);
 }
 
 //______________________________________________________________________________________________
@@ -575,10 +580,11 @@ void AliTestShuttle::Process()
     if (preprocessor)
     {
       if (preprocessor->ProcessRunType())
-      {
-        preprocessor->Initialize(fRun, fStartTime, fEndTime);
-        preprocessor->Process(fDcsAliasMap);
-      }
+             {
+                     preprocessor->Initialize(fRun, fStartTime, fEndTime);
+                     preprocessor->Process(fDcsAliasMap);
+             }
+      
     }
   }
 }
@@ -660,6 +666,24 @@ const char* AliTestShuttle::GetTriggerConfiguration()
        return NULL;
 }
 //______________________________________________________________________________________________
+const char* AliTestShuttle::GetCTPTimeParams()
+{
+       //returns trigger configuration
+       if (fCTPtiming.Length()>0){
+               return fCTPtiming;
+       }
+       return NULL;
+}
+//______________________________________________________________________________________________
+const char* AliTestShuttle::GetTriggerDetectorMask()
+{
+       //returns trigger detector mask
+       if (fTriggerDetectorMask.Length()>0){
+               return fTriggerDetectorMask;
+       }
+       return NULL;
+}
+//______________________________________________________________________________________________
 UInt_t AliTestShuttle::GetStartTimeDCSQuery()
 {
        // Return Start Time for the DCS query
@@ -677,3 +701,22 @@ UInt_t AliTestShuttle::GetEndTimeDCSQuery()
 
        return fEndTime+fDCSQueryOffset;
 }
+//______________________________________________________________________________________________
+void AliTestShuttle::SendMLFromDet(const char* value)
+{
+       // 
+       // Sending an information coming from the current detector to ML
+       //
+       
+       TMonaLisaText  mlText(Form("%s_RunCondition", fCurrentDetector.Data()), value);
+
+       TList mlList;
+       mlList.Add(&mlText);
+
+       TString mlID;
+       mlID.Form("%d", GetCurrentRun());
+       fMonaLisa->SendParameters(&mlList, mlID);
+
+       return;
+}
+