]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fixing of warnings from FC
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Oct 2009 08:46:36 +0000 (08:46 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Oct 2009 08:46:36 +0000 (08:46 +0000)
PWG2/FORWARD/analysis/AliFMDAnaCalibEventSelectionEfficiency.cxx
PWG2/FORWARD/analysis/AliFMDAnaParameters.cxx
PWG2/FORWARD/analysis/AliFMDAnalysisTaskBackgroundCorrection.cxx
PWG2/FORWARD/analysis/AliFMDAnalysisTaskSharing.h
PWG2/FORWARD/analysis/AliFMDDndeta.cxx
PWG2/FORWARD/analysis/AliFMDDndeta.h

index be61655c4483af08d2e2368d19a4b83f3e922771..a44b5d8b0b4353260a9c5530d536b15a9a1b9464 100644 (file)
@@ -27,7 +27,7 @@ AliFMDAnaCalibEventSelectionEfficiency::AliFMDAnaCalibEventSelectionEfficiency(c
 }
 //____________________________________________________________________
 AliFMDAnaCalibEventSelectionEfficiency&
-AliFMDAnaCalibEventSelectionEfficiency::operator=(const AliFMDAnaCalibEventSelectionEfficiency& o
+AliFMDAnaCalibEventSelectionEfficiency::operator=(const AliFMDAnaCalibEventSelectionEfficiency& /*o*/
 {
   // Assignment operator 
   
@@ -67,7 +67,7 @@ Float_t AliFMDAnaCalibEventSelectionEfficiency::GetCorrection(Int_t vtxbin) {
 }
 
 //____________________________________________________________________
-void AliFMDAnaCalibEventSelectionEfficiency::Browse(TBrowser* b)
+void AliFMDAnaCalibEventSelectionEfficiency::Browse(TBrowser* /*b*/)
 {
   
 }
index 83c7f3585a9ad8062ac4efb2f2c8790f3d09290e..e3cc7f7527857ec9122cfae79a476e27ec3e59cf 100644 (file)
@@ -66,6 +66,7 @@ AliFMDAnaParameters::AliFMDAnaParameters() :
   fBackground(0),
   fEnergyDistribution(0),
   fEventSelectionEfficiency(0),
+  fSharingEfficiency(0),
   fCorner1(4.2231, 26.6638),
   fCorner2(1.8357, 27.9500),
   fEnergyPath("$ALICE_ROOT/PWG2/FORWARD/corrections/EnergyDistribution"),
@@ -88,7 +89,7 @@ AliFMDAnaParameters::AliFMDAnaParameters() :
 //____________________________________________________________________
 char* AliFMDAnaParameters::GetPath(const char* species) {
   
-  char* path ;
+  char* path = "";
   
   if(species == fgkBackgroundID)
     path = Form("%s/%s_%d_%d_%d_%d_%d_%d.root",
index 2a14354770f71ee60097c97c311259de1c50be20..46b35d17c6fd49ad510ca63031a054e7c0167bb3 100644 (file)
@@ -78,7 +78,7 @@ void AliFMDAnalysisTaskBackgroundCorrection::CreateOutputObjects()
   
   TH2F* hMult = 0;
   TH2F* hHits = 0;
-  TH2F* hHitsNoCuts = 0;
+  // TH2F* hHitsNoCuts = 0;
   Int_t nVtxbins = pars->GetNvtxBins();
   
   for(Int_t det =1; det<=3;det++)
@@ -177,21 +177,9 @@ void AliFMDAnalysisTaskBackgroundCorrection::Exec(Option_t */*option*/)
       hMultTotal->Add(hMultInput);
       
       hMultTotal->Divide(hBg);//,"B");
-      /*for(Int_t i = 1; i<=hTmp->GetNbinsX();i++) {
-       for(Int_t j = 1; j<=hTmp->GetNbinsY();j++) {
-         Float_t mult = hTmp->GetBinContent(i,j);
-         if(mult == 0) continue;
-         Float_t correction = hBg->GetBinContent(i,j);
-         
-         Float_t multcor = mult;
-         if(correction != 0)
-           multcor = multcor/correction;
-         else
-           std::cout<<"Warning! No correction for bin "<<i<<" , "<<j<<std::endl;
-         
-         hTmp->SetBinContent(i,j,multcor);
-       }
-       }*/
+      
+      //sharing efficiency correction ?
+      
     }
   }
   if(fStandalone) {
index a1fe47c937b64a8a2cd72be135e67a3bc16b3c5a..ed66be077fbf0ddb42da24797cf2b969f526dfae 100644 (file)
@@ -39,7 +39,8 @@ class AliFMDAnalysisTaskSharing : public AliAnalysisTask
       fDiagList(),
       fStandalone(o.fStandalone),
       fEsdVertex(o.fEsdVertex),
-      fStatus(o.fStatus)   {}
+      fStatus(o.fStatus),
+      fLastTrackByStrip(o.fLastTrackByStrip) {}
     AliFMDAnalysisTaskSharing& operator=(const AliFMDAnalysisTaskSharing&) { return *this; }
     
     // Implementation of interface methods
index 9c39ff460a800f0de11474afa1e60a6c648d3c1d..04db794cee2db2ea5231543c9414db846f64b38a 100644 (file)
@@ -25,7 +25,9 @@ AliFMDDndeta::AliFMDDndeta()
   fVtxCut(10),
   fIsInit(kFALSE),
   fIsGenerated(),
-  fPrimEvents()
+  fPrimEvents(),
+  fEvents(),
+  fPrimdNdeta()
 {
  
 }
@@ -60,7 +62,7 @@ void AliFMDDndeta::SetNames(Analysis what) {
 //_____________________________________________________________________
 const char* AliFMDDndeta::GetAnalysisName(Analysis what, UShort_t det, Char_t ring, Int_t vtxbin) {
   
-  const char* name;
+  const char* name = "";
   
   switch(what) {
   case kHits :
@@ -84,7 +86,7 @@ const char* AliFMDDndeta::GetAnalysisName(Analysis what, UShort_t det, Char_t ri
 //_____________________________________________________________________
 const char* AliFMDDndeta::GetPrimName(Analysis what, UShort_t det, Char_t ring, Int_t vtxbin) {
   
-  const char* name;
+  const char* name = "";
   
   switch(what) {
   case kHits :
@@ -281,8 +283,8 @@ void AliFMDDndeta::GenerateMult(Analysis what) {
            nNonZero++;
        }
        Int_t nBinsOld = fNbinsToCut;
-       if(det == 2 && ringChar =='I') {
-         fNbinsToCut = 0;
+       if(det == 2 && ringChar =='I') {
+         fNbinsToCut = 1;
        }
        TH1F* hRingMult = (TH1F*)fMultList.FindObject(Form("hRingMult_FMD%d%c",det,ringChar));
        
@@ -313,6 +315,7 @@ void AliFMDDndeta::GenerateMult(Analysis what) {
        nNonZeroInData = 0;
        
        TH1F* sumMultHist = (TH1F*)fMultList.FindObject(Form("hMult_vtxbin%d",v));
+       
        for(Int_t i =1;i<=sumMultHist->GetNbinsX();i++) {
          if(multhistproj->GetBinContent(i) != 0 ) {      
            nNonZeroInData++;
@@ -532,7 +535,8 @@ void AliFMDDndeta::DrawDndeta(Analysis what, Int_t rebin) {
   if(nPrimevents > 0)
     hPrim->Scale(1/nPrimevents);
   
-    TFile testin("/home/canute/ALICE/FMDanalysis/GridAnalysis/fmd_dNdeta_hits.root","READ");
+  /*
+  TFile testin("/home/canute/ALICE/FMDanalysis/GridAnalysis/fmd_dNdeta_hits.root","READ");
     // TFile testin("/home/canute/ALICE/FMDanalysis/productionData/fmd_dNdeta_hits.root","READ");
   TH1F* hcorrect = (TH1F*)testin.Get("hReldif");
   hcorrect->SetName("djarnis");
@@ -543,7 +547,7 @@ void AliFMDDndeta::DrawDndeta(Analysis what, Int_t rebin) {
  
   sumMult->Divide(hcorrect);
   //delete hcorrect;
-  
+  */
   
   sumMult->Rebin(rebin);
   sumMult->Scale(1/rebin);
@@ -585,15 +589,18 @@ void AliFMDDndeta::DrawDndeta(Analysis what, Int_t rebin) {
   //hPrim->GetYaxis()->SetRangeUser(0,20);
   hPrim->SetStats(0000);
   hPrim->GetXaxis()->SetTitle("#eta");
-  
+  sumMult->SetTitle("");
+  sumMult->SetStats(kFALSE);
   sumMult->DrawCopy("PE");
-  hPrim->DrawCopy("E3same");
-  //primMult->DrawCopy("E3same");
+  if(what != kHits)
+    hPrim->DrawCopy("E3same");
+  if(what == kHits)
+    primMult->DrawCopy("E3same");
   hPrim->GetXaxis()->SetTitle("#eta");
   
   hPrim->SetMarkerStyle(8);
-  
-  hPrim->DrawCopy("PE3same");
+  if(what != kHits)
+    hPrim->DrawCopy("PE3same");
   sumMult->DrawCopy("PEsame");
   std::cout<<"FMD 1 "<<sumMult->Integral(sumMult->FindBin(3),sumMult->FindBin(5),"width")<<std::endl;
   /*TFile* itsfile = TFile::Open(itsfilename);
@@ -619,7 +626,10 @@ void AliFMDDndeta::DrawDndeta(Analysis what, Int_t rebin) {
   
   
   TLegend* leg = new TLegend(0.35,0.2,0.65,0.35,"");
-  leg->AddEntry(hPrim,"Primary","pf");
+  if(what != kHits)
+    leg->AddEntry(hPrim,"Primary","pf");
+  else
+    leg->AddEntry(primMult,"Hits","pf");
   //leg->AddEntry(primMult,"Analysed prim","f");
   leg->AddEntry(sumMult,"Analysis","p");
   leg->Draw();
index 003fb64fc44787c354f53ae4757d54620cdb9819..58446c5290b45cb030d75eceeaa451f5e6bc7f96 100644 (file)
@@ -10,6 +10,24 @@ class AliFMDDndeta : public TObject
 
  public:
   AliFMDDndeta();
+ AliFMDDndeta(const AliFMDDndeta& o) : 
+  fList(0),
+    fMultList(),
+    fNbinsToCut(o.fNbinsToCut),
+    fVtxCut(o.fVtxCut),
+    fIsInit(o.fIsInit),
+    fIsGenerated(),
+    fPrimEvents(o.fPrimEvents),
+    fEvents(o.fEvents),
+    fPrimdNdeta(fPrimdNdeta)
+    {}
+  
+  AliFMDDndeta& operator=(const AliFMDDndeta& /*o*/) 
+    {
+      // Assignment operator 
+      
+      return (*this);
+    }
   
   enum Analysis {kHits, kHitsTrVtx, kMult, kMultTrVtx};