add cut on delta phi (Sidhart)
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Feb 2012 19:36:55 +0000 (19:36 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Feb 2012 19:36:55 +0000 (19:36 +0000)
PWGJE/AliAnalysisTaskJetProperties.cxx

index ae75bfc..9df3461 100644 (file)
@@ -771,6 +771,7 @@ void AliAnalysisTaskJetProperties::FillJetProperties(TList *jetlist){
        if(JetPt)FF = TrackPt/JetPt;
        DelEta      = TMath::Abs(JetEta - TrackEta);
        DelPhi      = TMath::Abs(JetPhi - TrackPhi);
+       if(DelPhi>TMath::Pi())DelPhi = TMath::Abs(DelPhi-TMath::TwoPi());
        DelR        = TMath::Sqrt(DelEta*DelEta + DelPhi*DelPhi);
        AreaJ       = TMath::Pi()*DelR*DelR;
        fh2EtaTrack ->Fill(JetPt,TrackEta);