updated for mini train analysis
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Dec 2009 19:27:22 +0000 (19:27 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Dec 2009 19:27:22 +0000 (19:27 +0000)
PWG4/macros/AddTaskJetSpectrum2.C
PWG4/macros/AddTaskThreeJets.C
PWG4/macros/AddTaskUE.C

index 6ba46d5..b1b151d 100644 (file)
@@ -19,13 +19,14 @@ AliAnalysisTaskJetSpectrum2 *AddTaskJetSpectrum2(char* bRec = "jets",char* bGen
 \r
    TString type = mgr->GetInputEventHandler()->GetDataType();\r
    TString typeMC(bGen);\r
+   typeMC.ToUpper();\r
    // Create the task and configure it.\r
    //===========================================================================\r
    \r
    AliAnalysisTaskJetSpectrum2* pwg4spec = new  AliAnalysisTaskJetSpectrum2(Form("Jet Spectrum %s %s",bRec,bGen));\r
       \r
    // or a config file\r
-   pwg4spec->SetAnalysisType(AliAnalysisTaskJetSpectrum2::kAnaMC);\r
+   // pwg4spec->SetAnalysisType(AliAnalysisTaskJetSpectrum2::kAnaMC);\r
    // if(iAODanalysis)pwg4spec->SetAODInput(kTRUE);\r
    // pwg4spec->SetDebugLevel(11); \r
    pwg4spec->SetBranchRec(bRec); \r
@@ -38,9 +39,20 @@ AliAnalysisTaskJetSpectrum2 *AddTaskJetSpectrum2(char* bRec = "jets",char* bGen
    }\r
    else pwg4spec->SetTrackTypeRec(AliAnalysisTaskJetSpectrum2::kTrackAODOut);\r
 \r
-   if(typeMC.Contains("AODMC2"))pwg4spec->SetTrackTypeGen(AliAnalysisTaskJetSpectrum2::kTrackAODMCCharged);\r
-   else pwg4spec->SetTrackTypeGen(AliAnalysisTaskJetSpectrum2::kTrackAODMCAll);\r
-   \r
+   if(typeMC.Contains("AODMC2")){\r
+     pwg4spec->SetTrackTypeGen(AliAnalysisTaskJetSpectrum2::kTrackAODMCCharged);\r
+   }\r
+   else if (typeMC.Contains("AODMC2")){\r
+     pwg4spec->SetTrackTypeGen(AliAnalysisTaskJetSpectrum2::kTrackAODMCAll);\r
+   }\r
+   else if (typeMC.Contains("AOD")) {\r
+     if(type == "AOD"){\r
+       pwg4spec->SetTrackTypeGen(AliAnalysisTaskJetSpectrum2::kTrackAODIn);\r
+     }\r
+     else{\r
+       pwg4spec->SetTrackTypeGen(AliAnalysisTaskJetSpectrum2::kTrackAODOut);\r
+     }\r
+   }\r
    mgr->AddTask(pwg4spec);\r
      \r
    // Create ONLY the output containers for the data produced by the task.\r
index ce296b4..3ef3e69 100644 (file)
@@ -22,11 +22,15 @@ AliAnalysisTaskThreeJets * AddTaskThreeJets(char *bRec = "jets",char * bGen = "j
   threeJets->SetBranchGen(bGen); \r
   //  threeJets->SetDebugLevel(10);\r
   threeJets->SetR(.5); \r
+  //  threeJets->SetUseMC(kFALSE); // explicitly switch of use of MC/search for MC Jets\r
+\r
   \r
   TString type = mgr->GetInputEventHandler()->GetDataType();\r
   if(type == "AOD"){\r
     threeJets->SetAODInput(kTRUE);\r
   }\r
+  \r
+\r
 \r
   mgr->AddTask(threeJets);\r
    \r
index 7025006..b358791 100644 (file)
@@ -52,14 +52,14 @@ void ConfigTaskUE(AliAnalysisTaskUE * ueana){
   // common config, extend with different cases\r
   Int_t anaType =1; \r
   Int_t regType =1;\r
-  Double_t jetEtaCut=0.2;\r
-  Double_t trackPtCut=0.5; \r
-  Double_t trackEtaCut= 0.9; \r
-  Double_t rad=0.7; \r
+  Double_t jetEtaCut=0.5;\r
+  Double_t trackPtCut=0.1;\r
+  Double_t trackEtaCut= 0.9;\r
+  Double_t rad=0.4;\r
   Double_t deltaPhiCut = 2.616;\r
-  \r
+  ueana->SelectTrigger(AliAnalysisHelperJetTasks::kMB1);\r
   ueana->SetDebugLevel(0); \r
-  ueana->SetPtRangeInHist(25, 0., 250.);\r
+  ueana->SetPtRangeInHist(25, 0., 50.);\r
   ueana->SetAnaTopology(anaType);      \r
   ueana->SetRegionType(regType);        \r
   ueana->SetJet1EtaCut(jetEtaCut);     \r