--- /dev/null
+# -*- mode: cmake -*-
+
+set(SRCS
+ omega3pi/AliAnalysisTaskOmegaPi0PiPi.cxx
+)
+
+# fill list of header files from list of source files
+# by exchanging the file extension
+String(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+AddLibrary(PWG4omega3pi "${SRCS}" "${HDRS}")
+
--- /dev/null
+void SETUP()
+{
+
+ // Load the ESD library
+ gSystem->Load("libPWG4omega3pi");
+
+ // Set the Include paths
+ gSystem->SetIncludePath("-I$ROOTSYS/include -IPWG4omega3pi");
+ gROOT->ProcessLine(".include PWG4omega3pi/omega3pi");
+
+ // Set our location, so that other packages can find us
+ gSystem->Setenv("PWG4omega3pi_INCLUDE", "PWG4omega3pi/omega3pi");
+}
--- /dev/null
+#ifdef __CINT__
+
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+
+#pragma link C++ class AliAnalysisTaskOmegaPi0PiPi+;
+
+#endif
--- /dev/null
+#-*- Mode: Makefile -*-
+
+SRCS = omega3pi/AliAnalysisTaskOmegaPi0PiPi.cxx
+
+HDRS:= $(SRCS:.cxx=.h)
+
+DHDR:= PWG4omega3piLinkDef.h
+
+EXPORT:=$(SRCS:.cxx=.h)
+
+ifeq (win32gcc,$(ALICE_TARGET))
+PACKSOFLAGS:= $(SOFLAGS) -L$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET) -lSTEERBase \
+ -lESD -lAOD -lANALYSIS -lANALYSISalice \
+ -L$(shell root-config --libdir) -lEG
+endif
--- /dev/null
+AliAnalysisTaskOmegaPi0PiPi* AddTaskomega3pi()
+{
+ // Creates an omega(782) --> pi0 pi+ pi- analysis task,
+ // configures it and adds it to the analysis manager.
+
+ // Get the pointer to the existing analysis manager via the static access method.
+ AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
+ if (!mgr) {
+ ::Error("AddTaskomega3pi", "No analysis manager to connect to.");
+ return NULL;
+ }
+
+ // Check the analysis type using the event handlers connected to the analysis manager.
+ if (!mgr->GetInputEventHandler()) {
+ ::Error("AddTaskomega3pi", "This task requires an input event handler");
+ return NULL;
+ }
+
+ // Add task
+ AliAnalysisTaskOmegaPi0PiPi *omegaTask = new AliAnalysisTaskOmegaPi0PiPi("OmegaPi0PiPi");
+ mgr->AddTask(omegaTask);
+
+ // Create containers for input/output
+ AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
+ AliAnalysisDataContainer *coutput = mgr->CreateContainer("histos",TList::Class(),AliAnalysisManager::kOutputContainer,"histos.root");
+
+ // Connect input/output
+ mgr->ConnectInput(omegaTask, 0, cinput);
+ mgr->ConnectOutput(omegaTask, 1, coutput);
+
+ return omegaTask;
+}
+
+