]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/FLOW/Base/AliFlowTrackSimple.h
coverity fix
[u/mrichter/AliRoot.git] / PWG / FLOW / Base / AliFlowTrackSimple.h
index 17ded7406457b4b18f3ddc0c713b6186d8434965..f1b39219a36dade2941bf470338675133cb07f33 100644 (file)
@@ -17,7 +17,7 @@ class TParticle;
 class AliFlowTrackSimple: public TObject {
 
 public:
-  enum tagType { kInvalid=-1,
+  enum poiTypes { kInvalid=-1,
                  kRP=0,
                  kPOI=1,
                  kPOI1=2,
@@ -52,12 +52,12 @@ public:
   Bool_t InSubevent(Int_t i) const;
   void TagRP(Bool_t b=kTRUE) {SetForRPSelection(b);} 
   void TagPOI(Bool_t b=kTRUE) {SetForPOISelection(b);} 
-  void Tag(Int_t n, Bool_t b=kTRUE) {fFlowBits.SetBitNumber(n,b);}
-  Bool_t CheckTag(Int_t n) {return fFlowBits.TestBitNumber(n);}
+  void Tag(Int_t n, Bool_t b=kTRUE) {fPOItype.SetBitNumber(n,b);}
+  Bool_t CheckTag(Int_t n) {return fPOItype.TestBitNumber(n);}
   void SetForSubevent(Int_t i); 
-  void ResetFlowTags() {fFlowBits.ResetAllBits();}
+  void ResetPOItype() {fPOItype.ResetAllBits();}
   void ResetSubEventTags() {fSubEventBits.ResetAllBits();}
-  Bool_t IsDead() const {return (fFlowBits.CountBits()==0);}
+  Bool_t IsDead() const {return (fPOItype.CountBits()==0);}
       
   void SetEta(Double_t eta);
   void SetPt(Double_t pt); 
@@ -119,7 +119,8 @@ public:
                 Double_t precision,
                 Int_t maxNumberOfIterations=100 );
 
-  const TBits* GetFlowBits() const {return &fFlowBits;}
+  const TBits* GetPOItype() const {return &fPOItype;}
+  const TBits* GetFlowBits() const {return GetPOItype();}
 
   void  SetID(Int_t i) {fID=i;}
   Int_t GetID() const {return fID;}
@@ -136,9 +137,9 @@ public:
   Double_t fPt;          // pt
   Double_t fPhi;         // phi
   Double_t fTrackWeight; // weight
-  Int_t fCharge;         //charge
+  Int_t    fCharge;      //charge
   Double_t fMass;        // mass
-  TBits    fFlowBits;    // bits to set if track is selected
+  TBits    fPOItype;    // bits to set if track is selected
   TBits    fSubEventBits;// bits to set if track is selected for a subevent
   Int_t    fID;          // Unique track ID, point back to the ESD track
 
@@ -161,11 +162,11 @@ inline Double_t AliFlowTrackSimple::Mass() const {
   return this->fMass; }
 //TBits
 inline Bool_t AliFlowTrackSimple::InRPSelection() const { 
-  return fFlowBits.TestBitNumber(kRP); }
+  return fPOItype.TestBitNumber(kRP); }
 inline Bool_t AliFlowTrackSimple::InPOISelection(Int_t poiType) const { 
-  return fFlowBits.TestBitNumber(poiType); }
+  return fPOItype.TestBitNumber(poiType); }
 inline Bool_t AliFlowTrackSimple::IsPOItype(Int_t poiType) const {
-  return fFlowBits.TestBitNumber(poiType); }
+  return fPOItype.TestBitNumber(poiType); }
 inline Bool_t AliFlowTrackSimple::InSubevent(Int_t i) const { 
   return this->fSubEventBits.TestBitNumber(i); }
 
@@ -185,14 +186,14 @@ inline void AliFlowTrackSimple::SetMass(Double_t val) {
 
   //TBits
 inline void AliFlowTrackSimple::SetForRPSelection(Bool_t val) {
-  fFlowBits.SetBitNumber(kRP,val); }
+  fPOItype.SetBitNumber(kRP,val); }
 inline void AliFlowTrackSimple::SetForPOISelection(Bool_t val) {
-  fFlowBits.SetBitNumber(kPOI,val); }
+  fPOItype.SetBitNumber(kPOI,val); }
 inline void AliFlowTrackSimple::SetForSubevent(Int_t i) {
   fSubEventBits.SetBitNumber(i,kTRUE); }
 
 inline void AliFlowTrackSimple::SetPOItype(Int_t poiType, Bool_t b) {
-  fFlowBits.SetBitNumber(poiType,b); }
+  fPOItype.SetBitNumber(poiType,b); }
 
 #endif