]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug corrections: int messed with double
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jul 2004 21:59:50 +0000 (21:59 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jul 2004 21:59:50 +0000 (21:59 +0000)
ANALYSIS/AliEventBaseCut.cxx
ANALYSIS/AliEventBaseCut.h
ANALYSIS/AliEventCut.cxx
ANALYSIS/AliEventCut.h

index e5fbe7f695ae96737aa74bbaf4c77e9aeaa5832d..d0c70680f1281dc8c3289d314545682df03b85e1 100644 (file)
@@ -32,7 +32,11 @@ AliEventBaseCut::AliEventBaseCut(Double_t min, Double_t max, EEventCutProperty p
 
 Bool_t AliEventBaseCut::Rejected(AliAOD* aod) const
 {
-  if ( (GetValue(aod) < fMin) || (GetValue(aod) > fMax) ) return kTRUE;
+//Checks if value is in the range,
+// returns true if it is in the range, false otherwise
+  Double_t v = GetValue(aod);
+//  Info("Rejected","Value %f Min %f Max %f",v,fMin,fMax);
+  if ( ( v < fMin) || ( v > fMax) ) return kTRUE;
   return kFALSE;
 }
 /**********************************************************/
index fecd991f3ad889c687a8a3bc3569bd223dc387bd..2faed28f9b7cf4bc14505e5576a27df7513145f8 100644 (file)
@@ -93,7 +93,7 @@ class AliNChargedCut: public AliEventBaseCut
 {
  public: 
    AliNChargedCut():AliEventBaseCut(0,0,kNChargedCut){}
-   AliNChargedCut(Double_t min, Double_t max, Double_t etamin = -10.0, Double_t etamax = 10.0):
+   AliNChargedCut(Int_t min, Int_t max, Double_t etamin = -10.0, Double_t etamax = 10.0):
        AliEventBaseCut(min,max,kNChargedCut),fEtaMin(etamin),fEtaMax(etamax){}
    virtual ~AliNChargedCut(){}
    
index d1ff673576842ca57614fe5e5ef00085104ce046..581bf0d8b3b1f86c95c5c1688185eb8d26f059a2 100644 (file)
@@ -109,7 +109,7 @@ void AliEventCut::SetNChargedRange(Int_t min,Int_t max,Double_t etamin,Double_t
 }
 /*********************************************************/
 
-void AliEventCut::SetVertexXRange(Int_t min,Int_t max)
+void AliEventCut::SetVertexXRange(Double_t min, Double_t max)
 {
   //Sets range of z coordinate of a primary vertex
   AliEventBaseCut* cut = FindCut(AliEventBaseCut::kPrimVertexXCut);
@@ -118,7 +118,7 @@ void AliEventCut::SetVertexXRange(Int_t min,Int_t max)
 }
 /*********************************************************/
 
-void AliEventCut::SetVertexYRange(Int_t min,Int_t max)
+void AliEventCut::SetVertexYRange(Double_t min, Double_t max)
 {
   //Sets range of z coordinate of a primary vertex
   AliEventBaseCut* cut = FindCut(AliEventBaseCut::kPrimVertexYCut);
@@ -127,7 +127,7 @@ void AliEventCut::SetVertexYRange(Int_t min,Int_t max)
 }
 /*********************************************************/
 
-void AliEventCut::SetVertexZRange(Int_t min,Int_t max)
+void AliEventCut::SetVertexZRange(Double_t min, Double_t max)
 {
   //Sets range of z coordinate of a primary vertex
   AliEventBaseCut* cut = FindCut(AliEventBaseCut::kPrimVertexZCut);
index 3bc0fcbf23dc7620f02d369155e21b0292e2df22..882daf3d1eddb0fe2ca483e4381a70ac5f277cb1 100644 (file)
@@ -30,9 +30,9 @@ class AliEventCut: public TObject
     void           AddBasePartCut(AliEventBaseCut* ebcut);
 
     void           SetNChargedRange(Int_t min,Int_t max, Double_t etamin = -10.0,Double_t etamax = 10.0);
-    void           SetVertexXRange(Int_t min,Int_t max);
-    void           SetVertexYRange(Int_t min,Int_t max);
-    void           SetVertexZRange(Int_t min,Int_t max);
+    void           SetVertexXRange(Double_t min, Double_t max);
+    void           SetVertexYRange(Double_t min, Double_t max);
+    void           SetVertexZRange(Double_t min, Double_t max);
     
   protected:
     AliEventBaseCut* FindCut(AliEventBaseCut::EEventCutProperty prop);