/[PAMELA software]/yoda/configure.in
ViewVC logotype

Contents of /yoda/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6.0 - (show annotations) (download)
Tue Feb 7 17:10:40 2006 UTC (18 years, 10 months ago) by kusanagi
Branch: MAIN
CVS Tags: YODA6_2/01, YODA6_2/00, YODA6_3/10, YODA6_3/06, YODA6_1/00, YODA6_0/00, YODA6_3/04, YODA6_3/05, YODA6_3/07, YODA6_3/00, YODA6_3/01, YODA6_3/02, YODA6_3/03, YODA6_3/08, YODA6_3/09
Changes since 5.1: +0 -0 lines
Several new features in this revision:
a) all the packets are conform to the Mass Memory Format specifications (http://people.roma2.infn.it/~cpu/Mass_Memory_Format.html)
b) unpacking either using the old files structure OR the new one file unpacking.
c) parametrized root files compression factor
d) deleting of the following packet: TofTest, TrkTest, TrkEvent.
e) the Tracker routines now work without the use of temp files.

The point a) allow Yoda to unpack in the root file all the packets generated by the CPU. According to the MassMemoryFormat; that is three possible data are available:

1) almost explicit structure of the packet (like for Log, Tracker, Mcmd, etc....);
2) dummy data collection structure (InitHeader, InitTrailer, CalibHeader, CalibTrailer);
3) just the data of the packet (almost all Alarm and Init procedures). The class regarding this packets have only one parameters, a TArrayC class, which contain the data-block included in the packet (tat is the data below the packet Header).

The point b) has been implemented as a consequence of an agreement about a more compact structure of the unpacked data. Up to now the structure of each unpacked data consisted of a folder, named after the packet type, and three files: xxx.Header.root, xxx.NamePacket.root, xxx.Registry.root.
Starting from this release YODA, by default will unpack the data in a unique root file. The structure of this file will consist of:
- several TTree(s) named after the packet type;
- into each TTree are foreseen three TBranche(s):
    - 'Header'  (the old xxx.Header.root file)
    - 'NameOfThePacket' (the old xxx.Event.root file or the xxx.Event.DETECTOR.root)
    - 'Registry' (the old xxx.Registry.root file)

Anyway is still possible, but deprecated, to unpack using the old structure, passing to the "yoda" command the optional parameter "-multifile"

The point c) has been implemented because is well know that writing time in a TTree is as much fast as much lower is the compression factor for the root file; anyway for a PAMELA dat file, a compression equal to 0 will generate a root file which will be more than two times the original size. To modify the compression parameter just add the optional parameter "-c [0-9]" to the yoda command line.

1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl Define the reference directory checking if the file exist there
4 dnl Any file argument can be passed to AC_INIT but, on the same time,
5 dnl changing all the relative path for all the files involved in the code!
6 dnl this will be called in the all the other MAKEFILEs as "@top_srcdir@"
7 AC_INIT(event/PamelaRun.h)
8
9 dnl Adds several standard checks. It takes the program name and version number as arguments.
10 AM_INIT_AUTOMAKE([yoda],[4.2.4])
11
12 dnl Indicates that you will be using a config.h file
13 dnl config.h will be generated by AUTOCONF using a confing.h.in file
14 dnl config.h.in can be generated automatically using AUTOHEADER
15 dnl However, you need a stamp-h file in your project to ensure that
16 dnl AUTOMAKE regenerates config.h from config.h.in.
17 dnl Type 'touch stamp-h' to add this file to your project
18 AM_CONFIG_HEADER(config.h)
19
20 AC_LIBTOOL_DLOPEN
21
22 dnl The following macros make the system type available to configure scripts
23 AC_CANONICAL_HOST
24
25 dnl Indicates that the source code may be in C
26 AC_PROG_CC
27
28 dnl ------------------Fortran support----------------------------------
29 dnl Determine a Fortran 77 compiler to use. If F77 is not already set in the environment,
30 dnl then check for g77 and f77, and then some other names.
31 dnl Set the output variable F77 to the name of the compiler found
32 AC_PROG_F77(f77 fort77 g77)
33
34 dnl Determine the linker flags (e.g., `-L' and `-l') for the Fortran 77
35 dnl intrinsic and run-time libraries that are required to successfully
36 dnl link a Fortran 77 program or shared library.
37 dnl The output variable FLIBS is set to these flags
38 AC_F77_LIBRARY_LDFLAGS
39 dnl ------------------Fortran support----------------------------------
40
41
42 dnl Indicates that the source code may be in C++
43 AC_PROG_CXX
44 AC_PROG_LIBTOOL
45
46 dnl Will generate an install target so that users may just type 'make install' to install the software
47 dnl Set output variable INSTALL to the path of a BSD compatible install program,
48 dnl if one is found in the current PATH.
49 dnl Otherwise, set INSTALL to `dir/install-sh -c', checking the directories specified to
50 dnl AC_CONFIG_AUX_DIR (or its default directories) to determine dir
51 AC_PROG_INSTALL
52
53 dnl This will allow you to build code in sub-directories into temporary libraries,
54 dnl which MAKE will then link in with the rest of the code
55 dnl AC_PROG_RANLIB
56
57
58 AC_PROG_MAKE_SET
59 AC_CHECK_PROG(HAS_DOXYFILE, doxygen, yes)
60
61 missing_dir=`cd $ac_aux_dir && pwd`
62 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
63 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
64 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
65 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
66 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
67
68
69 dnl Process the different options
70 AC_ARG_WITH(root,
71 [--with-root=path Use the specified ROOT directory],
72 ROOTSYS=$with_root,)
73
74 ROOT_LIBRARY="${ROOTSYS}/lib"
75
76 ROOT_LDFLAGS=" \
77 ${ROOT_LIBRARY}/libCint.so ${ROOT_LIBRARY}/libCore.so \
78 ${ROOT_LIBRARY}/libTree.so \
79 -ldl"
80
81
82 ROOT_INCLUDES="-I${ROOTSYS}/include"
83 AC_SUBST(ROOT_INCLUDES)
84 AC_SUBST(ROOT_LDFLAGS)
85 ROOTCINT=${ROOTSYS}/bin/rootcint
86 AC_SUBST(ROOTCINT)
87
88 AC_MSG_CHECKING(for gprof)
89 AC_ARG_ENABLE(gprof,
90 [--enable-gprof enable memory profiling with gprof],
91 gprof=$enableval,gprof=no)
92 if test "$gprof" != no
93 then
94 CXXFLAGS="-pg $CXXFLAGS"
95 AC_MSG_RESULT(enabled)
96 else
97 AC_MSG_RESULT(no)
98 fi
99
100 AC_ARG_WITH(log4cxx,
101 [--with-log4cxx=path Use the specified directroy for log4cxx],
102 LOG4CXX=$with_log4cxx,)
103 LOG4CXX_INCLUDES="-I${LOG4CXX}/include"
104 AC_SUBST(LOG4CXX_INCLUDES)
105 #------------------------------------------------------------
106 AC_ARG_WITH(log4cxx,
107 [--with-log4cxx=path Use the specified directroy for log4cxx],
108 LOG4CXX=$with_log4cxx,)
109
110 LOG4CXX_LIBRARY="${LOG4CXX}/lib"
111 LOG4CXX_INCLUDES="-I${LOG4CXX}/include"
112 LOG4CXX_LDFLAGS=" ${LOG4CXX_LIBRARY}/liblog4cxx.so "
113
114 AC_SUBST(LOG4CXX_INCLUDES)
115 AC_SUBST(LOG4CXX_LDFLAGS)
116 AC_SUBST(LOG4CXX_LIBRARY)
117 #------------------------------------------------------------
118
119
120
121 dnl Checks for header files.
122 AC_HEADER_STDC
123
124
125 dnl Indicates the name of the Makefile which will be generated
126 dnl and the various subDirs where it will be generated one
127 dnl Add your own Makefiles to create here.
128 AC_OUTPUT(Makefile Doxyfile \
129 event/Makefile \
130
131 dnl ------------------makes for Packets and SubPackets----------------
132 event/mcmd/Makefile \
133 event/tmtc/Makefile \
134 event/log/Makefile \
135 event/arrDump/Makefile \
136 event/tabDump/Makefile \
137 event/varDump/Makefile \
138 event/tsbt/Makefile \
139 event/tsbb/Makefile \
140 event/endrun/Makefile \
141 event/physics/Makefile \
142 event/physics/tracker/Makefile \
143 event/physics/anticounter/Makefile \
144 event/physics/calorimeter/Makefile \
145 event/physics/neutronDetector/Makefile \
146 event/physics/trigger/Makefile \
147 event/physics/tof/Makefile \
148 event/physics/S4/Makefile \
149 dnl ------------------makes for Packets and SubPackets----------------
150
151
152 dnl ------------------makes for Techmodel Data----------------
153 techmodel/Makefile \
154 techmodel/forroutines/tracker/Makefile \
155 techmodel/forroutines/tracker/readraw/Makefile \
156 techmodel/forroutines/anticounter/Makefile \
157 techmodel/forroutines/calorimeter/Makefile \
158 techmodel/forroutines/tof/Makefile \
159 techmodel/forroutines/trigger/Makefile \
160 techmodel/forroutines/Makefile \
161 techmodel/physics/Makefile \
162 dnl ------------------makes for Techmodel Data----------------
163 )
164
165

  ViewVC Help
Powered by ViewVC 1.1.23