Add option for fast jet background (AddTaskJets), adding new default packages, fixing...
[u/mrichter/AliRoot.git] / PWG4 / macros / AddTaskJets.C
index 7164a57..d0ed23f 100644 (file)
@@ -159,7 +159,7 @@ AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf, Float_t radius,UInt_t f
    // Connect jet finder to task.\r
    jetana->SetJetFinder(jetFinder);\r
    jetana->SetConfigFile("");\r
-   jetana->SetDebugLevel(0);\r
+   jetana->SetDebugLevel(2);\r
    mgr->AddTask(jetana);\r
 \r
    // Create ONLY the output containers for the data produced by the task.\r
@@ -204,19 +204,25 @@ AliJetFinder *CreateJetFinder(Char_t *jf,Float_t radius){
     // DEFAULT is ANTI KT\r
     AliFastJetHeaderV1 *jh = new AliFastJetHeaderV1();\r
     jh->SetRparam(0.4); // setup parameters                                  \r
+    Double_t rBkg = 0.6;\r
     if(radius>0)jh->SetRparam(radius);\r
     jh->SetAlgorithm(2); // antikt from fastjet/JetDefinition.hh\r
     jetFinder = new AliFastJetFinder();\r
     jh->SetPtMin(1);\r
+    jh->SetRparamBkg(rBkg);\r
+    jh->SetGhostEtaMax(0.9+rBkg);\r
     if (jh) jetFinder->SetJetHeader(jh);\r
     break;\r
 \r
   case "FASTKT":\r
     AliFastJetHeaderV1 *jh = new AliFastJetHeaderV1();\r
     jh->SetRparam(0.4); // setup parameters                                  \r
+    Double_t rBkg = 0.6;\r
     if(radius>0)jh->SetRparam(radius);\r
     jh->SetAlgorithm(0); // kt from fastjet/JetDefinition.hh\r
     jh->SetPtMin(1);\r
+    jh->SetRparamBkg(rBkg);\r
+    jh->SetGhostEtaMax(0.9+rBkg);\r
     jetFinder = new AliFastJetFinder();\r
     if (jh) jetFinder->SetJetHeader(jh);\r
     break;\r