Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,6 @@ jobs:
# source $(root-config --bindir)/thisroot.sh
# cd framework/pipeline/metadata/gas/
# restRoot -b -q GenerateDummyGas.C
- name: Generate Readout
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd framework/pipeline/metadata/readout/
restManager --c generateReadout.rml --o readout.root
restRoot -b -q PrintReadout.C'("readout.root")' > /dev/null
# We need to introduce basic validation here
# - diff validation.txt print.txt
- name: Basic Readout
run: |
source ${{ env.REST_PATH }}/thisREST.sh
Expand Down
11 changes: 11 additions & 0 deletions examples/01.alphaTrack/readout/GenerateReadouts.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Int_t GenerateReadouts() {
TRestDetectorReadout* readout = new TRestDetectorReadout("readouts.rml", "readout");
TRestDetectorReadout* cathode = new TRestDetectorReadout("readouts.rml", "cathode");

TFile* f = new TFile("readouts.root", "RECREATE");
readout->Write("readout");
cathode->Write("cathode");
f->Close();

return 0;
}
48 changes: 20 additions & 28 deletions examples/01.alphaTrack/readout/readouts.rml
Original file line number Diff line number Diff line change
@@ -1,45 +1,37 @@
<?xml version="1.0" ?>
<?xml version="1.0"?>
<readouts>
<globals>
<!-- The pitch value in mm -->
<variable name="PITCH" value="1" overwrite="false" />
<variable name="PITCH" value="1" overwrite="false"/>
<!-- The number of modules per axis MxM -->
<variable name="N_MODULES" value="1" overwrite="false" />
<variable name="N_MODULES" value="1" overwrite="false"/>
<!-- The number of pixels per side PxP -->
<variable name="N_CHANNELS" value="120" overwrite="false" />
<variable name="N_CHANNELS" value="120" overwrite="false"/>
</globals>

<TRestDetectorReadout name="cathode" title="Cathode ${PITCH} mm-Pitch ${N_CHANNELS}+${N_CHANNELS} channels">

<constant name="pitch" value="${PITCH}" overwrite="false" />
<constant name="pitch" value="${PITCH}" overwrite="false"/>
<!-- The number of modules per axis MxM -->
<constant name="nModules" value="${N_MODULES}" overwrite="false" />

<constant name="nModules" value="${N_MODULES}" overwrite="false"/>
<!-- The number of pixels per side PxP -->
<constant name="nChannels" value="${N_CHANNELS}" overwrite="false" />
<constant name="pixelSize" value="${PITCH}/sqrt(2.)" />

<parameter name="mappingNodes" value="400" />
<include file="microbulkModule.rml" />
<readoutPlane position="(0,0,0)mm" planeVector="(0,0,1)" chargeCollection="1" cathodePosition="(0,0,50)mm">
<addReadoutModule id="0" name="module" origin="(-0.5*nChannels*pitch,-0.5*nChannels*pitch)" rotation="0" decodingFile="" firstDaqChannel="0" />
<constant name="nChannels" value="${N_CHANNELS}" overwrite="false"/>
<constant name="pixelSize" value="${PITCH}/sqrt(2.)"/>
<parameter name="mappingNodes" value="400"/>
<include file="microbulkModule.rml"/>
<readoutPlane position="(0,0,0)mm" normal="(0,0,1)" chargeCollection="1" height="50mm">
<addReadoutModule id="0" name="module" origin="(-0.5*nChannels*pitch,-0.5*nChannels*pitch)" rotation="0" decodingFile="" firstDaqChannel="0"/>
</readoutPlane>
</TRestDetectorReadout>

<TRestDetectorReadout name="readout" title="Readout ${PITCH} mm-Pitch ${N_CHANNELS}+${N_CHANNELS} channels">

<constant name="pitch" value="${PITCH}" overwrite="false" />
<constant name="pitch" value="${PITCH}" overwrite="false"/>
<!-- The number of modules per axis MxM -->
<constant name="nModules" value="${N_MODULES}" overwrite="false" />

<constant name="nModules" value="${N_MODULES}" overwrite="false"/>
<!-- The number of pixels per side PxP -->
<constant name="nChannels" value="${N_CHANNELS}" overwrite="false" />
<constant name="pixelSize" value="${PITCH}/sqrt(2.)" />

<parameter name="mappingNodes" value="400" />
<include file="microbulkModule.rml" />
<readoutPlane position="(0,0,50)mm" planeVector="(0,0,-1)" chargeCollection="1" cathodePosition="(0,0,0)mm">
<addReadoutModule id="0" name="module" origin="(-0.5*nChannels*pitch,-0.5*nChannels*pitch)" rotation="0" decodingFile="" firstDaqChannel="0" />
<constant name="nChannels" value="${N_CHANNELS}" overwrite="false"/>
<constant name="pixelSize" value="${PITCH}/sqrt(2.)"/>
<parameter name="mappingNodes" value="400"/>
<include file="microbulkModule.rml"/>
<readoutPlane position="(0,0,50)mm" normal="(0,0,-1)" chargeCollection="1" height="50mm">
<addReadoutModule id="0" name="module" origin="(-0.5*nChannels*pitch,-0.5*nChannels*pitch)" rotation="0" decodingFile="" firstDaqChannel="0"/>
</readoutPlane>
</TRestDetectorReadout>
</readouts>
Binary file modified examples/01.alphaTrack/readout/readouts.root
Binary file not shown.
Loading