from Chris
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Jul 2013 07:41:21 +0000 (07:41 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Jul 2013 07:41:21 +0000 (07:41 +0000)
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskFullpAJets.cxx
PWGJE/EMCALJetTasks/macros/AddTaskFullpAJets.C

index bff6d04..b9d9ca5 100644 (file)
@@ -125,6 +125,7 @@ AliAnalysisTaskFullpAJets::AliAnalysisTaskFullpAJets() :
     fScaleFactor(1.50),
     fTrackMinPt(0.15),
     fClusterMinPt(0.3),
+    fCentralityTag("V0A"),
     fCentralityBins(10),
     fCentralityLow(0),
     fCentralityUp(100),
@@ -273,6 +274,7 @@ AliAnalysisTaskFullpAJets::AliAnalysisTaskFullpAJets(const char *name) :
     fScaleFactor(1.50),
     fTrackMinPt(0.15),
     fClusterMinPt(0.3),
+    fCentralityTag("V0A"),
     fCentralityBins(10),
     fCentralityLow(0),
     fCentralityUp(100),
index b3c44cb..40c8b35 100644 (file)
@@ -1,10 +1,11 @@
-AliAnalysisTaskFullpAJets *AddTaskFullpAJets(const Double_t jetRadius=0.4, Bool_t IsMC=kFALSE, const char* track_name="PicoTracks", const char* clus_name="caloClusters", const char* corrclus_name="caloClustersCorr", const char* mcpart_name="MCParticles", const char* Centrality_name="V0A")
+AliAnalysisTaskFullpAJets *AddTaskFullpAJets(const char* proj_name, const Double_t jetRadius=0.4, Bool_t IsMC=kFALSE, const char* track_name="PicoTracks", const char* clus_name="caloClusters", const char* corrclus_name="caloClustersCorr", const char* mcpart_name="MCParticles", const char* Centrality_name="V0A")
 {
     char *usedTracks = track_name;
     char *usedClusters = clus_name;
     char *outClusName = corrclus_name;
     char *usedMCParticles = mcpart_name;
     char *centEst = Centrality_name;
+    char *projName = proj_name;
     const Double_t minTrackPt=0.15;
     const Double_t minClusterPt=0.30;
     const Double_t minMCPartPt=0.00;
@@ -32,7 +33,7 @@ AliAnalysisTaskFullpAJets *AddTaskFullpAJets(const Double_t jetRadius=0.4, Bool_
     }
     
     TString taskName = Form("AnalysisFullpAJetsR%d",drjet);
-    TString listName = Form("ListR%d",drjet);
+    TString listName = Form("List%sR%d",projName,drjet);
     TString fileName = Form("%s:FullpAJets", AliAnalysisManager::GetCommonFileName());
     
     // Jet finders (RECONSTRUCTED DATA)