Fix: In case the function to process trigger data for a certain detector
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Oct 2009 11:55:42 +0000 (11:55 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Oct 2009 11:55:42 +0000 (11:55 +0000)
has not yet been implemented, but the detector is in the trigger mask, using an empty one.

TRIGGER/AliTRIPreprocessor.cxx
TRIGGER/AliTRIPreprocessor.h

index 30819a6..8a6b65b 100644 (file)
@@ -107,11 +107,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::ProcessTOFTriggerData,
+               &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 +149,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])();
                        }
                }
@@ -221,5 +249,15 @@ Short_t AliTRIPreprocessor::ProcessTOFTriggerData()
        Log("************************* ...done.*************************");
        return 0;
 }
+//______________________________________________________________________________________________
+Short_t AliTRIPreprocessor::ProcessEmptyTriggerData() 
+{
+       //
+       // Processing TOF Trigger Data
+       //
+
+       Log("************** Trigger data Processing not yet implemented **************");
+       return 0;
+}
 
 
index 4ba8589..6ca52b4 100644 (file)
@@ -21,6 +21,7 @@ class AliTRIPreprocessor : public AliPreprocessor
     
     Short_t ProcessSPDTriggerData();
     Short_t ProcessTOFTriggerData();
+    Short_t ProcessEmptyTriggerData();
 
   protected:
     virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);