fixed type
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Feb 2011 15:48:14 +0000 (15:48 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Feb 2011 15:48:14 +0000 (15:48 +0000)
PWG4/macros/AddTaskJetCluster.C

index 46caf4e..2558a0b 100644 (file)
@@ -2,7 +2,7 @@
 
 Int_t kBackgroundMode = 0;
 Float_t kPtTrackCut = 0.15;
-Float_t kTrackEtaCut = 0.8;
+Float_t kTrackEtaWindow = 0.8;
 
 AliAnalysisTaskJetCluster *AddTaskJetClusterDelta(UInt_t filterMask = 16,Bool_t kUseAODMC = kFALSE,UInt_t iPhysicsSelectionFlag = AliVEvent::kMB,Char_t *jf = "KT", UInt_t iFlag){
    AliAnalysisTaskJetCluster *js = 0;
@@ -89,33 +89,33 @@ AliAnalysisTaskJetCluster *AddTaskJetClusterDelta(UInt_t filterMask = 16,Bool_t
    if(typeRec.Contains("AODMC2b")){// work down from the top AODMC2b -> AODMC2 -> AODMC -> AOD
      pwg4spec->SetTrackTypeRec(AliAnalysisTaskJetCluster::kTrackAODMCChargedAcceptance);
      pwg4spec->SetTrackPtCut(kPtTrackCut);
-     pwg4spec->SetTrackEtaCut(kTrackEtaCut);
+     pwg4spec->SetTrackEtaWindow(kTrackEtaWindow);
    }
    else if (typeRec.Contains("AODMC2")){
      pwg4spec->SetTrackTypeRec(AliAnalysisTaskJetCluster::kTrackAODMCCharged);
      pwg4spec->SetTrackPtCut(kPtTrackCut);
-     pwg4spec->SetTrackEtaCut(5);
+     pwg4spec->SetTrackEtaWindow(5);
    }
    else if (typeRec.Contains("AODMC")){
      pwg4spec->SetTrackTypeRec(AliAnalysisTaskJetCluster::kTrackAODMCAll);
      pwg4spec->SetTrackPtCut(kPtTrackCut);
-     pwg4spec->SetTrackEtaCut(5);
+     pwg4spec->SetTrackEtaWindow(5);
    }
    else if (typeRec.Contains("AODextraonly")) {
      pwg4spec->SetTrackTypeRec(AliAnalysisTaskJetCluster::kTrackAODextraonly);
      pwg4spec->SetTrackPtCut(kPtTrackCut);
-     pwg4spec->SetTrackEtaCut(kTrackEtaCut);
+     pwg4spec->SetTrackEtaWindow(kTrackEtaWindow);
    }
    else if (typeRec.Contains("AODextra")) {
      cout << "AliAnalysisTaskJetCluster::kTrackAODextra: " << AliAnalysisTaskJetCluster::kTrackAODextra << endl;
      pwg4spec->SetTrackTypeRec(AliAnalysisTaskJetCluster::kTrackAODextra);
      pwg4spec->SetTrackPtCut(kPtTrackCut);
-     pwg4spec->SetTrackEtaCut(kTrackEtaCut);
+     pwg4spec->SetTrackEtaWindow(kTrackEtaWindow);
    }
    else if (typeRec.Contains("AOD")) {
      pwg4spec->SetTrackTypeRec(AliAnalysisTaskJetCluster::kTrackAOD);
      pwg4spec->SetTrackPtCut(kPtTrackCut);
-     pwg4spec->SetTrackEtaCut(kTrackEtaCut);
+     pwg4spec->SetTrackEtaWindow(kTrackEtaWindow);
    }
 
    pwg4spec->SetRparam(radius);