setenv CMTPROJECTPATH "<common-area-path>/kits:<personal-area>" |
project CMTI |
#macro OSC_home "/usr/local/OpenScientist/v16r0" macro OSC_home "/home/campagne/kits/OpenScientist/v16r0/" |
#macro ROOT_native_version "v5-13-04b" macro ROOT_native_version "4.03.02" macro ROOT_home "/home/campagne/kits/root-${ROOT_native_version}" |
project OSArea use OpenScientist v16r0 use CMTI |
setenv SVNURL "https://svn.lal.in2p3.fr/Opera/Glob" |
svn co ${SVNURL}/ELYSE/HEAD ELYSE/<new-version> |
source <common-area-path>/kits/CMT/<version>/mgr/setup.csh |
UNIX> cd ELYSE/<version>/cmt UNIX> cmt config UNIX> source setup.csh |
UNIX> cd ELYSE/<version>/cmt> UNIX> cmt show path # Add path /home/campagne/projets/OSArea from initialization # Add path /home/campagne/kits/OpenScientist/v16r0 from ProjectPath # Add path /home/campagne/CMTI from ProjectPath # Add path /home/campagne/CMTI from ProjectPath |
UNIX> cmt show uses # use OpenScientist v16r0 Interfaces # use ROOT v1r* Interfaces (native_version=4.03.02) # # Selection : use CMT v1r18p20051108 (/home/campagne/kits) use ROOT v1r51000p0 Interfaces (/home/campagne/CMTI/) use OpenScientist v16r0 Interfaces (/home/campagne/CMTI/) |
UNIX> cd ELYSE/<verson>/cmt UNIX> gmake |
[...] ------> ELYSE_session ok ------> (constituents.make) ELYSE_session done all ok. |
1) be sure to define the CMTPROJECTPATH variable (at login or by sourcing a meta-setup) 2) execute the ELYSE setup (no more necessary to run "cmt config"): UNIX> cd <personal-area>/OSArea/ELYSE/<versioin>/cmt UNIX> source setup.csh |
source | source Core directory |
application | source files where the main steering routine is defined |
ELYSE | include files of the Core |
cmt | directory where the CMT management files are located (requirements, setup/cleanup) |
data | event file directory. NUANCE style is used to code the primary vertex particles |
run | executable are run from this directory, the inputEventfile symbolic link to an existing event file should be set before run. There are also a collection of ROOT macros to decode the output event sturcture stored into the tuple. |
scripts | Geant4 and OpenScientist scripts |
UNIX> cd $ELYSEROOT/run UNIX> ../$CMTCONFIG/ELYSE_session.exe |
UNIX> you are in the run directory UNIX> (cd ../cmt ; gmake ROOT) |
std::string column = "int eventId, inputEvtId, interMode, vtxVol, "; column += "ITuple vtxPos = { double x, y, z }, "; column += "int nPart, leptonIndex, protonIndex, "; column += "ITuple track = { int pId, parent, float timeStart, "; column += "ITuple direction = { double dx, dy, dz }, "; column += "double mass, pTot, ETot, "; column += "ITuple momentum = { double px, py, pz }, "; column += "ITuple startPos = { double x, y, z }, "; column += "ITuple stopPos = { double x, y, z }, "; column += "int startVol, stopVol "; column += "}, "; column += "int nHits, ITuple hit = { int tubeId, int totalPE, ITuple pe = { float time} }, "; column += "int nDigits, double sumPE, "; column += "ITuple digit = { int tubeId, double pe, time }"; |