correct setter for leading track pT in jet
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Jun 2012 15:38:32 +0000 (15:38 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Jun 2012 15:38:32 +0000 (15:38 +0000)
JETAN/AliAnalysisTaskJetCluster.cxx
JETAN/DEV/AliAnalysisTaskJetCluster.cxx

index 553bd3f..cba2c50 100644 (file)
@@ -1139,7 +1139,7 @@ void AliAnalysisTaskJetCluster::UserExec(Option_t */*option*/)
        if(j==0)fh1PtJetConstLeadingRec->Fill(part->Pt());
       }
       //set pT of leading constituent of jet
-      aodOutJet->SetPtLeading(ptLead);
+      aodOutJet->SetPtLeading(partLead->Pt());
 
       AliAODTrack *aodT = 0;
       if(partLead){
index 553bd3f..cba2c50 100644 (file)
@@ -1139,7 +1139,7 @@ void AliAnalysisTaskJetCluster::UserExec(Option_t */*option*/)
        if(j==0)fh1PtJetConstLeadingRec->Fill(part->Pt());
       }
       //set pT of leading constituent of jet
-      aodOutJet->SetPtLeading(ptLead);
+      aodOutJet->SetPtLeading(partLead->Pt());
 
       AliAODTrack *aodT = 0;
       if(partLead){