Avoid use of fastjet typedef/enum for setter of algorithm
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Jul 2013 13:33:29 +0000 (13:33 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Jul 2013 13:33:29 +0000 (13:33 +0000)
JETAN/AliAnalysisTaskJetCluster.cxx
JETAN/AliAnalysisTaskJetCluster.h
JETAN/DEV/AliAnalysisTaskJetCluster.cxx
JETAN/DEV/AliAnalysisTaskJetCluster.h

index 517ef2c..fcdfaba 100644 (file)
@@ -2246,3 +2246,12 @@ bool AliAnalysisTaskJetCluster::IsDMeson(int pc){
        for(int i=0;i< (int)(sizeof(bPdG)/sizeof(int));++i) if(abs(pc) == bPdG[i]) return true;
 return false;
 }
+
+void AliAnalysisTaskJetCluster::SetAlgorithm(Int_t i) {
+    fastjet::JetAlgorithm algo;
+    if(i == 0) algo = fastjet::kt_algorithm;
+    if(i == 1) algo = fastjet::cambridge_algorithm;
+    if(i == 2) algo = fastjet::antikt_algorithm;
+    fAlgorithm = algo;
+}
+
index 8d0cb5d..c079be6 100644 (file)
@@ -118,7 +118,7 @@ class AliAnalysisTaskJetCluster : public AliAnalysisTaskSE
     fastjet::AreaType            GetAreaType()          const {return fAreaType;}
     // Setters
     void SetRparam(Double_t f)                           {fRparam = f;}
-    void SetAlgorithm(fastjet::JetAlgorithm f)           {fAlgorithm = f;}
+    void SetAlgorithm(Int_t);
     void SetStrategy(fastjet::Strategy f)                {fStrategy = f;}
     void SetRecombScheme(fastjet::RecombinationScheme f) {fRecombScheme = f;}
     void SetAreaType(fastjet::AreaType f)                {fAreaType = f;}
index 517ef2c..fcdfaba 100644 (file)
@@ -2246,3 +2246,12 @@ bool AliAnalysisTaskJetCluster::IsDMeson(int pc){
        for(int i=0;i< (int)(sizeof(bPdG)/sizeof(int));++i) if(abs(pc) == bPdG[i]) return true;
 return false;
 }
+
+void AliAnalysisTaskJetCluster::SetAlgorithm(Int_t i) {
+    fastjet::JetAlgorithm algo;
+    if(i == 0) algo = fastjet::kt_algorithm;
+    if(i == 1) algo = fastjet::cambridge_algorithm;
+    if(i == 2) algo = fastjet::antikt_algorithm;
+    fAlgorithm = algo;
+}
+
index 8d0cb5d..c079be6 100644 (file)
@@ -118,7 +118,7 @@ class AliAnalysisTaskJetCluster : public AliAnalysisTaskSE
     fastjet::AreaType            GetAreaType()          const {return fAreaType;}
     // Setters
     void SetRparam(Double_t f)                           {fRparam = f;}
-    void SetAlgorithm(fastjet::JetAlgorithm f)           {fAlgorithm = f;}
+    void SetAlgorithm(Int_t);
     void SetStrategy(fastjet::Strategy f)                {fStrategy = f;}
     void SetRecombScheme(fastjet::RecombinationScheme f) {fRecombScheme = f;}
     void SetAreaType(fastjet::AreaType f)                {fAreaType = f;}