]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDFancy.cxx
added setter for best pt cut
[u/mrichter/AliRoot.git] / FMD / AliFMDFancy.cxx
index 65c53bb5e441cec9671a44d3924b0dbb6b3dea1f..72e07e7ab7252aef1703b3b0e79df55ca9c172e9 100644 (file)
@@ -168,7 +168,7 @@ AliFMDFancy::AliFancyDetector::Init()
       Int_t          nv = vs.GetEntries();
       Double_t       a  = TMath::Pi() / 180 * (m * 2 + 1) * ring->GetTheta();
       TGraph2D*      g  = new TGraph2D(nv);
-      Double_t       x0 = 0, y0 = 0, z0 = 0;
+      // Double_t       x0 = 0, y0 = 0, z0 = 0;
       Double_t       z  = zd + (m % 2==0 ? 0 : 
                                TMath::Sign(ring->GetModuleSpacing(), zd));
       minZ              = TMath::Min(minZ, z);
@@ -178,7 +178,7 @@ AliFMDFancy::AliFancyDetector::Init()
       for (Int_t c = 0; c < nv; c++) {
        TVector2* v = static_cast<TVector2*>(vs.At(nv - 1 - c));
        TVector2  w(v->Rotate(a));
-       if (c == 0) { x0 = w.X(); y0 = w.Y(); z0 = z; }
+       // if (c == 0) { x0 = w.X(); y0 = w.Y(); z0 = z; }
        g->SetPoint(c, w.X(), w.Y(), z);
        maxR        = TMath::Max(maxR, v->Mod());
       }
@@ -338,26 +338,26 @@ AliFMDFancy::End()
     fFMD1Pad->cd();
     fFMD1.End();
     fFMD1Pad->Modified();
-    fFMD1IHits.SetTitle(Form("# hits in FMD1I:  %5d", fFMD1.fNInnerHits));
-    total += fFMD1.fNInnerHits;
+    fFMD1IHits.SetTitle(Form("# hits in FMD1I:  %5d", fFMD1.GetNInnerHits()));
+    total += fFMD1.GetNInnerHits();
   }
   if ((/*det =*/ geom->GetDetector(2))) {
     fFMD2Pad->cd();
     fFMD2.End();
     fFMD2Pad->Modified();
-    fFMD2IHits.SetTitle(Form("# hits in FMD2I:  %5d", fFMD2.fNInnerHits));
-    fFMD2OHits.SetTitle(Form("# hits in FMD2O: %5d", fFMD2.fNOuterHits));
-    total += fFMD2.fNInnerHits;
-    total += fFMD2.fNOuterHits;    
+    fFMD2IHits.SetTitle(Form("# hits in FMD2I:  %5d", fFMD2.GetNInnerHits()));
+    fFMD2OHits.SetTitle(Form("# hits in FMD2O: %5d", fFMD2.GetNOuterHits()));
+    total += fFMD2.GetNInnerHits();
+    total += fFMD2.GetNOuterHits();    
   }
   if ((/*det =*/ geom->GetDetector(3))) {
     fFMD3Pad->cd();
     fFMD3.End();
     fFMD3Pad->Modified();
-    fFMD3IHits.SetTitle(Form("# hits in FMD3I:  %5d", fFMD3.fNInnerHits));
-    fFMD3OHits.SetTitle(Form("# hits in FMD3O: %5d", fFMD3.fNOuterHits));
-    total += fFMD3.fNInnerHits;
-    total += fFMD3.fNOuterHits;    
+    fFMD3IHits.SetTitle(Form("# hits in FMD3I:  %5d", fFMD3.GetNInnerHits()));
+    fFMD3OHits.SetTitle(Form("# hits in FMD3O: %5d", fFMD3.GetNOuterHits()));
+    total += fFMD3.GetNInnerHits();
+    total += fFMD3.GetNOuterHits();    
   }
   fTotal.SetTitle(Form("Total:    %5d/51200 (%3d%%)", 
                      total, Int_t(100. / 51200 * total)));