Split: AliEve{Beams,Lego} to new EVEANALYSIS
authordberzano <dario.berzano@cern.ch>
Fri, 16 Jan 2015 17:27:30 +0000 (18:27 +0100)
committerdberzano <dario.berzano@cern.ch>
Sun, 18 Jan 2015 23:01:07 +0000 (00:01 +0100)
13 files changed:
CMakeLists.txt
EVE/EveBase/CMakeLists.txt
EVE/EveBase/EveBaseLinkDef.h
EVEANALYSIS/AliEveBeamsInfo.cxx [moved from EVE/EveBase/AliEveBeamsInfo.cxx with 100% similarity]
EVEANALYSIS/AliEveBeamsInfo.h [moved from EVE/EveBase/AliEveBeamsInfo.h with 100% similarity]
EVEANALYSIS/AliEveBeamsInfoEditor.cxx [moved from EVE/EveBase/AliEveBeamsInfoEditor.cxx with 100% similarity]
EVEANALYSIS/AliEveBeamsInfoEditor.h [moved from EVE/EveBase/AliEveBeamsInfoEditor.h with 100% similarity]
EVEANALYSIS/AliEveLego.cxx [moved from EVE/EveBase/AliEveLego.cxx with 100% similarity]
EVEANALYSIS/AliEveLego.h [moved from EVE/EveBase/AliEveLego.h with 100% similarity]
EVEANALYSIS/AliEveLegoEditor.cxx [moved from EVE/EveBase/AliEveLegoEditor.cxx with 100% similarity]
EVEANALYSIS/AliEveLegoEditor.h [moved from EVE/EveBase/AliEveLegoEditor.h with 100% similarity]
EVEANALYSIS/CMakeLists.txt [new file with mode: 0644]
EVEANALYSIS/EveAnalysisLinkDef.h [new file with mode: 0644]

index f5e9682..13f7376 100644 (file)
@@ -231,6 +231,7 @@ add_subdirectory(CORRFW)
 add_subdirectory(EMCAL)
 add_subdirectory(EPOS)
 add_subdirectory(EVE)
+add_subdirectory(EVEANALYSIS)
 add_subdirectory(EVENTMIX)
 add_subdirectory(EVGEN)
 add_subdirectory(FASTSIM)
index 09254e6..745c51d 100644 (file)
@@ -42,8 +42,6 @@ include_directories(
 # Sources in alphabetical order
 set(SRCS
     AliEveApplication.cxx
-    AliEveBeamsInfo.cxx
-    AliEveBeamsInfoEditor.cxx
     AliEveCascade.cxx
     AliEveCascadeEditor.cxx
     AliEveCascadeListEditor.cxx
@@ -66,8 +64,6 @@ set(SRCS
     AliEveKink.cxx
     AliEveKinkEditor.cxx
     AliEveKinkListEditor.cxx
-    AliEveLego.cxx
-    AliEveLegoEditor.cxx
     AliEveMacro.cxx
     AliEveMacroEditor.cxx
     AliEveMacroExecutor.cxx
index 71320e1..8fb8667 100644 (file)
@@ -1,4 +1,3 @@
-// $Id$
 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
 
 /**************************************************************************
 #pragma link C++ class AliEveHFList+;
 #pragma link C++ class AliEveHFEditor+;
 #pragma link C++ class AliEveHFListEditor+;
-
-// AliEveLego
-#pragma link C++ class AliEveLego+;
-#pragma link C++ class AliEveLegoEditor+;
-
-// AliEveBeamInfo
-#pragma link C++ class AliEveBeamsInfo+;
-#pragma link C++ class AliEveBeamsInfoEditor+;
-
diff --git a/EVEANALYSIS/CMakeLists.txt b/EVEANALYSIS/CMakeLists.txt
new file mode 100644 (file)
index 0000000..41fe687
--- /dev/null
@@ -0,0 +1,75 @@
+# **************************************************************************
+# * Copyright(c) 1998-2014, 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.                  *
+# **************************************************************************
+
+# Module
+set(MODULE EveAnalysis)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/EVEANALYSIS)
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
+                    ${AliRoot_SOURCE_DIR}/EVE/EveBase
+                    ${AliRoot_SOURCE_DIR}/MONITOR/alistoragemanager
+                    ${AliRoot_SOURCE_DIR}/OADB
+                    ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEER
+                   )
+
+# Sources
+set(SRCS
+    AliEveBeamsInfo.cxx
+    AliEveBeamsInfoEditor.cxx
+    AliEveLego.cxx
+    AliEveLegoEditor.cxx
+)
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# Generate the dictionary
+# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
+get_directory_property(incdirs INCLUDE_DIRECTORIES)
+generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
+
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
+# Add a library to the project using the specified source files
+add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
+
+# Additional compilation flags
+set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
+
+# Linking the library
+target_link_libraries(${MODULE} ${LIBDEPS})
+
+# System dependent: Modify the way the library is build
+if(${CMAKE_SYSTEM} MATCHES Darwin)
+    set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+endif(${CMAKE_SYSTEM} MATCHES Darwin)
+
+# Installation
+install(TARGETS ${MODULE}
+  ARCHIVE DESTINATION lib
+  LIBRARY DESTINATION lib)
+install(FILES ${HDRS} DESTINATION include)
+
+message(STATUS "${MODULE} enabled")
diff --git a/EVEANALYSIS/EveAnalysisLinkDef.h b/EVEANALYSIS/EveAnalysisLinkDef.h
new file mode 100644 (file)
index 0000000..8c9f17a
--- /dev/null
@@ -0,0 +1,19 @@
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
+
+#pragma link off all functions;
+#pragma link off all globals;
+#pragma link off all classes;
+
+// AliEveLego
+#pragma link C++ class AliEveLego+;
+#pragma link C++ class AliEveLegoEditor+;
+
+// AliEveBeamInfo
+#pragma link C++ class AliEveBeamsInfo+;
+#pragma link C++ class AliEveBeamsInfoEditor+;