SuperNEMO - Detector Efficiency
This repository holds a SN@ilWare configuration + source code to evaluate SuperNEMO detector efficiency. Given a bank label to look into, the module computes the efficiency of each sensitive detector volumes i.e. main wall calorimeter, X-wall calorimeter, γ-vetos and Geiger cells. An example of the use of this module is provided in this presentation.
The current version is hosted at
https://github.com/xgarrido/snemo_simulation_modules/snemo_detector_efficiency under
git
version control.
The code itself is implemented in the source
directory which holds the
snemo_detector_efficiency_module.*
source code as well as a CMakeLists.txt
file in order to compile, build and install the module following cmake
rules.
Module declaration
The next item holds the configuration for this module. The module name is
detector_efficiency_module
which is needed when using bxdpp_processing
as
explained in the top README file.
File preamble
#@description A sample list of setups #@key_label "name" #@meta_label "type"
Declaration & description
[name="detector_efficiency_module" type="analysis::snemo_detector_efficiency_module"] #@description A SuperNEMO module to calculate the detector sensitivity
Logging priority
#@description Logging priority logging.priority : string = "trace"
Geometry service label
#@description The Geometry Service label Geo_label : string = "Geo"
Bank label
#@description The data bank label bank_label : string = "CD"
Output file
The result of the module is streamed to an ASCII file which path is defined below
#@description Output file name output_filename : string as path = "/tmp/efficiency.dat"
Special execution of this module
Since this module will actively use geometry manager and its locators (i.e.
calo_locator
, xcalo_locator
,…), the module need to initialize and load the
geometry service. The geometry service is actually called in this section by
using the Geo
service label as defined in "Geometry service" section. To
properly load the Falaise
configuration files for the geometry, we have to
specify the path to these resource files by executing
bxdpp_processing \ --module-manager-config $PWD/config/module_manager.conf \ --module detector_efficiency_module_module \ --dll-config $PWD/config/dlls.conf \ --datatools::resource_path=falaise@<path to Falaise instal>/share/Falaise-1.0.0/resources \ --input-file <path to a data record>
The --datatools::resource_path
option will automatically register this path
and it will replace any of the @falaise:
declaration into Falaise
resource
path.