Sampling fraction initialized from geometry class.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 10 Jan 2003 10:26:40 +0000 (10:26 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 10 Jan 2003 10:26:40 +0000 (10:26 +0000)
EMCAL/AliEMCALJetFinder.cxx
EMCAL/AliEMCALJetFinder.h

index f0e14169e1b8f9c490876596ea5b25d3b2c60e9a..0efbcd518fac9b1ab14cc3a77ae3527b5df234e0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.31  2003/01/08 17:13:41  schutz
+added the HCAL section
+
 Revision 1.30  2002/12/09 16:26:28  morsch
 - Nummber of particles per jet increased to 1000
 - Warning removed.
@@ -321,7 +324,10 @@ void AliEMCALJetFinder::Init()
 //  Geometry 
     AliEMCAL* pEMCAL = (AliEMCAL*) gAlice->GetModule("EMCAL");
     AliEMCALGeometry* geom = 
-       AliEMCALGeometry::GetInstance(pEMCAL->GetTitle(), "");
+    AliEMCALGeometry::GetInstance(pEMCAL->GetTitle(), "");
+
+    SetSamplingFraction(geom->GetSampling());
+
     fNbinEta = geom->GetNZ();
     fNbinPhi = geom->GetNPhi();
     fPhiMin  = geom->GetArm1PhiMin()*TMath::Pi()/180.;
index 1e0e998d7dc9239c7225773366a4f9b399f06c82..b9c7ef604caefd589e8f553684a34845ab0ef624 100644 (file)
@@ -45,7 +45,7 @@ class AliEMCALJetFinder : public TTask {
     virtual void SetPtCut(Float_t par = 1.);
     virtual void SetMomentumSmearing(Bool_t flag = kFALSE) {fSmear = flag;}
     virtual void SetEfficiencySim(Bool_t flag = kFALSE)    {fEffic = flag;}
-    virtual void SetSamplingFraction(Float_t par = 12.9) {fSamplingF = par;}
+    virtual void SetSamplingFraction(Float_t par) {fSamplingF = par;}
     virtual void SetIncludeK0andN(Bool_t flag = kFALSE) {fK0N = flag;}
     // Correction of hadronic energy
     virtual void SetHadronCorrector(AliEMCALHadronCorrection* corr)