Project

General

Profile

FAQ » History » Version 1

Ole Hansen, 03/01/2018 07:01 PM

1 1 Ole Hansen
h1. Hall A C++ Analyzer Frequently Asked Questions
2
3
18 June 2003
4
5
h2. Building and Installing
6
7
----
8
9
Q: Why is building and startup so slow on ifarml1/2/3?
10
11
A: Because disk space on iframl1/2/3 is located on busy file servers. Things get a bit faster if you work on the local scratch disk /local/scratch, but not much.  To get the speed you deserve, move to your own standalone desktop machine or the Hall A counting house machines.  You will be surprised.
12
13
----
14
15
Q: I get bizarre compilation warnings like
16
17
<pre>
18
THaDecDict.C: In function `int G__THaUsrstrutils_Dictionary_2_1 
19
(G__value *, const char *, G__param *, int)':
20
THaDecDict.C:603: warning: value computed is not used
21
</pre>
22
23
What does this mean?
24
25
A: This seems to occur with ROOT 3.02 only. It seems to be a problem with the code generated automatically by rootcint. The compiled analyzer appears to work fine. Either ignore the warning or switch to a newer ROOT.
26
27
----
28
29
Q: The source used to compile fine, but then I switched to a different version of ROOT/gcc/Linux, moved stuff around, etc., and now I get a bizarre error like
30
31
<pre>
32
Creating dependencies for src/THaVDCCluster.C
33
make: *** No rule to make target `src/THaVDCLookupTTDConv.h', 
34
     needed by `src/THaVDCHit.d'.  Stop.
35
</pre>
36
37
A: Dependency files (.d) are out of date. To clean things up, do this:
38
39
<pre>
40
% find . -name '*.d' -exec rm {} \;
41
% make realclean
42
</pre>
43
44
Then rebuild the analyzer.
45
46
----
47
48
Q: I get warnings about undefined symbols and/or my analyzer crashes with an inexplicable segmentation fault.  What could be going on?
49
50
A: C++ is very sensitive to the exact form of function prototypes (signatures). It is possible that some object code in your current build directory are out of sync with the version of ROOT you are using. (This could happen, for example, if your system administrator upgraded ROOT.) Try
51
52
<pre>
53
% make realclean; make
54
</pre>
55
56
before believing the problem.  If the error persists, it is possible that you are using a very recent version of ROOT that is not source-compatible with the analyzer.  This can happen as the result of "improvements" to ROOT.  It is usually easy to fix. Contact the developers.
57
58
----
59
60
Q: How do I build the analyzer on a non-Linux Unix platform?
61
62
A: Currently only Solaris with the Sun Workshop compiler is officially supported. (This is the environment on ifarms1.) To switch to Solaris, simply change the definition of "ARCH" in the top-level Makefile from "linuxegcs" to "solarisCC5".
63
64
On other platforms (e.g. Tru64, IRIX, HP-UX), you must add appropriate compiler names and flags in the ARCH section of all the Makefiles. You will need ROOT compiled on your system, and you need to compile the analyzer with the same compiler that was used to compile your ROOT.
65
66
We will add official support for other Unix platforms as time permits and demand justifies.
67
68
69
h2. Running the Analyzer
70
71
Q: Where is the database?
72
73
A: The calibration and optics database currently reside under the directory pointed to by the DB_DIR environment variable (primary) or analyzer/DB directory (fallback) directory, organized with date-based granularity.
74
75
In general, a separate dated directory is needed for each configuration (detector map and calibration set). Each detector system has its own file which contains the detector's CRATE/SLOT/CHANNEL map, geometry, placement and alignment data, as well as calibration constants. The files are fairly well commented, and you are referrred to them for more information.	
76
77
Tools are being written such that the Analyzer can perform calibrations natively, but at the moment the constants are copied from ESPACE
78
databases and reformatted. A MySql database is also implemented, but is still undergoing refinement.
79
80
----
81
82
Q: Why are there these very large values of 1e38?
83
84
A: These are due to "undefined" values being used in the calculation that could not be circumvented. You will want to cut these entries from your results.
85
86
----
87
88
Q: Why is the display behaving poorly after quitting the analyzer/ROOT?
89
90
A: ROOT doesn't always return the terminal to a sane state. Use the "reset" command to regain control of the screen.