AddRunType added
authorbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 30 Mar 2008 05:13:17 +0000 (05:13 +0000)
committerbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 30 Mar 2008 05:13:17 +0000 (05:13 +0000)
PMD/AliPMDPreprocessor.cxx
PMD/AliPMDPreprocessor.h

index c617171..2d74258 100644 (file)
@@ -40,6 +40,8 @@ AliPMDPreprocessor::AliPMDPreprocessor(AliShuttleInterface* shuttle) :
   AliPreprocessor("PMD", shuttle)
 {
   // constructor
+  AddRunType("PHYSICS");
+  AddRunType("PEDESTAL_RUN");
 }
 
 //______________________________________________________________________________________________
@@ -66,6 +68,19 @@ void AliPMDPreprocessor::Initialize(Int_t run, UInt_t startTime,
 
 }
 
+//-----------------------------------------
+Bool_t AliPMDPreprocessor::ProcessDAQ()
+{
+    TString RunType = GetRunType();
+    Log(Form("RunType %s",RunType.Data()));
+    if (RunType !="PHYSICS" || RunType != "PEDESTAL_RUN") {
+        return kFALSE;
+    }
+
+    return kTRUE;
+}
+
+
 //______________________________________________________________________________________________
 UInt_t AliPMDPreprocessor::Process(TMap* pdaqAliasMap)
 {
index 05e835c..977c4a3 100644 (file)
@@ -24,11 +24,11 @@ class AliPMDPreprocessor : public AliPreprocessor
   protected:
     virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
     virtual UInt_t Process(TMap* pdaqAliasMap);
-
+    virtual Bool_t ProcessDAQ();
   private:
 //    AliPMDDataDAQ *fData;    // CDB class that stores the data
 
-    ClassDef(AliPMDPreprocessor, 1);
+    ClassDef(AliPMDPreprocessor, 2);
 };
 
 #endif