Skip to content
Snippets Groups Projects
Commit ec1a1a06 authored by Alexander Kiselev's avatar Alexander Kiselev
Browse files

Work in progress changes to IRT code

parent 1116b500
Branches
No related tags found
1 merge request!8merge integration development branch `irt-init-v02`
...@@ -83,7 +83,7 @@ block by block. ...@@ -83,7 +83,7 @@ block by block.
unset ATHENA_PREFIX unset ATHENA_PREFIX
# Install "athena" detector description (at least the materials are needed); # Install "athena" detector description (at least the materials are needed);
git clone https://eicweb.phy.anl.gov/EIC/detectors/athena.git git clone https://eicweb.phy.anl.gov/EIC/detectors/athena.git --branch irt-init-v01
cd athena && mkdir build && cd build cd athena && mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA .. cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA ..
make -j2 install make -j2 install
...@@ -95,9 +95,9 @@ cd ip6 && mkdir build && cd build ...@@ -95,9 +95,9 @@ cd ip6 && mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA .. cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA ..
make -j2 install make -j2 install
# Install a particular branch of the EIC data model (will become master soon); # Install a particular branch of the EIC data model;
cd /tmp/ATHENA cd /tmp/ATHENA
git clone https://eicweb.phy.anl.gov/EIC/eicd.git --branch ayk-01 git clone https://eicweb.phy.anl.gov/EIC/eicd.git --branch irt-init-v01
cd eicd && mkdir build && cd build cd eicd && mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA .. cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA ..
make -j2 install make -j2 install
...@@ -113,7 +113,7 @@ Installation ...@@ -113,7 +113,7 @@ Installation
``` ```
cd /tmp/ATHENA cd /tmp/ATHENA
git clone https://eicweb.phy.anl.gov/EIC/irt.git --branch ayk-01 git clone https://eicweb.phy.anl.gov/EIC/irt.git --branch irt-init-v01
cd irt && mkdir build && cd build cd irt && mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA -DEVALUATION=YES .. cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA -DEVALUATION=YES ..
make -j2 install make -j2 install
...@@ -128,25 +128,6 @@ IRT library in application to a basic ATHENA e-endcap proximity focusing aerogel ...@@ -128,25 +128,6 @@ IRT library in application to a basic ATHENA e-endcap proximity focusing aerogel
<br/> <br/>
eRICH example configuration
---------------------------
See [ERich_geo.cpp](detectors/src/ERich_geo.cpp) for a simple API example, in particular the calls
which define gas volume and aerogel radiators, as well as the photosensor geometry.
The following will compile libathena.so plugin with e(d)RICH detectors only. Be aware that it will
overwrite /tmp/ATHENA/lib/libathena.so installed earlier.
```
export LD_LIBRARY_PATH=/tmp/ATHENA/lib:${LD_LIBRARY_PATH}
cd /tmp/ATHENA/irt/detectors && mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA -DIRT=/tmp/ATHENA ..
make -j2 install
```
<br/>
Simulation pass Simulation pass
--------------- ---------------
...@@ -193,7 +174,7 @@ Juggler reconstruction pass ...@@ -193,7 +174,7 @@ Juggler reconstruction pass
``` ```
cd /tmp/ATHENA cd /tmp/ATHENA
git clone https://eicweb.phy.anl.gov/EIC/juggler.git --branch ayk-01 git clone https://eicweb.phy.anl.gov/EIC/juggler.git --branch irt-init-v01
cd juggler && mkdir build && cd build cd juggler && mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA .. cmake -DCMAKE_INSTALL_PREFIX=/tmp/ATHENA ..
......
...@@ -30,9 +30,13 @@ qe_data = [ ...@@ -30,9 +30,13 @@ qe_data = [
(850, 0.06), (850, 0.06),
(900, 0.04) (900, 0.04)
] ]
qe_30 = [
(350, 0.30),
(900, 0.30)
]
radiators = [ radiators = [
"Aerogel zbins=5 smearing=uniform 3mrad" "Aerogel zbins=1 smearing=uniform 3mrad"
] ]
podioinput = PodioInput( podioinput = PodioInput(
...@@ -45,16 +49,17 @@ podioinput = PodioInput( ...@@ -45,16 +49,17 @@ podioinput = PodioInput(
irtrec = IRTAlgorithm( irtrec = IRTAlgorithm(
# Input collections: MC truth tracks and eRICH raw hits (photons); # Input collections: MC truth tracks and eRICH raw hits (photons);
inputMCParticles="mcparticles", inputMCParticles="mcparticles",
#inputHitCollection="ERICHHits",
# Output collection: eRICH PID decisions; #Detector="ERICH",
#outputCherenkovPID="ERICHPID",
# SiPM QE and geometric efficiency; FIXME: units.eV coefficient gives extra x1000 (?); # SiPM QE and geometric efficiency; FIXME: units.eV coefficient gives extra x1000 (?);
QEcurve=[ ((1239.84/a), b) for a, b in qe_data ], QEcurve=[ ((1239.84/a), b) for a, b in qe_data ],
GeometricEfficiency="0.85", #GeometricEfficiency="0.85",
#QEcurve=[ ((1239.84/a), b) for a, b in qe_30 ],
GeometricEfficiency="1.00",
# Rebin the QE in that many equidistant bins; # Rebin the QE in that many equidistant bins;
QEbins="100", #QEbins="100",
QEbins="2",
# eRICH optics configuration produced by ERich_geo.cpp code along with the dd4hep XML file; # eRICH optics configuration produced by ERich_geo.cpp code along with the dd4hep XML file;
ConfigFile="erich-config.root", ConfigFile="erich-config.root",
...@@ -69,7 +74,7 @@ ApplicationMgr( ...@@ -69,7 +74,7 @@ ApplicationMgr(
TopAlg = [podioinput, irtrec, out], TopAlg = [podioinput, irtrec, out],
EvtSel = 'NONE', EvtSel = 'NONE',
# Process that many events; # Process that many events;
EvtMax = 100, EvtMax = 500,
ExtSvc = [podioevent], ExtSvc = [podioevent],
OutputLevel = DEBUG, OutputLevel = DEBUG,
PluginDebugLevel = 2 PluginDebugLevel = 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment