Added new classes for the new trigger framework:
[u/mrichter/AliRoot.git] / TRIGGER / AliTRIPreprocessor.cxx
index 30819a6..421c312 100644 (file)
@@ -58,6 +58,7 @@ AliTRIPreprocessor::AliTRIPreprocessor(AliShuttleInterface* shuttle) :
        //
        
        AddRunType("PHYSICS");
+       AddRunType("STANDALONE_PULSER");
 }
 
 //______________________________________________________________________________________________
@@ -107,11 +108,36 @@ UInt_t AliTRIPreprocessor::Process(TMap* /*dcsAliasMap*/)
        typedef Short_t (AliTRIPreprocessor::*AliProcessTriggerData)();
        const AliProcessTriggerData processTriggerDataArray[AliTRIPreprocessor::kNDetectorsMap]= { 
                &AliTRIPreprocessor::ProcessSPDTriggerData,
-               0,
-               0,
-               0,
-               0,
-               &AliTRIPreprocessor::ProcessTOFTriggerData,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; 
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData,
+               &AliTRIPreprocessor::ProcessEmptyTriggerData}; 
 
 
        // getting the list of triggering detectors from DAQ logbook
@@ -124,7 +150,10 @@ UInt_t AliTRIPreprocessor::Process(TMap* /*dcsAliasMap*/)
                  for (Int_t i = 0; i<length; i++){
                        AliDebug(2,Form("%d-th bit = %c in index %d",i,triggerDetectorMask[length-1-i],length-1-i));
                        if (triggerDetectorMask[length-1-i] == '1'){
-                               AliInfo(Form("Processing Trigger data for %s",fgkDetectorsMapName[i]));
+                               Log("****************************************");
+                               Log(Form("Processing Trigger data for %s",fgkDetectorsMapName[i]));
+                               Log("****************************************");
+                              
                                result+=(this->*processTriggerDataArray[i])();
                        }
                }
@@ -146,7 +175,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.");
@@ -218,8 +247,19 @@ Short_t AliTRIPreprocessor::ProcessTOFTriggerData()
        //
 
        Log("************** Processing TOF Trigger data... **************");
+       Log("************** Fake function **************");
        Log("************************* ...done.*************************");
        return 0;
 }
+//______________________________________________________________________________________________
+Short_t AliTRIPreprocessor::ProcessEmptyTriggerData() 
+{
+       //
+       // Processing TOF Trigger Data
+       //
+
+       Log("************** Trigger data Processing not yet implemented **************");
+       return 0;
+}