Difference: OnlineAlignmentHowTo (70 vs. 71)

Revision 712018-03-22 - GiulioDujany

Line: 1 to 1
 
META TOPICPARENT name="LHCbDetectorAlignment"

Running the online alignment in run 2

Line: 346 to 346
  A new release area can be created with the following steps.
Changed:
<
<
First a clone of the project is needed:
>
>
First a clone of the Alignment project is needed:

user@plus $ cd /group/online/dataflow/cmtuser
user@plus $ git clone ssh://git@gitlab.cern.ch:7999/lhcb/Alignment.git
user@plus $ mv AlignmentOnline AlignmentDev_vXrY
user@plus $ cd AlignmentDev_vXrY
user@plus $ git checkout satellite_vXrY
user@plus $ lb-project-init
user@plus $ git update-index --assume-unchanged CMakeLists.txt
user@plus $ chmod g+rw ../AlignmentDev_vXrY # to allow colleagues to make changes in the directory

And modify its CMakeLists.txt by changing Alignment to AlignmentDev

# Declare project name and version
gaudi_project(AlignmentDev vXrY
              USE  Phys v25r0
              DATA AppConfig
                   FieldMap
                   ParamFiles)

Then clone the AlignmentOnline project:

 
user@plus $ cd /group/online/dataflow/cmtuser
user@plus $ git clone ssh://git@gitlab.cern.ch:7999/lhcb/AlignmentOnline.git
user@plus $ mv AlignmentOnline AlignmentOnlineDev_vXrY
user@plus $ cd AlignmentOnlineDev_vXrY
Changed:
<
<
user@plus $ git checkout satellite
>
>
user@plus $ git checkout satellite_vXrY
 user@plus $ lb-project-init user@plus $ git update-index --assume-unchanged CMakeLists.txt user@plus $ chmod g+rw ../AlignmentOnlineDev_vXrY # to allow colleagues to make changes in the directory
Changed:
<
<
Then modify the CMakeLists.txt by adding the following lines at its top
>
>
Then modify the CMakeLists.txt by adding the following lines at its top putting the approriate version of the Alignment and Online packages
 
Changed:
<
<
set(OnlineVersion vUrV) # <-- Change this to the latest version of Online (or the one suggested by the Online team) set(OnlineDev_DIR /group/online/dataflow/cmtuser/OnlineDev_${OnlineVersion}/InstallArea/$ENV{CMTCONFIG})
>
>
set(AlignmentDev_DIR /group/online/dataflow/cmtuser/AlignmentDev_vXrY/InstallArea/$ENV{CMTCONFIG}) set(OnlineDev_DIR /group/online/dataflow/cmtuser/OnlineDev_vXXrYY/InstallArea/$ENV{CMTCONFIG})
 
Changed:
<
<
and the dependency on the OnlineDev release
>
>
and change the dependency to the OnlineDev and AlignmentDev release
 
Changed:
<
<
gaudi_project(AlignmentOnlineDev vXXrY USE OnlineDev ${OnlineVersion} AlignmentOnline vXXrY)
>
>
gaudi_project(AlignmentOnlineDev vXrY USE AlignmentDev vXrY OnlineDev vXXrYY)
 
Line: 375 to 398
 online@plus $ dataflowcmt online@plus $ cd $User_release_area online@plus $ export CMTPROJECTPATH=/group/online/dataflow/cmtuser:$CMTPROJECTPATH
Changed:
<
<
online@plus $ cd AlignmentOnlineDev_vXXrY
>
>
online@plus $ cd AlignmentDev_vXrY online@plus $ rm -rf build.x* #(carefully) online@plus $ do_configure online@plus $ do_install online@plus $ cmsetup #(one should call this after every installation) online@plus $ cd AlignmentOnlineDev_vXrY
 online@plus $ rm -rf build.x* #(carefully) online@plus $ do_configure online@plus $ do_install online@plus $ cmsetup #(one should call this after every installation)
Changed:
<
<
Beware that this procedure could fail with CMake failing to find OnlineDev project. This may happen if /group/online/dataflow/cmtuser is not in the CMTPROJECTPATH.
>
>
Beware that this procedure could fail with CMake failing to find OnlineDev project. This may happen if /group/online/dataflow/cmtuser is not in the CMTPROJECTPATH.
 To fix this

online@plus $ export CMTPROJECTPATH=$CMTPROJECTPATH:/group/online/dataflow/cmtuser
Changed:
<
<
Once finished modify the link to the current and old version of AlignmentOnline:
>
>
Once finished modify the link to the current and old version of AlignmentOnline:
 
user@plus $ rm AlignmentRelease_old
user@plus $ mv AlignmentRelease AlignmentRelease_old
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback