X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=TRIGGER%2FAliTRIPreprocessor.cxx;h=a0d93c5d2912af5c8e98c1d9c30f4db174a0f702;hp=c6e934301bc557240a8476412256a01de87aebda;hb=99d6db94795bfa9d990a0f3c04b3bb379784ef4a;hpb=53aef915d294b2d944e71642687ea796e447dadf diff --git a/TRIGGER/AliTRIPreprocessor.cxx b/TRIGGER/AliTRIPreprocessor.cxx index c6e934301bc..a0d93c5d291 100644 --- a/TRIGGER/AliTRIPreprocessor.cxx +++ b/TRIGGER/AliTRIPreprocessor.cxx @@ -29,6 +29,9 @@ #include "AliCDBEntry.h" #include "AliLog.h" #include "AliITSTriggerConditions.h" + +#include "AliTOFFEEReader.h" +#include "AliTOFTriggerMask.h" #include #include @@ -58,6 +61,7 @@ AliTRIPreprocessor::AliTRIPreprocessor(AliShuttleInterface* shuttle) : // AddRunType("PHYSICS"); + AddRunType("STANDALONE_PULSER"); } //______________________________________________________________________________________________ @@ -246,7 +250,28 @@ Short_t AliTRIPreprocessor::ProcessTOFTriggerData() // Log("************** Processing TOF Trigger data... **************"); - Log("************** Fake function **************"); + + const char * nameFile = GetFile(kDCS,"TofFeeLightMap", ""); + AliInfo(Form("toffeeLight file name = %s",nameFile)); + if (nameFile == NULL) { + return 1; + } + AliTOFFEEReader feeReader; + feeReader.LoadFEElightConfig(nameFile); + feeReader.ParseFEElightConfig(); + AliTOFTriggerMask triggerMask; + triggerMask.SetTriggerMaskArray(feeReader.GetTriggerMaskArray()); + + AliCDBMetaData metaData; + metaData.SetBeamPeriod(0); + metaData.SetResponsible("Roberto Preghenella"); + metaData.SetComment("TOF trigger mask"); + if (!Store("TOF", "TriggerMask", &triggerMask, &metaData, 0, kTRUE)) { + Log("error while storing TriggerMask object"); + return 1; + } + Log("TriggerMask object successfully stored"); + Log("************************* ...done.*************************"); return 0; }