]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - JETAN/AliDAJetHeader.cxx
Fixing some coverty reports
[u/mrichter/AliRoot.git] / JETAN / AliDAJetHeader.cxx
index 2637b4353b2cb5d625d6eeda447862d8e873cddd..187ecd2def6ee656de500aba3b531cb24efce9b7 100644 (file)
@@ -31,7 +31,9 @@ AliDAJetHeader::AliDAJetHeader():
        fRadius(0.7),
        fNclustMax(10),
        fFixedCl(kFALSE),
-       fEtMin(10.)
+       fEtMin(10.),
+       fNeff(0),
+       fEtaEff(0.9)
 {
     // Constructor
 }
@@ -41,9 +43,8 @@ void AliDAJetHeader::SetRadius(Float_t radius)
 {
     // The radius requested is used to estimate the number of clusters
     // to be found, in order to obtain jets with the expected area.
-    // It must not be intended as a sharp limit on the cluster shape
+    // It must not be intended as a sharp limit on the cluster radius
     
-       Float_t fEtaLim = 0.9;
-    Int_t nclust = (Int_t) 4*fEtaLim/(radius*radius) + 1;
-    SetNclust(nclust);
+  Int_t nclust = (Int_t) (4.*fEtaEff/(radius*radius)) + 1;
+  SetNclust(nclust);
 }