fRunParameters(0),
fRunType(),
fPreprocessors(0),
- fDcsAliasMap(0)
+ fDcsAliasMap(0),
+ fTriggerConfiguration(""),
+ fTriggerDetectorMask(""),
+ fCTPtiming("")
{
// constructor
}
//______________________________________________________________________________________________
-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__);
}
//______________________________________________________________________________________________
if (preprocessor)
{
if (preprocessor->ProcessRunType())
- {
- preprocessor->Initialize(fRun, fStartTime, fEndTime);
- preprocessor->Process(fDcsAliasMap);
- }
+ {
+ preprocessor->Initialize(fRun, fStartTime, fEndTime);
+ preprocessor->Process(fDcsAliasMap);
+ }
+
}
}
}
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
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;
+}
+