]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CORRFW/AliCFEventGenCuts.h
try to fix coverity 24179, 24178, 24125, 24124, check cast to pointers not being...
[u/mrichter/AliRoot.git] / CORRFW / AliCFEventGenCuts.h
index 5a8813b7bd81920d332c393c814ee36b28a014d1..d1dfa7ab11e682cea1e76fb30e69083549ff0ef2 100644 (file)
@@ -1,4 +1,3 @@
-
 #ifndef ALICFEVENTGENCUTS_H
 #define ALICFEVENTGENCUTS_H
 /**************************************************************************
@@ -26,9 +25,9 @@
 
 
 #include "AliCFCutBase.h"
-#include "AliGenEventHeader.h"
 class TBits;
-class AliEventGenHeader;
+class AliGenEventHeader;
+class AliMCEvent;
 //____________________________________________________________________________
 class AliCFEventGenCuts: public AliCFCutBase 
 {
@@ -38,10 +37,8 @@ class AliCFEventGenCuts: public AliCFCutBase
   AliCFEventGenCuts(const AliCFEventGenCuts& c) ;
   AliCFEventGenCuts& operator=(const AliCFEventGenCuts& c) ;
   ~AliCFEventGenCuts();
-  void GetBitMap(TObject *obj, TBits *bitmap);
   Bool_t IsSelected(TObject* obj);
-  void Init(){;};
-  static Bool_t IsMBProcessType(Int_t isel, TObject *obj);
+  Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
 
   //number of embedded cuts
   enum{kNCuts=5};
@@ -51,8 +48,13 @@ class AliCFEventGenCuts: public AliCFCutBase
    kND, kSD, kDD 
   }; 
 
-  void   SetMBProcessType(PrType process = kND) {fMBProcessType=process;} // cut values setter
-  Int_t  GetMBProcessType()const {return fMBProcessType;} // cut values getter
+
+  static Int_t ProcType(AliGenEventHeader *genHeader); 
+  static Bool_t IsMBProcType(AliMCEvent *ev, PrType iproc);
+
+
+  void   SetMBSelProcType(PrType iproc = kND) {fMBProcType=iproc;} // cut values setter
+  Int_t  GetMBSelProcType()const {return fMBProcType;} // cut values getter
 
 
 
@@ -74,11 +76,11 @@ class AliCFEventGenCuts: public AliCFCutBase
   Double_t GetVertexZMin() const {return fVtxZMin;} // cut values getter
   
 
- private:
-  TBits * SelectionBitMap(TObject* obj);
-  static Int_t MBProcessType(AliGenEventHeader *genHeader); 
+ protected:
+
+  void SelectionBitMap(TObject* obj);
   
-  Int_t fMBProcessType ; //the type of selected MB process 
+  Int_t fMBProcType ; //the type of selected MB process 
   Int_t fNTracksMin; //minimum number of particles in the event
   Int_t fNTracksMax; //maximum number of particles in the event
   Bool_t fRequireVtxCuts ; //The type of trigger to be checked
@@ -91,7 +93,7 @@ class AliCFEventGenCuts: public AliCFCutBase
 
   TBits *fBitMap ; //cut mask
 
-  ClassDef(AliCFEventGenCuts,1);
+  ClassDef(AliCFEventGenCuts,2);
 };
 
 #endif