]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Changed GetMin() and GetMax() to point to meaningfull variables
authormvala <mvala@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 May 2012 20:26:22 +0000 (20:26 +0000)
committermvala <mvala@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 May 2012 20:26:22 +0000 (20:26 +0000)
ANALYSIS/EventMixing/AliMixEventCutObj.cxx
ANALYSIS/EventMixing/AliMixEventCutObj.h
ANALYSIS/EventMixing/AliMixInfo.cxx

index 7ba5358e9c354172119b8050e38b324072c18f4d..ee3e8cc1f7908d052c633df74a705a5287c5b929 100644 (file)
@@ -117,7 +117,7 @@ void AliMixEventCutObj::PrintCurrentInterval()
    //
    // Prints current cut interval information
    //
-   AliDebug(AliLog::kDebug, Form("%s <%f,%f>", GetCutName(fCutType), GetMin(), GetMax()));
+   AliDebug(AliLog::kDebug, Form("%s <%f,%f>", GetCutName(fCutType), GetCurrentMin(), GetCurrentMax()));
 }
 
 //_________________________________________________________________________________________________
@@ -320,7 +320,9 @@ void AliMixEventCutObj::SetCurrentValueToIndex(Int_t index)
    //
    // Sets current value to index
    //
-   for (Int_t i = 0; i < index; i++) AddStep();
+   
+   fCurrentVal = fCutMin;
+   for (Int_t i = 0; i < index-1; i++) AddStep();
 }
 
 //_________________________________________________________________________________________________
index 5d2e14e9a69b8b2deb54ffee0ceca072e8a5f606..a73528ec4d0a67e00467d351589ac8adcee5a700 100644 (file)
@@ -35,8 +35,10 @@ public:
    Bool_t      HasMore() const;
 
    Int_t       GetNumberOfBins() const;
-   Float_t     GetMin() const { return fCurrentVal; }
-   Float_t     GetMax() const { return fCurrentVal + fCutStep - fCutSmallVal; }
+   Float_t     GetCurrentMin() const { return fCurrentVal; }
+   Float_t     GetCurrentMax() const { return fCurrentVal + fCutStep - fCutSmallVal; }
+   Float_t     GetMin() const { return fCutMin; }
+   Float_t     GetMax() const { return fCutMax; }
    Float_t     GetStep() const { return fCutStep; }
    Short_t     GetType() const { return fCutType; }
    Int_t       GetBinNumber(Float_t num) const;
index 75fd32034436be6a21a76679eb4e043fb8ee76fc..9b579f104d96f10873ce30c654fc4746c669b485 100644 (file)
@@ -340,7 +340,7 @@ void AliMixInfo::DynamicExec(AliMixInfo *const mixInfo)
                TObjArrayIter next(eventCuts);
                AliMixEventCutObj *cut;
                while ((cut = (AliMixEventCutObj *) next())) {
-                  if (hist2DValue > 1) text->AddText(Form("%s <%.2f,%.2f)", cut->GetCutName(), cut->GetMin(), cut->GetMax()));
+                  if (hist2DValue > 1) text->AddText(Form("%s <%.2f,%.2f)", cut->GetCutName(), cut->GetCurrentMin(), cut->GetCurrentMax()));
                   else text->AddText(Form("%s <Out of Range>", cut->GetCutName()));
                }
             }