]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FLOW/AliFlowCommon/AliFlowTrackSimpleCuts.h
fixes warnings
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowTrackSimpleCuts.h
index 894b8f6e7428af0faedfa6fe704d4361540c0bfe..b022a1ed16eff484381c4286bbb0f4b6b70ff83a 100644 (file)
@@ -20,18 +20,19 @@ class AliFlowTrackSimpleCuts : public TNamed {
 
  public:
   AliFlowTrackSimpleCuts();
-  AliFlowTrackSimpleCuts(const AliFlowTrackSimpleCuts& someCuts);
-  AliFlowTrackSimpleCuts& operator=(const AliFlowTrackSimpleCuts& someCuts);
-  virtual  ~AliFlowTrackSimpleCuts();
+  //AliFlowTrackSimpleCuts(const AliFlowTrackSimpleCuts& someCuts);
+  //AliFlowTrackSimpleCuts& operator=(const AliFlowTrackSimpleCuts& someCuts);
+  virtual  ~AliFlowTrackSimpleCuts() {}
   
   //setters
-  void SetPtMax(Double_t max)   {this->fPtMax = max; }
-  void SetPtMin(Double_t min)   {this->fPtMin = min; }
-  void SetEtaMax(Double_t max)  {this->fEtaMax = max; }
-  void SetEtaMin(Double_t min)  {this->fEtaMin = min; }
-  void SetPhiMax(Double_t max)  {this->fPhiMax = max; }
-  void SetPhiMin(Double_t min)  {this->fPhiMin = min; }
-  void SetPID(Int_t pid)        {this->fPID = pid; }
+  void SetPtMax(Double_t max)   {this->fPtMax = max; fCutPt=kTRUE; }
+  void SetPtMin(Double_t min)   {this->fPtMin = min; fCutPt=kTRUE;  }
+  void SetEtaMax(Double_t max)  {this->fEtaMax = max; fCutEta=kTRUE; }
+  void SetEtaMin(Double_t min)  {this->fEtaMin = min; fCutEta=kTRUE; }
+  void SetPhiMax(Double_t max)  {this->fPhiMax = max; fCutPhi=kTRUE; }
+  void SetPhiMin(Double_t min)  {this->fPhiMin = min; fCutPhi=kTRUE; }
+  void SetPID(Int_t pid)        {this->fPID = pid; fCutPID=kTRUE; }
+  void SetCharge(Int_t c)       {this->fCharge = c; fCutCharge=kTRUE; }
   
   //getters
   Double_t GetPtMax() const     {return this->fPtMax; }
@@ -41,19 +42,26 @@ class AliFlowTrackSimpleCuts : public TNamed {
   Double_t GetPhiMax() const    {return this->fPhiMax; }
   Double_t GetPhiMin() const    {return this->fPhiMin; }
   Int_t    GetPID() const       {return this->fPID; }
+  Int_t    GetCharge() const    {return this->fCharge; }
   
   //simple method to check if the simple track passes the simple cuts:
   Bool_t PassesCuts(const AliFlowTrackSimple *track) const;
-  Bool_t PassesCuts(const TParticle* p) const;
+  Bool_t PassesCuts(TParticle* p) const;
 
  private:
+  Bool_t   fCutPt;
   Double_t fPtMax;
   Double_t fPtMin;
+  Bool_t   fCutEta;
   Double_t fEtaMax;
   Double_t fEtaMin;
+  Bool_t   fCutPhi;
   Double_t fPhiMax;
   Double_t fPhiMin;
+  Bool_t   fCutPID;
   Int_t    fPID;
+  Bool_t   fCutCharge;
+  Int_t    fCharge;
 
   ClassDef(AliFlowTrackSimpleCuts,1)
 };