fixed usage of selection mask and fixed typo in histogram name
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Aug 2010 19:06:44 +0000 (19:06 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Aug 2010 19:06:44 +0000 (19:06 +0000)
PWG4/JetTasks/AliAnalysisTaskJetServices.cxx
PWG4/JetTasks/AliAnalysisTaskJetSpectrum2.cxx

index fe0623d..38331a5 100644 (file)
@@ -390,7 +390,7 @@ void AliAnalysisTaskJetServices::UserExec(Option_t */*option*/)
       Bool_t esdTrig = kFALSE;
       esdTrig = AliAnalysisHelperJetTasks::IsTriggerFired(esd,(AliAnalysisHelperJetTasks::Trigger)it);
       if(esdTrig)fh2ESDTriggerCount->Fill(it,kAllTriggered);
-      Bool_t cand = fInputHandler->IsEventSelected();
+      Bool_t cand = physicsSelection;
       if(cand){
        fh2ESDTriggerCount->Fill(it,kSelectedALICE); 
       }
@@ -418,6 +418,7 @@ void AliAnalysisTaskJetServices::UserExec(Option_t */*option*/)
     for(int it = AliAnalysisHelperJetTasks::kAcceptAll;it < AliAnalysisHelperJetTasks::kTrigger;it++){
       Bool_t aodTrig = kFALSE;
       aodTrig = AliAnalysisHelperJetTasks::IsTriggerFired(aod,(AliAnalysisHelperJetTasks::Trigger)it);
+      Bool_t cand = (aod->GetHeader()->GetOfflineTrigger())&(AliVEvent::kMB);
       if(aodTrig)fh2TriggerCount->Fill(it,kAllTriggered);
       if(vtxAOD->GetNContributors()>2&&!vtxTitle.Contains("TPCVertex")){
        if(aodTrig)fh2TriggerCount->Fill(it,kTriggeredVertex);
index 1ec9029..29cd281 100644 (file)
@@ -447,7 +447,7 @@ void AliAnalysisTaskJetSpectrum2::UserCreateOutputObjects()
 
   // Dijet histograms
 
-  fh2DijetDeltaPhiPt       = new TH2F("fh2DeltaPhiPt","Difference in the azimuthal angle;#Delta#phi;p_{T,1};Entries",180,0.,TMath::Pi(),nBinPt,binLimitsPt);
+  fh2DijetDeltaPhiPt       = new TH2F("fh2DijetDeltaPhiPt","Difference in the azimuthal angle;#Delta#phi;p_{T,1};Entries",180,0.,TMath::Pi(),nBinPt,binLimitsPt);
   fh2DijetAsymPt            = new TH2F("fh2DijetAsym","Pt asymmetry;#Deltap_{T}/(p_{T,1}+p_{T,2});p_{T,1};Entries",50,0.,1.,nBinPt,binLimitsPt);
   fh2DijetAsymPtCut         = new TH2F("fh2DijetAsymCut","Pt asymmetry after delta phi cut;#Deltap_{T}/(p_{T,1}+p_{T,2});p_{T,1};Entries",50,0.,1.,nBinPt,binLimitsPt);
   fh2DijetDeltaPhiDeltaEta = new TH2F("fh2DijetDeltaPhiDeltaEta","Difference in the azimuthal angle;#Delta#phi;Entries",180,0.,TMath::Pi(),20,-2.,2.);