FRS - PNapi90/DESPEC-Analysis-Framework GitHub Wiki

FRS DETECTOR SYSTEM

The following section describes the workings of the FRS Detector System part of the DESPEC Analysis Framework

Introduction

The FRS part of the DESPEC Analysis Framework should be treated more or less like a black box, excluding some very crucial sections/variables necessary for changing configuration variables.

Changing Configurations

The FRS analysis code that is used by the FRS group will generate a setup file named Aug_2018_setup.C (or something similar). In order to change the configuration to this setup, simply follow these three steps:

Step 1: Copy everything in the setup file below the following lines:
//======
// MW
//======
into the setup file into the function void FRS_Detector_System::Setup_Parameters() located at the bottom of the FRS_Detector_System.cxx file (replacing any code that is there already).

Step 2: The first time the code is run it will write the variables to files (to be easily edited later). To do this the directory name for the setup files must be set. In Detector_System_Setup_File.txt, change the FRS_Setup_Name to whatever you want the directory for this setup to be.

Step 3: Ensure that FRS_File_Setup in Detector_System_Setup_File.txt is set to 0, this means that the variables are read from the code and written to the setup files.

Using/Returning to a Setup Defined in Setup Files

Simply set FRS_Setup_Name in Detector_System_Setup_File.txt, to the name of the directory with the setup you wish to use, and set FRS_File_Setup to 1.

**Note: ** It is not essential to set the code to file reading mode for a setup where the hardcoded variables are still correct. However not doing this will produce and error message and will be less efficient as the code will still be producing the setup files every time.