But you might need few external software packages before proceeding further e.g. install the following
files for
your local installation.
<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>
Few warning messages might appear but you can ignore them
[nitesh@HEPAdelaide1 SctRodDaq]$ source setUpNitesh.sh
gcc (GCC) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty;
not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Setting up TDAQ Common SW release ="tdaq-common-01-26-00"
Setting up DQM Common SW release ="dqm-common-00-26-01"
Setting up DAQ SW release ="tdaq-05-03-00"
Testing environment against =OKS= database...
< OKS ENV >
1,14c1,4
<
< Caught 2014-Mar-07 17:29:42,306 ERROR [ConfigurationImpl* _oksconfig_creator_(...) at oksconfig/src/OksConfiguration.cpp:40] oksconfig initialization error
:
:
< was caused by: 2014-Mar-07 17:29:42,305 ERROR [virtual void OksConfiguration::open_db(...) at oksconfig/src/OksConfiguration.cpp:68] cannot load file
'/home/nitesh/SctRodDaq/config/databases/SctPartition.data.xml':
<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>
- now start building the package
-
$make
(or $make SKIP_32=yes
[if you want to skip the 32 version])
If the SctRodDaq compile here successfully, then you are luckiest person on this planet, if not then start solving the errors step by step
Some of the errors you might come across and their solution
make -C ../MiniUtils all
make[3]: Entering directory `/home/nitesh/SctRodDaq/MiniUtils'
g++ hex2dec.o -L/home/nitesh/SctRodDaq/installed/x86_64-slc6-gcc47-opt/lib -L/home/nitesh/sw/lcg/external/Boost/1.53.0_python2.7//include/boost-1_53/../../lib -L/home/nitesh/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib -L/home/nitesh/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib -lowl -lipc -lis -lomniORB4 -lomnithread -lpthread -lpmgsync -lcmdline -ldl -L/home/nitesh/tdaq-common/tdaq-common-01-26-00/installed/x86_64-slc6-gcc47-opt/lib -lers `gcc -print-libgcc-file-name` -lz -L/home/nitesh/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib -o hex2dec && echo -n
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[3]: *** [hex2dec] Error 1
make[3]: Leaving directory `/home/nitesh/SctRodDaq/MiniUtils'
Solution
$yum install zlib
$yum install zlib.x86_64
If this doesn't solve the problem then do
$yum install zlib*
and rebuild
Problem with libXm.so.4
[nitesh@HEPAdelaide1 SctRodDaq]$ oks_data_editor
oks_data_editor: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory
Solution
$yum install openmotif
(remember you need to login as su)
if you want to skip the 32-bit version of compilation
$make SKIP_32=yes
Killing series of processes
ps -ef | grep pmg | awk '{print $2}' | xargs kill
"hostname" error
e.g.
[nitesh@HEPAdelaideRCE PartitionMaker]$ . ./make8Crates.sh
hostname: Unknown host
Traceback (most recent call last):
......
Edit the following file
$ vim /etc/hosts
and add the line related to the hostname, e.g.
129.127.103.1 HEPAdelaide1
(A) Running the test partition
Make a test partition and run it. It is required to test if the whole setup is working fine.
1) $cd config/PartitionMaker
2) $. ./make8Crates.sh
3) $TDAQ_DB_DATA=$PWD/SctTest8CratesPartition.data.xml
4) $setup_daq SctTest8CratesPartition
5) $rungui& (this might not show everything as it also needs to configured according to local installation, unless you desperately need it, better to skip this part)
$cd SystemTests/AnalysisTests
$. ./run_setup_daq.sh
$TDAQ_DB_DATA=/home/nitesh/NiteshSCTRODDAQ/new_2oct14/SctRodDaq/SystemTests/scratch/SctSystemAnalysisTests.data.xml
$setup_daq SctSystemAnalysisTests
Now start and run the partition as follows
- Click on the "initial" then "config" and then "start"
- Click on "SCT" tab on the "Run Control" and by clicking the right button of the mouse, exclude the "SctTestCrate0" and "SctHighLevelTest" tabs, The SCT should be green and running.
Basically, analysis partition is up and running up to this point.
Start the Analysis Test now
Let's begin by doing TrimRangeTests
$cd TrimRangeTests/TrimRangeAnalyse/
$. ./run.sh
- Click on the "IS" (information Service) on the partition window, and wait for the pop-up window
- Click on "Select the Partition" and then select the "SctSystemAnalysisTests" partition
- Click on "SCT_AnalysisData_TestCrate", another pop-up window will appear, and this is where we are publishing the results e.g. TrimRangeTest Results
Ideally, we should be able to view the results on "runGui" but at the moment it is not configured properly at Adelaide. There are some technically issues with it
Alternatively, we can view the data histogram as
$DataDisplayer -isonly SCT_AnalysisData_TestCrate.SctData::TrimRangeTestResult.1362.11.20220130000000
Similarly, we can do the other tests e.g. ShaperCurrentTest
$cd ShaperCurrentTest/
$. ./run.sh
Check the parition and it should be publishing the results there
$DataDisplayer -isonly SCT_AnalysisData_TestCrate.SctData::ShaperCurrentTestResult.1279192616.0.20220250000080
Some Important Commands
List and kill the partition
$ipc_ls -P
$ipc_ls -p SctSystemAnalysisTests
$pmg_kill_partition -p SctSystemAnalysisTests
or
$pmg_kill_partition -p $TDAQ_PARTITION
If some the "resources" are busy while running on the partition then we can remove them as
$rm_get_resource_info -p SctTest8CratesPartition
$rm_free_resource -p SctTest8CratesPartition
or
$rm_free_resource -p SctTest8CratesPartition -t UserControl
Look into the xml file
$oks_dump SctTest8CratesPartition.data.xml | less
Something else to try independently
ipc_server &
pmgserver &
ipc_ls
INSTRUCTIONS to Login into SR1 Machines
$ssh -X sctroddq@pc-sct-mon-41 (or 42 or 43)
password: (Ask some expert for the password)
$cd /work/pc-sct-mon-41/sctdaq/tdaq-05-03-00/installations/
$mkdir nitesh
$cd nitesh
$svn co svn+ssh://[username]@svn.cern.ch/reps/sctroddaq/trunk/SctDaq/trunk SctRodDaq
(replace the [username] with yours cern username)
$source exampleSetup.sh (you needs to update this script)
OR
$source /work/pc-sct-mon-41/sctdaq/tdaq-05-03-00/setups/setup_common.sh
$cd SctRodDaq/build/
$make
** Linux related Errors
- HDD USB driver can't mounted on the SLC6
Solution: Download the ntfs-3g rpm file (ntfs-3g-2011.1.15-1.el6.x86_64.rpm)
and then install as
$rpm -i ntfs-3g*
- SLC6 on the Dell Server
boot from CD by pressing the F11 key botton rather than F12 key botton
-- NiteshSoni - 04 Mar 2014