empty task to estimate base line of memory and cpu for train testing
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Oct 2011 16:57:14 +0000 (16:57 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Oct 2011 16:57:14 +0000 (16:57 +0000)
ANALYSIS/AliAnalysisTaskBaseLine.cxx [new file with mode: 0644]
ANALYSIS/AliAnalysisTaskBaseLine.h [new file with mode: 0644]
ANALYSIS/macros/train/AddTaskBaseLine.C [new file with mode: 0644]

diff --git a/ANALYSIS/AliAnalysisTaskBaseLine.cxx b/ANALYSIS/AliAnalysisTaskBaseLine.cxx
new file mode 100644 (file)
index 0000000..92c069b
--- /dev/null
@@ -0,0 +1,44 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* $Id: AliAnalysisTaskBaseLine.cxx 46301 2011-01-06 14:25:27Z agheata $ */
+
+//
+//
+// This empty task is used for the analysis train to estimate the memory and CPU consumption without any user code
+//
+//
+
+#include "AliAnalysisTaskBaseLine.h"
+
+ClassImp(AliAnalysisTaskBaseLine)
+
+AliAnalysisTaskBaseLine::AliAnalysisTaskBaseLine() 
+   :AliAnalysisTaskSE()
+{
+}
+
+AliAnalysisTaskBaseLine::AliAnalysisTaskBaseLine(const char *name)
+   :AliAnalysisTaskSE(name)
+{
+}
+
+AliAnalysisTaskBaseLine::~AliAnalysisTaskBaseLine()
+{
+}
+
+void AliAnalysisTaskBaseLine::UserExec(Option_t *) 
+{
+}
diff --git a/ANALYSIS/AliAnalysisTaskBaseLine.h b/ANALYSIS/AliAnalysisTaskBaseLine.h
new file mode 100644 (file)
index 0000000..5fa6ec1
--- /dev/null
@@ -0,0 +1,31 @@
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliAnalysisTaskBaseLine.cxx 46301 2011-01-06 14:25:27Z agheata $ */
+
+//
+// This empty task is used for the analysis train to estimate the memory and CPU consumption without any user code
+//
+
+#ifndef ALIANALYSISTASKBASELINE_H
+#define ALIANALYSISTASKBASELINE_H
+
+#include "AliAnalysisTaskSE.h"
+
+class AliAnalysisTaskBaseLine : public AliAnalysisTaskSE {
+ public:
+    AliAnalysisTaskBaseLine();
+    AliAnalysisTaskBaseLine(const char *name);
+    virtual ~AliAnalysisTaskBaseLine();
+    
+    virtual void     UserExec(Option_t *option);
+    
+ private:
+    AliAnalysisTaskBaseLine(const AliAnalysisTaskBaseLine&); // not implemented
+    AliAnalysisTaskBaseLine& operator=(const AliAnalysisTaskBaseLine&); // not implemented
+    
+    ClassDef(AliAnalysisTaskBaseLine, 1); // empty analysis
+};
+
+#endif
+
diff --git a/ANALYSIS/macros/train/AddTaskBaseLine.C b/ANALYSIS/macros/train/AddTaskBaseLine.C
new file mode 100644 (file)
index 0000000..4736f39
--- /dev/null
@@ -0,0 +1,13 @@
+AliAnalysisTask* AddTaskBaseLine() 
+{
+  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
+  if (!mgr) {
+    ::Error("AddTaskPhysicsSelection", "No analysis manager to connect to.");
+    return NULL;
+  }  
+  
+  AliAnalysisTask *task = new AliAnalysisTaskBaseLine("baseline");
+  mgr->AddTask(task);
+  
+  return task;
+}