X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRIGGER%2FAliTRIPreprocessor.cxx;h=a0d93c5d2912af5c8e98c1d9c30f4db174a0f702;hb=3d1fac8aadff29b6846579e6042ecb3d7b9b0541;hp=8a6b65b397a706fea41bb4186839d2ac63b4278b;hpb=c2f1e26ce8dff71030b52a5ff0bd55e7db72086b;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRIGGER/AliTRIPreprocessor.cxx b/TRIGGER/AliTRIPreprocessor.cxx index 8a6b65b397a..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"); } //______________________________________________________________________________________________ @@ -174,7 +178,7 @@ Short_t AliTRIPreprocessor::ProcessSPDTriggerData() // Read new conditions from dcs fxs AliITSTriggerConditions* newCond = new AliITSTriggerConditions(); - TString fxsID = "PITConditions"; + TString fxsID = "pit_conditions"; TList* list = GetFileSources(kDCS, fxsID.Data()); if (!list) { AliError("FXS file not found."); @@ -246,6 +250,28 @@ Short_t AliTRIPreprocessor::ProcessTOFTriggerData() // Log("************** Processing TOF Trigger data... **************"); + + 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; }