New package for heavy flavour electrons analysis (M.Fasel)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Jun 2009 09:01:37 +0000 (09:01 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Jun 2009 09:01:37 +0000 (09:01 +0000)
PWG3/CMakeLists.txt
PWG3/CMake_libPWG3hfe.txt [new file with mode: 0644]
PWG3/Makefile
PWG3/PWG3hfeLinkDef.h [new file with mode: 0644]
PWG3/libPWG3hfe.pkg [new file with mode: 0644]

index cae5671..e59a161 100644 (file)
@@ -9,6 +9,7 @@ ${CMAKE_SOURCE_DIR}/PWG3/base
 ${CMAKE_SOURCE_DIR}/PWG3/muon
 ${CMAKE_SOURCE_DIR}/PWG3/vertexingHF
 ${CMAKE_SOURCE_DIR}/PWG3/vertexingOld
+${CMAKE_SOURCE_DIR}/PWG3/hfe
 ${CMAKE_SOURCE_DIR}/STEER 
 ${CMAKE_SOURCE_DIR}/ANALYSIS
 ${CMAKE_SOURCE_DIR}/CORRFW
diff --git a/PWG3/CMake_libPWG3hfe.txt b/PWG3/CMake_libPWG3hfe.txt
new file mode 100644 (file)
index 0000000..3c3193e
--- /dev/null
@@ -0,0 +1,19 @@
+# -*- mode: cmake -*-
+
+set(SRCS
+      hfe/AliHFEcollection.cxx 
+      hfe/AliHFEpid.cxx 
+      hfe/AliHFEpidBase.cxx 
+      hfe/AliHFEpidTPC.cxx 
+      hfe/AliHFEpidTRD.cxx 
+      hfe/AliHFEpidTOF.cxx 
+      hfe/AliHFEpidMC.cxx 
+      hfe/AliHFEextraCuts.cxx 
+      hfe/AliHFEcuts.cxx 
+)
+
+# fill list of header files from list of source files
+# by exchanging the file extension
+String(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+AddLibrary(PWG3hfe "${SRCS}" "${HDRS}")
index be7c5c9..b28e369 100644 (file)
@@ -2,7 +2,7 @@
 
 include $(ROOTSYS)/test/Makefile.arch
 
-default-target: libPWG3base.so libPWG3muon.so libPWG3muondep.so libPWG3vertexingHF.so libPWG3vertexingOld.so 
+default-target: libPWG3base.so libPWG3muon.so libPWG3muondep.so libPWG3vertexingHF.so libPWG3vertexingOld.so libPWG3hfe.so 
 
 ALICEINC      = -I.
 
@@ -214,3 +214,27 @@ endif
 G__PWG3vertexingOld.cxx G__PWG3vertexingOld.h: $(HDRS_PWG3vertexingOld) $(DHDR_PWG3vertexingOld)
        @echo "Generating dictionary ..."
        rootcint -f $@ -c $(ALICEINC) $^
+
+## libPWG3hfe part
+##include libPWG3hfe.pkg
+
+DHDR_PWG3hfe := $(DHDR)
+HDRS_PWG3hfe := $(HDRS)
+SRCS_PWG3hfe := $(SRCS) G__PWG3hfe.cxx
+OBJS_PWG3hfe := $(SRCS_PWG3hfe:.cxx=.o)
+
+libPWG3hfe.so: $(OBJS_PWG3hfe)
+       @echo "Linking" $@ ...
+       @/bin/rm -f $@
+ifeq ($(ARCH),macosx)
+       @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
+else
+       @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
+endif
+       @chmod a+x $@
+       @echo "done"
+
+G__PWG3hfe.cxx G__PWG3hfe.h: $(HDRS_PWG3hfe) $(DHDR_PWG3hfe)
+       @echo "Generating dictionary ..."
+       rootcint -f $@ -c $(ALICEINC) $^
+
diff --git a/PWG3/PWG3hfeLinkDef.h b/PWG3/PWG3hfeLinkDef.h
new file mode 100644 (file)
index 0000000..8bef0c1
--- /dev/null
@@ -0,0 +1,20 @@
+#ifdef __CINT__
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+
+#pragma link C++ class  AliHFEcollection+;
+
+#pragma link C++ class  AliHFEpid+;
+#pragma link C++ class  AliHFEpidBase+;
+#pragma link C++ class  AliHFEpidTPC+;
+#pragma link C++ class  AliHFEpidTRD+;
+#pragma link C++ class  AliHFEpidTOF+;
+#pragma link C++ class  AliHFEpidMC+;
+
+#pragma link C++ class  AliHFEcuts+;
+#pragma link C++ class  AliHFEextraCuts+;
+#endif
diff --git a/PWG3/libPWG3hfe.pkg b/PWG3/libPWG3hfe.pkg
new file mode 100644 (file)
index 0000000..2041311
--- /dev/null
@@ -0,0 +1,22 @@
+#-*- Mode: Makefile -*-
+
+SRCS= hfe/AliHFEcollection.cxx \
+      hfe/AliHFEpid.cxx \
+      hfe/AliHFEpidBase.cxx \
+      hfe/AliHFEpidTPC.cxx \
+      hfe/AliHFEpidTRD.cxx \
+      hfe/AliHFEpidTOF.cxx \
+      hfe/AliHFEpidMC.cxx \
+      hfe/AliHFEextraCuts.cxx \
+      hfe/AliHFEcuts.cxx 
+HDRS= $(SRCS:.cxx=.h)
+
+DHDR= PWG3hfeLinkDef.h
+
+EINCLUDE:= PWG3/base  STEER TPC CORRFW 
+
+ifeq (win32gcc,$(ALICE_TARGET))
+PACKSOFLAGS:= $(SOFLAGS) -L$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET) -lSTEERBase \
+                         -lESD -lSTEER -lTPCbase \
+                         -lANALYSISalice -lANALYSIS -lCORRFW
+endif