How to run SCT digitization on nightly released version 4
Hi Ryuichi, Ashfaq,
I fixed compilation errors in the digitization and in the job options
file; so now you can install the latest version and run Goofy example in
Athena.
I attached to this e-mail, the requirements file that you can use in your
home directory --- to use the nightly atlrel_4, since the changes I did in
the package are not yet in the main release ---.
I attached also the SCT_Digitization_install_600.html, so that you can
follow the instructions to install the code.
Please feel free for comments or questions.
Ryuichi, could you please provide me with hits very similar to
sample_5events.GoofyHits.
Many thanks and regards,
Awatif.
[SCT_Digitization_install_600.html TEXT/html (6156 bytes)]
SCT_Digitization: Installation with 4.0.0
------------------------------------------------
SCT Digitization: Installation
------------------------------------------------
Step-by-step installation procedure
For working with nightly atlrel_4
Before starting you should have CMT initialized and setup to work with the right release.
% sh /afs/cern.ch/sw/contrib/CMT/v1r12p20020606/mgr/setup.sh
% cmt config Note that the cmt version you call above is different than in my other example, done for an older release of ATLAS.
Unless you are changing setups, the above commands only need to be given once. After each login you should do % source setup.sh
Create the test release package. Go to your working directory and do:
% cmt co TestRelease; cd TestRelease/****/cmt
Edit the requirements file and add the following lines:
use AthenaCommon * Control
use ZebraTDRCnv * Event
use McEventSelector * Generators
use SCT_Digitization * InnerDetector/InDetRawAlgs
use InDetMgrDetDescrCnv InDetMgrDetDescrCnv-* InnerDetector/InDetDetDescrCnv
use TDRDetDescrAthenaRoot TDRDetDescrAthenaRoot-* DetectorDescription
use IdDictDetDescrCnv IdDictDetDescrCnv-* DetectorDescriptionIf you want to modify the code of the digitization, you should check it out and have your local copy. Go to your working directory and do: % cmt co -r SCT_Digitization-00-02-03 InnerDetector/InDetRawAlgs/SCT_Digitization # Configure the packages and compile the code. % cd (your working directory)/TestRelease/*/cmt
% cmt broadcast cmt config; . setup.sh
% cmt broadcast gmake
Setup the Athena environment and get the files needed to run.
% cd ../run Verify that you have those files in your run directory: r3ksi285s80d10a88.hits3.gz
output_TBeam_test.efnoi.gz
sample_5events.GoofyHits.gz Prepare all the files needed: % gunzip *.gz
% sh TDRsetup_links.sh Use the correct xml files in run directory. Since the package is using CLHEP units, you have to:- and: cp SCT_ModuleSideDesignG4_mm.xml SCT_ModuleSideDesignG4.xml cp SCT_ModuleSideDesignLund_mm.xml SCT_ModuleSideDesignLund.xml cp SCT_ModuleSideDesignTDR_mm.xml SCT_ModuleSideDesignTDR.xml- go to run directory, and run the second examples down, which uses FADS hits.
Run the examples.
Beam test simulation (1 module, hits from file r3ksi285s80d10a88.hits3 produced with Geant4, threshold scan)
% athena SCT_TestBeamDigitization_jobOptions.txt Verify that the produced file tb_scurve_test00.efnoi is identical to output_TBeam_test.efnoi.
Processing of hits from G4 simulation of the SCT barrel (hits in the file sample_5events.GoofyHits, dummy detector description on the Athena side)
% athena SCT_Digitization_Goofy_jobOptions.txt Check distributions in the produced .hbook files.
Processing of hits from GEANT3 simulation of the SCT done several years ago (hits from an H->bb event on a tape which is staged for you when you do sh TDRsetup_links.sh in point 6, detector description comes from the TDR tape via RD's event)
% athena SCT_Digitization_TDR_jobOptions.txt Check distributions in the produced .hbook files.
------------------------------------------------
[requirements TEXT/PLAIN (2683 bytes)]
# to use with cmt v1r12p20020606
# source /afs/cern.ch/sw/contrib/CMT/v1r12p20020606/mgr/setup.sh
################################# Atlas requirements file ######################
#
# Setup Environment
#
# Setup the ATLAS CVS repository
#set CVSROOT ":kserver:atlas-sw.cern.ch:/atlascvs"
#
# This needs to be set according to your local site. Known sites are:
# CERN
# BNL
# LBNL
set CMTSITE "CERN"
#
# Setup an environment variable to reference the compiler versions.
#
#set CMTCONFIG "Linux-gcc-dbg" \
# gcc "Linux-gcc-dbg" \
# sun "Solaris-CC-dbg" \
# optimized "Linux-gcc-opt"
#
#
# Modify this to be your current base release
#
macro ATLAS_DIST_AREA "" \
CERN "/afs/cern.ch/atlas/software/dist" \
LBNL "???" \
LBL "???"
macro ATLAS_SETTINGS_AREA "" \
CERN "/afs/cern.ch/atlas/software/dist" \
LBNL "???" \
LBL "???"
macro atlrel_4 nightlies/rel/atlrel_4
#
set CMTCVSOFFSET "offline"
#
# David C. says I should have that too
#
set CMTHOME "${HOME}"
#
#use AtlasSettings v* $(ATLAS_DIST_AREA)
use AtlasSettings v* $(ATLAS_SETTINGS_AREA)
# Modify TestArea to be the location of your test release
#
macro TestArea "/afs/cern.ch/user/b/belymam/scratch0/600"
macro AtlasArea "/afs/cern.ch/atlas/software/dist/$(atlrel_4)"
# Setup the CMT search path
#
path CMTPATH ""
path_append CMTPATH "$(TestArea)"
path_append CMTPATH "$(AtlasArea)"
#
# This environment variable is needed in order to setup GAUDI correctly
#
set SITEROOT /afs/cern.ch
#
# Setup compiler-specific search paths
#
#
######################################### EOF ##################################