/[PAMELA software]/PamVMC/Makefile
ViewVC logotype

Contents of /PamVMC/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jun 12 18:38:51 2009 UTC (15 years, 5 months ago) by pam-rm2
Branch: MAIN
CVS Tags: v1r0, HEAD
Changes since 1.4: +4 -3 lines
- Introduced user-defined names of output files and random seeds number.
Users can do it use options of PamVMCApplication constructor:
PamVMCApplication(const char* name,  const char *title, const char*
filename="pamtest", Int_t seed=0).
The Random object that I use is TRandom3 object which has astronomical
large period (in case of default initialization 0). All random generators
in the code use this object by calling of gRandom singleton which keeps
it.

- Corrected TOF digitization routine. No problems with TDC hits due to
hadronic interactions anymore.

- Some small changes was done to compile code under Root 5.23. +
geant4_vmc v. 2.6 without any warnings

- Some classes of PamG4RunConfiguartion was changed for geant4_vmc v.
2.6.Some obsolete classes was deleted as soon as developers implemented
regions.

- Navigation was changed from "geomRootToGeant4" to "geomRoot", because on
VMC web page written that as soon as Geant4 has no option ONLY/MANY
translation of overlapped geometry to Geant4 through VGM could be wrong.
I'd like to stay with Root navigation:
http://root.cern.ch/root/vmc/Geant4VMC.html. This should be default
option.

- New Tracker digitization routine written by Sergio was implemented

- PamVMC again became compatible with geant4_vmc v.2.5 and ROOT 5.20.
 The problem was that ROOT developers introduced in TVirtualMC class a new
method SetMagField and new base class:TVirtualMagField from which
user-defined classes shoukd be derived

1 # $Id: Makefile,v 1.0 2007/06/01
2
3 ############################### geant4vmc Makefile ###########################
4
5 PACKAGE = PamVMC_fc
6
7
8 ifeq ($(PLATFORM),)
9 PLATFORM = $(shell root-config --arch)
10 endif
11
12 TOPDIR = $(PWD)
13 BINDIR = $(TOPDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE)
14 LIBDIR = $(TOPDIR)/lib/tgt_$(PLATFORM)
15 #BINDIR = $(G4WORKDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE)
16 #LIBDIR = $(G4WORKDIR)/lib/tgt_$(PLATFORM)
17
18 ifeq ($(ROOTSYS),)
19 ROOT_INCDIR = $(shell root-config --incdir)
20 ROOT_BINDIR = $(shell root-config --prefix)/bin
21 ROOT_ETCDIR = $(shell root-config --prefix)/etc/vmc
22 else
23 ROOT_INCDIR = $(ROOTSYS)/include
24 ROOT_BINDIR = $(ROOTSYS)/bin
25 ROOT_ETCDIR = $(ROOTSYS)/etc/vmc
26 endif
27
28 include $(ROOT_ETCDIR)/Makefile.$(PLATFORM)
29
30 ############################### Sources #######################################
31
32 # Rules
33 #
34 include $(ROOT_ETCDIR)/MakeRules
35
36 # Dictionary
37 #
38 GDICT := $(BINDIR)/$(PACKAGE)Cint.cxx
39 GDICTH := $(GDICT:.cxx=.h)
40 GDICTO := $(patsubst %.cxx,%.o,$(GDICT))
41
42 # Sources
43 #
44 CXXSRC := $(wildcard src/*.cxx)
45 CALSRC := $(wildcard cal/src/*.cxx)
46 TRKSRC := $(wildcard trk/src/*.cxx)
47 TRKFSRCS :=$(wildcard trk/src/f77/*.F)
48 TOFSRC := $(wildcard tof/src/*.cxx)
49 ACSRC := $(wildcard ac/src/*.cxx)
50 S4SRC := $(wildcard s4/src/*.cxx)
51 NDSRC := $(wildcard nd/src/*.cxx)
52
53
54 SRCS := $(CXXSRC) $(CALSRC) $(TRKSRC) $(TOFSRC) $(ACSRC) $(S4SRC) $(NDSRC)
55 FSRCS := $(TRKFSRCS)
56
57
58 # C++ Headers
59 #
60 HDRS := $(wildcard include/*.h)
61 HDRS += $(wildcard cal/include/*.h)
62 HDRS += $(wildcard trk/include/*.h)
63 HDRS += $(wildcard tof/include/*.h)
64 HDRS += $(wildcard ac/include/*.h)
65 HDRS += $(wildcard s4/include/*.h)
66 HDRS += $(wildcard nd/include/*.h)
67
68 HDRS := $(filter-out include/$(PACKAGE)LinkDef.h,$(HDRS))
69 HDRS += include/$(PACKAGE)LinkDef.h
70
71 # Objects
72 #
73 CXXOBJ := $(patsubst %.cxx,$(BINDIR)/%.o,$(SRCS))
74 FOBJ := $(patsubst %.F,$(BINDIR)/%.o,$(FSRCS))
75 OBJS := $(CXXOBJ) $(GDICTO) $(FOBJ)
76
77 # PAMELA LIBS
78 #
79 PAMLIBS := -L${PAM_LIB} -lTrkLevel2
80 SHLIBS := ${PAMLIBS}
81 # Make include list
82 #
83 PAMINC := -I$(PAM_INC) -I$(PAM_INC)/yoda
84 INCDIR := -Iinclude -I$(TOPDIR) \
85 -Ical/include \
86 -Itrk/include \
87 -Itof/include \
88 -Iac/include \
89 -Is4/include \
90 -Ind/include \
91 -I$(G4VMC_DIR)/include \
92 -I$(CLHEP_BASE_DIR)/include \
93 -Iinclude -I$(G4INCLUDE)
94
95 FINCDIR := -Itrk/include/f77
96 # C++ compilation flags
97 #
98 CXXFLAGS := $(CXXOPTS) -I. $(INCDIR) $(PAMINC) -I$(ROOT_INCDIR) ${PAMOPTS}
99 FFLAGS := $(FINCDIR) -fvxt -fno-automatic -Wno-globals
100
101 DEPINC += -I. -I$(ROOT_INCDIR) $(INCDIR)
102
103 ############################### Targets #######################################
104
105 RM_FILE=$(shell rm -f $(LIBDIR)/resxy_new.root)\
106 $(shell rm -f $(LIBDIR)/CalibTrk_00110_000_000.root)
107
108 AUXDIR='aux'
109 CP_FILE=$(shell mkdir -p ${LIBDIR})\
110 $(shell cp -rf ${AUXDIR}/resxy_new.root ${AUXDIR}/CalibTrk_00110_000_000.root ${LIBDIR}/)
111
112 SLIBRARY = $(LIBDIR)/lib$(PACKAGE).$(SL)
113 ALIBRARY = $(LIBDIR)/lib$(PACKAGE).a
114
115 default: depend $(SLIBRARY)
116
117
118 $(LIBDIR)/lib$(PACKAGE).$(SL):$(CP_FILE) $(OBJS) $(FOBS)
119
120 $(LIBDIR)/lib$(PACKAGE).a: $(CP_FILE) $(OBJS) $(FOBS)
121
122 DICT:= $(GDICT)
123
124 $(DICT): $(HDRS)
125
126 depend: $(SRCS) $(FSRCS)
127
128 TOCLEAN = $(BINDIR) $(RM_FILE)
129 TOCLEANALL = $(BINDIR) $(LIBDIR) $(RM_FILE)
130
131 include $(ROOT_ETCDIR)/MakeMacros
132
133
134 ############################### Dependencies ##################################
135
136 -include $(BINDIR)/Make-depend

  ViewVC Help
Powered by ViewVC 1.1.23