1)Terminate() method implemented in the frame. Simple examples on what to do with...
[u/mrichter/AliRoot.git] / PWG4 / PartCorrDep / AliAnaParticleIsolation.cxx
index 293539d4a07b3c4ec12b190f8f656dcd1b2a17b8..3e937102b3234635e0ff49264bb33a361988787e 100755 (executable)
@@ -35,7 +35,7 @@
 #include "AliIsolationCut.h"\r
 #include "AliNeutralMesonSelection.h"\r
 #include "AliAODPWG4ParticleCorrelation.h"\r
-#include "AliCaloPID.h"\r
+#include "AliMCAnalysisUtils.h"\r
 \r
 ClassImp(AliAnaParticleIsolation)\r
   \r
@@ -792,30 +792,30 @@ void  AliAnaParticleIsolation::MakeAnalysisFillHistograms()
                        if(IsDataMC()){\r
                                Int_t tag =aod->GetTag();\r
                                \r
-                               if(tag == AliCaloPID::kMCPrompt){\r
+                               if(tag == AliMCAnalysisUtils::kMCPrompt){\r
                                        fhPtIsoPrompt  ->Fill(ptcluster);\r
                                        fhPhiIsoPrompt ->Fill(ptcluster,phicluster);\r
                                        fhEtaIsoPrompt ->Fill(ptcluster,etacluster);\r
                                }\r
-                               else if(tag == AliCaloPID::kMCFragmentation)\r
+                               else if(tag == AliMCAnalysisUtils::kMCFragmentation)\r
                                {\r
                                        fhPtIsoFragmentation  ->Fill(ptcluster);\r
                                        fhPhiIsoFragmentation ->Fill(ptcluster,phicluster);\r
                                        fhEtaIsoFragmentation ->Fill(ptcluster,etacluster);\r
                                }\r
-                               else if(tag == AliCaloPID::kMCPi0Decay)\r
+                               else if(tag == AliMCAnalysisUtils::kMCPi0Decay)\r
                                {\r
                                        fhPtIsoPi0Decay  ->Fill(ptcluster);\r
                                        fhPhiIsoPi0Decay ->Fill(ptcluster,phicluster);\r
                                        fhEtaIsoPi0Decay ->Fill(ptcluster,etacluster);\r
                                }\r
-                               else if(tag == AliCaloPID::kMCEtaDecay || tag == AliCaloPID::kMCOtherDecay)\r
+                               else if(tag == AliMCAnalysisUtils::kMCEtaDecay || tag == AliMCAnalysisUtils::kMCOtherDecay)\r
                                {\r
                                        fhPtIsoOtherDecay  ->Fill(ptcluster);\r
                                        fhPhiIsoOtherDecay ->Fill(ptcluster,phicluster);\r
                                        fhEtaIsoOtherDecay ->Fill(ptcluster,etacluster);\r
                                }\r
-                               else if(tag == AliCaloPID::kMCConversion)\r
+                               else if(tag == AliMCAnalysisUtils::kMCConversion)\r
                                {\r
                                        fhPtIsoConversion  ->Fill(ptcluster);\r
                                        fhPhiIsoConversion ->Fill(ptcluster,phicluster);\r
@@ -899,11 +899,11 @@ void  AliAnaParticleIsolation::MakeSeveralICAnalysis(AliAODPWG4ParticleCorrelati
                        if(n[icone][ipt] == 0) {\r
                                fhPtThresIsolated[icone][ipt]->Fill(ptC);\r
                                if(IsDataMC()){\r
-                                       if(tag == AliCaloPID::kMCPrompt) fhPtThresIsolatedPrompt[icone][ipt]->Fill(ptC) ;\r
-                                       else if(tag == AliCaloPID::kMCConversion) fhPtThresIsolatedConversion[icone][ipt]->Fill(ptC) ;\r
-                                       else if(tag == AliCaloPID::kMCFragmentation) fhPtThresIsolatedFragmentation[icone][ipt]->Fill(ptC) ;\r
-                                       else if(tag == AliCaloPID::kMCPi0Decay) fhPtThresIsolatedPi0Decay[icone][ipt]->Fill(ptC) ;\r
-                                       else if(tag == AliCaloPID::kMCOtherDecay || tag == AliCaloPID::kMCEtaDecay) fhPtThresIsolatedOtherDecay[icone][ipt]->Fill(ptC) ;\r
+                                       if(tag == AliMCAnalysisUtils::kMCPrompt) fhPtThresIsolatedPrompt[icone][ipt]->Fill(ptC) ;\r
+                                       else if(tag == AliMCAnalysisUtils::kMCConversion) fhPtThresIsolatedConversion[icone][ipt]->Fill(ptC) ;\r
+                                       else if(tag == AliMCAnalysisUtils::kMCFragmentation) fhPtThresIsolatedFragmentation[icone][ipt]->Fill(ptC) ;\r
+                                       else if(tag == AliMCAnalysisUtils::kMCPi0Decay) fhPtThresIsolatedPi0Decay[icone][ipt]->Fill(ptC) ;\r
+                                       else if(tag == AliMCAnalysisUtils::kMCOtherDecay || tag == AliMCAnalysisUtils::kMCEtaDecay) fhPtThresIsolatedOtherDecay[icone][ipt]->Fill(ptC) ;\r
                                        else  fhPtThresIsolatedUnknown[icone][ipt]->Fill(ptC) ;\r
                                }\r
                        }\r
@@ -912,11 +912,11 @@ void  AliAnaParticleIsolation::MakeSeveralICAnalysis(AliAODPWG4ParticleCorrelati
                        if(nfrac[icone][ipt] == 0) {\r
                                fhPtFracIsolated[icone][ipt]->Fill(ptC);\r
                                if(IsDataMC()){\r
-                                       if(tag == AliCaloPID::kMCPrompt) fhPtFracIsolatedPrompt[icone][ipt]->Fill(ptC) ;\r
-                                       else if(tag == AliCaloPID::kMCConversion) fhPtFracIsolatedConversion[icone][ipt]->Fill(ptC) ;\r
-                                       else if(tag == AliCaloPID::kMCFragmentation) fhPtFracIsolatedFragmentation[icone][ipt]->Fill(ptC) ;\r
-                                       else if(tag == AliCaloPID::kMCPi0Decay) fhPtFracIsolatedPi0Decay[icone][ipt]->Fill(ptC) ;\r
-                                       else if(tag == AliCaloPID::kMCOtherDecay || tag == AliCaloPID::kMCEtaDecay) fhPtFracIsolatedOtherDecay[icone][ipt]->Fill(ptC) ;\r
+                                       if(tag == AliMCAnalysisUtils::kMCPrompt) fhPtFracIsolatedPrompt[icone][ipt]->Fill(ptC) ;\r
+                                       else if(tag == AliMCAnalysisUtils::kMCConversion) fhPtFracIsolatedConversion[icone][ipt]->Fill(ptC) ;\r
+                                       else if(tag == AliMCAnalysisUtils::kMCFragmentation) fhPtFracIsolatedFragmentation[icone][ipt]->Fill(ptC) ;\r
+                                       else if(tag == AliMCAnalysisUtils::kMCPi0Decay) fhPtFracIsolatedPi0Decay[icone][ipt]->Fill(ptC) ;\r
+                                       else if(tag == AliMCAnalysisUtils::kMCOtherDecay || tag == AliMCAnalysisUtils::kMCEtaDecay) fhPtFracIsolatedOtherDecay[icone][ipt]->Fill(ptC) ;\r
                                        else  fhPtFracIsolatedUnknown[icone][ipt]->Fill(ptC) ;\r
                                }\r
                        }\r
@@ -925,11 +925,11 @@ void  AliAnaParticleIsolation::MakeSeveralICAnalysis(AliAODPWG4ParticleCorrelati
                //Sum in cone histograms\r
                fhPtSumIsolated[icone]->Fill(ptC,coneptsum) ;\r
                if(IsDataMC()){\r
-                       if(tag == AliCaloPID::kMCPrompt) fhPtSumIsolatedPrompt[icone]->Fill(ptC,coneptsum) ;\r
-                       else if(tag == AliCaloPID::kMCConversion) fhPtSumIsolatedConversion[icone]->Fill(ptC,coneptsum) ;\r
-                       else if(tag == AliCaloPID::kMCFragmentation) fhPtSumIsolatedFragmentation[icone]->Fill(ptC,coneptsum) ;\r
-                       else if(tag == AliCaloPID::kMCPi0Decay) fhPtSumIsolatedPi0Decay[icone]->Fill(ptC,coneptsum) ;\r
-                       else if(tag == AliCaloPID::kMCOtherDecay || tag == AliCaloPID::kMCEtaDecay) fhPtSumIsolatedOtherDecay[icone]->Fill(ptC,coneptsum) ;\r
+                       if(tag == AliMCAnalysisUtils::kMCPrompt) fhPtSumIsolatedPrompt[icone]->Fill(ptC,coneptsum) ;\r
+                       else if(tag == AliMCAnalysisUtils::kMCConversion) fhPtSumIsolatedConversion[icone]->Fill(ptC,coneptsum) ;\r
+                       else if(tag == AliMCAnalysisUtils::kMCFragmentation) fhPtSumIsolatedFragmentation[icone]->Fill(ptC,coneptsum) ;\r
+                       else if(tag == AliMCAnalysisUtils::kMCPi0Decay) fhPtSumIsolatedPi0Decay[icone]->Fill(ptC,coneptsum) ;\r
+                       else if(tag == AliMCAnalysisUtils::kMCOtherDecay || tag == AliMCAnalysisUtils::kMCEtaDecay) fhPtSumIsolatedOtherDecay[icone]->Fill(ptC,coneptsum) ;\r
                        else  fhPtSumIsolatedUnknown[icone]->Fill(ptC,coneptsum) ;\r
                }\r
                \r