added histograms
authorssakai <Shingo.Sakai@lnf.infn.it>
Thu, 5 Jun 2014 11:38:17 +0000 (13:38 +0200)
committerssakai <Shingo.Sakai@lnf.infn.it>
Thu, 5 Jun 2014 11:39:27 +0000 (13:39 +0200)
PWGHF/hfe/AliAnalysisTaskHFECal.cxx
PWGHF/hfe/AliAnalysisTaskHFECal.h

index a587bc9..b01f029 100644 (file)
@@ -231,6 +231,10 @@ AliAnalysisTaskHFECal::AliAnalysisTaskHFECal(const char *name)
   ,fFakeRejection0(0)
   ,fFakeRejection1(0)
   ,fFakeRejection2(0)
+  ,EopFake(0)
+  ,EopTrue(0)
+  ,MatchFake(0)
+  ,MatchTrue(0)
   //,fnSigEtaCorr(NULL)
 {
   //Named constructor
@@ -394,6 +398,10 @@ AliAnalysisTaskHFECal::AliAnalysisTaskHFECal()
   ,fFakeRejection0(0)
   ,fFakeRejection1(0)
   ,fFakeRejection2(0)
+  ,EopFake(0)
+  ,EopTrue(0)
+  ,MatchFake(0)
+  ,MatchTrue(0)
   //,fnSigEtaCorr(NULL)
 {
        //Default constructor
@@ -966,6 +974,18 @@ void AliAnalysisTaskHFECal::UserExec(Option_t*)
           fFakeRejection0->Fill(TrStat,pt,mcWeight); 
           if(eop>-1.0)fFakeRejection1->Fill(TrStat,pt,mcWeight); // have match
           if(eop>0.9 && eop<1.3)fFakeRejection2->Fill(TrStat,pt,mcWeight); // have PID
+
+          if(TrStat==0)
+            {
+             EopFake->Fill(pt,eop);
+             MatchFake->Fill(pt,rmatch);
+            }  
+          else
+            {
+             EopTrue->Fill(pt,eop);
+             MatchTrue->Fill(pt,rmatch);
+            }  
+
         } 
       }
 
@@ -1603,6 +1623,22 @@ void AliAnalysisTaskHFECal::UserCreateOutputObjects()
   fFakeRejection2->Sumw2();
   fOutputList->Add(fFakeRejection2);
 
+  EopFake = new TH2D("EopFake","negative track Eop",200,0,20,200,0,2);
+  EopFake->Sumw2();
+  fOutputList->Add(EopFake);
+  EopTrue = new TH2D("EopTrue","true track Eop",200,0,20,200,0,2);
+  EopTrue->Sumw2();
+  fOutputList->Add(EopTrue);
+
+  MatchFake = new TH2D("MatchFake","negative track Match",200,0,20,100,0,0.05);
+  MatchFake->Sumw2();
+  fOutputList->Add(MatchFake);
+  MatchTrue = new TH2D("MatchTrue","true track Match",200,0,20,100,0,05);
+  MatchTrue->Sumw2();
+  fOutputList->Add(MatchTrue);
+
   PostData(1,fOutputList);
 }
 
index 81fc2d2..b4c30ce 100644 (file)
@@ -225,6 +225,10 @@ class AliAnalysisTaskHFECal : public AliAnalysisTaskSE {
  TH2D                   *fFakeRejection0;
  TH2D                   *fFakeRejection1;
  TH2D                   *fFakeRejection2;
+ TH2D                   *EopFake;
+ TH2D                   *EopTrue;
+ TH2D                   *MatchFake;
+ TH2D                   *MatchTrue;
 
  //<----- correction
  TGraphErrors           *fnSigEtaCorr[7];