]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG4/PartCorrDep/AliAnaPhoton.h
correct minor coverity reports
[u/mrichter/AliRoot.git] / PWG4 / PartCorrDep / AliAnaPhoton.h
index f23cde169cb5cab877f9423d7b91d5489f8a6f70..19d88f4b62a4b7bd1e6c16a40a0c6175c2f30bd5 100755 (executable)
 class TH2F ;
 class TH1F;
 class TString ;
+class TObjString;
 
 // --- ANALYSIS system ---
 #include "AliAnaPartCorrBaseClass.h"
-//#include "AliStack.h"
-//#include "TParticle.h"
 class AliStack;
 class TParticle;
 
@@ -29,14 +28,17 @@ class TList ;
 
 class AliAnaPhoton : public AliAnaPartCorrBaseClass {
 
-public: 
-
+ public: 
   AliAnaPhoton() ; // default ctor
+  virtual ~AliAnaPhoton() ; //virtual dtor
+ private:
   AliAnaPhoton(const AliAnaPhoton & g) ; // cpy ctor
   AliAnaPhoton & operator = (const AliAnaPhoton & g) ;//cpy assignment
-  virtual ~AliAnaPhoton() ; //virtual dtor
-  
-  TList *  GetCreateOutputObjects();
+
+ public:
+       
+  TObjString * GetAnalysisCuts();
+  TList      * GetCreateOutputObjects();
 
   void Init();
 
@@ -72,6 +74,14 @@ public:
   Float_t GetMassCut()    const {return fMassCut ; }
   void SetMassCut(Float_t m)    {fMassCut = m ; }
        
+  void SetTimeCut(Double_t min, Double_t max) {fTimeCutMin = min; fTimeCutMax = max;}
+  Double_t GetTimeCutMin() const {return fTimeCutMin;}
+  Double_t GetTimeCutMax() const {return fTimeCutMax;} 
+       
+  void SetNCellCut(Int_t n) {fNCellsCut = n;}
+  Double_t GetNCellCut() const {return fNCellsCut;}
+       
+       
   private:
  
   TString fCalorimeter ; // Calorimeter where the gamma is searched;
@@ -82,6 +92,9 @@ public:
   Bool_t  fCheckConversion;        // Combine pairs of clusters with mass close to 0
   Bool_t  fAddConvertedPairsToAOD; // Put Converted pairs in AOD
   Float_t fMassCut;                // Mass cut for the conversion pairs selection
+  Double_t fTimeCutMin  ;    // Remove clusters/cells with time smaller than this value, in ns
+  Double_t fTimeCutMax  ;    // Remove clusters/cells with time larger than this value, in ns
+  Int_t fNCellsCut ;     // Accept for the analysis clusters with more than fNCellsCut cells
        
   //Histograms  
   TH1F * fhPtPhoton   ; //! Number of identified photon vs transerse momentum 
@@ -128,7 +141,7 @@ public:
   TH2F * fhPhiUnknown;  //! Phi of identified  Unknown gamma
   TH2F * fhEtaUnknown;  //! eta of identified  Unknown gamma
 
-   ClassDef(AliAnaPhoton,6)
+   ClassDef(AliAnaPhoton,8)
 
 } ;