AIDA GELINA BRIKEN nToF CRIB ISOLDE CIRCE nTOFCapture DESPEC DTAS EDI_PSA 179Ta CARME StellarModelling DCF K40
  nToF, Page 4 of 5  ELOG logo
ID Date Authordown Subject
  65   Thu Aug 17 10:26:51 2023 Nikolay SosninData Processing

To run raw2root on LXPLUS, you will need to add the following line to your .bashrc, performed using

gedit ~/.bashrc &

then paste line at the bottome of the file

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/afs/cern.ch/user/n/ntofuser/public

then save and close the gedit (a linux text editor similar to Windows Notepad). Text file .bashrc is responsible for setting correct paths to various system settings when you log in. The line above sets correct libraries for raw2root from the n_TOF official directories.

 

The old version of raw2root which I use is stored in a directory on EOS accessible via LXPLUS:

cd /eos/home-n/nsosnin/public/raw2root

If you examine the contents of the directory using command ls, there will be two folders: ntoflib and prg. The relative location of these folders on your system should always be the same, and you do not need to do anything in the ntoflib directory, so we can explore the next directory

cd prg && ls

Command cd means change directory and ls is list contents, double-& chains commands in a sequence. Your terminal should now display two more directories: detector and raw2root. detector is a list of codes for various detector types, examine its contents with ls detector. We use MWDdetector.cc and its library header file MWDdetector.h. All the filters are defined and can be changed in MWDdetector.cc, which is a C++ code. You can browse and change its contents with gedit. raw2root codes, however, are run from the raw2root directory, so let's change to it

cd raw2root && ls

When you list the contents of this directory there will be many files, none of which you need to edit. There will also be a directory called Traces, which I created as the default location for signal traces to be written, if relevant sections of MWDdetector.cc are uncommented (discussed below). If you are happy with the contents of MWDdetector.cc, you need to re-compile raw2root. Using C++ code, unlike some others, is a two-step process: compilation and execution. Various bits of code in raw2root and its libraries are put together into one executable file called raw2root during compilation stage, and then the code can be run by executing the executable. To compile raw2root, you need to be in its directory, which you can check by typing in

pwd

which should then display /eos/home-n/nsosnin/public/raw2root/prg/raw2root and if you it displays something else, use

cd /eos/home-n/nsosnin/public/raw2root/prg/raw2root

To compile raw2root in this directory use

make clean && make proper && make

The code will start compiling and do so for a while. It will display some warnings associated with other older n_TOF codes. There should, however, be no errors. If there are errors, something went wrong in MWDdetector.cc, so try troubleshooting it by Googling the errors (the line with the error will also display two numbers, something like error: MWDdetector.cc:1211:45, and the the second number is the line where the problem occurred). C++ errors are a dark art though, so feel free to contact me for help.

If the compilation displays no errors (woo!), the code compiled successfully. To test it, two things are needed: UserInput file and .raw.finished file. UserInput file called UserInput_Silicons.h, which I use, is already stored in that directory. If you examine it with gedit, you will see lines with detector names and numbers and the filtering parameters. The parameters are read in at the top of MWDdetector.cc in order, so you can follow the variables they are read into throughout the code to figure out which parameter does what (this is not an easy task!).

.raw.finished files are binary data files with detector signal traces, which raw2root filters and makes into ROOT files. These need to be downloaded from CERN servers (I left two example ones in the directory though). While the experiment is running these are stored, but will eventually be deleted, so if they don't download, contact me on staging data (i.e. writing it onto servers again after deletion). To download such a binary file for this experiment to the directory you are in use

xrdcp xroot://eosctapublicdisk.cern.ch//eos/ctapublicdisk/archive/ntof/2023/EAR2/26Al_DSSSD/216408/stream1/run216408_1_s1.raw.finished .

Here, xrdcp command is CERN's own copying command, which takes data from the directory listed in the command. I have highlighted above in yellow the bits you may need to change in the command. The first two are simply run number. The last one is the data segment. n_TOF data within a run are subdivided into 20 proton bunch segments, so one such .raw.finished file that you download contains 20 bunches (which is a very small amount of data, so if you need mass_processing, contact me or Fran (francisco.garcia.infantes@cern.ch) at n_TOF). You can download different segments by changing this number. Bunches 1-20 are in segment 0, bunches 21-40 in segment 1, etc.

Once you have downloaded the file of interest execute raw2root with command

./raw2root -p UserInput_Silicons.h -f run216408_1_s1.raw.finished -r rootout.root

This will run for some time, applying settings from UserInput to filters in MWDdetector.cc, and running the filters over data in the .raw.finished file. This will produce an output file called rootout.root, but feel free to change the name in the command to whatever you like, otherwise you will just keep overwriting the old files. This output file will have the amplitudes, times etc. of all the extracted signals listed, but it will not produce traces, as that is not standard raw2root functionality, and requires my code, which I added to MWDdetector.cc

To print traces, open MWDdetector.cc using

gedit ../detector/MWDdetector.cc &

Note, ".." on Linux means "previous directory", so the command above will leave raw2root directory, go to detector directory and open the code. In this code, uncomment (i.e. remove // or /* or */ characters in C++) from lines 310-312, 441, 442, 465 and 529. This will now print trace ROOT files into the Traces directory. Warning: this runs very slowly, as it's a lot of data being written to disk!

The if() statment on line 465 allows you to gate on specific bunches and detectors for producing traces. The contents of histograms inside the output files can be understood in terms of what MWDdetector.cc does by reading the lines 514-522 of that code. This should be everything you need to get started with processing traces and filtering outputs. Good luck!

  28   Thu May 26 09:20:32 2022 Nick / ClaudiaInventory of Items at n_TOF for (n,cp) experiments

Detectors currently in the boxes:

2x MSL type W1(SS)-50, 2902-4 (53um), 2940-6 (55um)

1x MSL type W1(SS)-20 2837-33 (20um)

1x MSL type W1(DS?) 1230-10  (500 or 300 um)

1x MSL type W1(DS)-500 1194-9 (494um)

 

Three aluminium crates contain 26Al(n, alpha) kit from EAR2, and was in the barracks (building 6547) near detector lab by EAR1 entrance. A list is attached and photos can be found on Dropbox:

https://www.dropbox.com/sh/68k1xove2zr1bmj/AADKvN8wR_Ia2EwZMOXZqdMCa?dl=0

Attachment 1: rn_image_picker_lib_temp_e85b2099-7b73-4246-843d-6351800c2709.jpg
rn_image_picker_lib_temp_e85b2099-7b73-4246-843d-6351800c2709.jpg
Attachment 2: rn_image_picker_lib_temp_3ff5f819-1e0c-4278-bbbc-01038a0a0c94.jpg
rn_image_picker_lib_temp_3ff5f819-1e0c-4278-bbbc-01038a0a0c94.jpg
  76   Thu Sep 12 11:07:29 2024 Nick40K Borrowed Items

We borrowed from n_TOF:

1x O-ring for circular side-flanges on the chamber (the borrowed part has a small green marker cross on it)

10x LIMO-to-BNC connectors (BNC female) from electronics lab outside EAR1

  78   Thu Sep 12 15:26:30 2024 NickEAR2 Periodic Noise
Attachment 1: IMG_20240912_161937023_HDR.jpg
IMG_20240912_161937023_HDR.jpg
  86   Sat Jul 12 10:30:06 2025 Francisco García InfantesReport Experimental SetUp Ca41

I'm attaching a report for the experimental setup so far.

There is a main problem which haven't been solved yet and I don't know if that can cause problem in the future analysis.

Channels #23, #24, #31 and #32 are not working well. The signal os these channels look attenuated from the pulser, make impossible to see then in the Boron run.

As these channels are in the back side of the detector, it could be possible to run like? Unless we have more ideas about to solve the problem.

The front channels work well all of them, and the rest of the back channels work well as well.

I attach the current for the +15 and -15 volt applied to the PreAmp (low voltage) and the leakage current from the detector is 0.1 uA.

Attachment 1: Experimental_Setup_Ca41.pdf
Experimental_Setup_Ca41.pdf Experimental_Setup_Ca41.pdf Experimental_Setup_Ca41.pdf Experimental_Setup_Ca41.pdf Experimental_Setup_Ca41.pdf
Attachment 2: Current_Value_Voltage_-15.jpeg
Current_Value_Voltage_-15.jpeg
Attachment 3: Current_Value_Voltage_15.jpeg
Current_Value_Voltage_15.jpeg
Attachment 4: Leakage_Current_Detector.jpeg
Leakage_Current_Detector.jpeg
  41   Mon Jul 3 13:01:30 2023 EmmanuelBoxes for nTOF experiments to CERN

Box 1

1. RC412 Cables

2. Screws and parts for rails

3. Small rails

 

Box 2

1. Vacuum valves

2. IDC cables

 

Box 3 (Detectors)

1. WI-20

3186-9

2. WI-150

3458-4

3. WI-150

3458-1

 

 

Box 4 (Detector)

1. WI-20

3485-12

*List

 

**We also have the tube for the long rails

 

  68   Tue Sep 5 16:09:45 2023 EmmanuelDrop in gain for DEED 14

Dear all,

There was an issue with one of the strips of the deltaE detector (DEED 14), for run216644. The gain dropped to almost a factor of 3. Find attached.

Somehow, it was fixed, but still lags, when compared to other strips of deltaE. This was tested for a more recent run, run216651. Find attached.

I also checked a bit older run (run216637) and they look similar.. Find attached. Maybe we should figure out if this will be a problem for the DEED14 strips.

 

NOTE: The plots have the run number at the top-center.

 

Emmanuel Odusina

 

 

Attachment 1: alndeed14.png
alndeed14.png
Attachment 2: alndeed14b.png
alndeed14b.png
Attachment 3: alndeed14old.png
alndeed14old.png
  69   Wed Sep 27 09:54:06 2023 Emmanuel10B sample in

We switched from Aluminium target to Boron Target (number 1) on Tuesday (26th of Sept.). The Aluminium target was placed in the material room by the RP. We will change to LiF (number 3) on Thursday (28th of Sept.)

Attachment 1: 20230926_113136.jpg
20230926_113136.jpg
Attachment 2: 20230926_113811.jpg
20230926_113811.jpg
Attachment 3: 20230926_115036.jpg
20230926_115036.jpg
Attachment 4: 20230926_115053.jpg
20230926_115053.jpg
Attachment 5: 20230926_111737.jpg
20230926_111737.jpg
  70   Thu Sep 28 15:32:16 2023 EmmanuelLiF sample in

We switched from 10B target (number 1) to LiF target (number 3). We planned to take this measurement for one day.

Attachment 1: 20230928_154334.jpg
20230928_154334.jpg
Attachment 2: 20230928_155923.jpg
20230928_155923.jpg
Attachment 3: 20230926_115053.jpg
20230926_115053.jpg
Attachment 4: 20230928_155747.jpg
20230928_155747.jpg
  71   Mon Oct 2 08:53:06 2023 EmmanuelEmpty Frame

An empty frame (on the top) was placed on Friday night.

Attachment 1: Empty_Frame.jpeg
Empty_Frame.jpeg
  72   Thu Dec 7 09:48:23 2023 EmmanuelMWDdetector and User Input

MWDdetector and UserInput

Attachment 1: UserInput_Silicons.h
                                                 DETECTOR SPECIFIC PARAMETERS (Lines may be commented with '#' sign!)
===================================================================================================================================================================================================================================
DETECTOR   DETECTOR   DETECTOR STEP   TIMING    MIXED     EXPAND   SMOOTHING     TIME          G-FLASH    G-FLASH     G-FLASH    G-FLASH   BASELINE   BASELINE   AMPLITUDE   AMPLITUDE   AREA/AMP.   AREA/AMP.   SIGNAL WIDTH   SIGNAL WIDTH    NUMBER OF     PULSE SHAPE
  NAME      NUMBER     CLASS   SIZE   FILTER   POLARITY   PULSES    FILTER       LIMIT         OPTION    THRESHOLD   MIN_WIDTH   WINDOW     OPTION     FILTER     OPTION     THRESHOLD   LOW THR.    HIGH THR.     LOW THR.       HIGH THR.    PULSE SHAPES     ADDRESS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PKUP          0         PSA   350/6      0        0          3       100     100000              0         100.        1.         0          -1       300        0              100         0.0        2000              1            4000            0

#################################
#    MWD PARAMETERS V6.2    #
#    Date: 10-Aug-2023      #
#################################
#################################

#                             Threshold   Polarity  PoleZeroCorr    DeconWindow      AvergWin    MAWindows  gain/offset   Gamma_Threshold    Amp_Threshold    fixed Dead time(ns)  time_diff_baselne    tailtime      time_const

EDET         1         MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         2         MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         3         MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         4         MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         5         MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         6         MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         7         MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         8         MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         9         MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         10        MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         11        MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         12        MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         13        MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         14        MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         15        MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20
EDET         16        MWD      1600            -1         5E5           150              40      1 60         16.0/0.0        100                6500             550                    1500            2      20

EDET         17        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         18        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         19        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         20        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         21        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         22        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         23        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         24        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         25        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         26        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         27        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         28        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         29        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         30        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         31        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20
EDET         32        MWD      800             1         5E5           150             40      1 60         16.0/0.0        100                6800             550                    1500            2      20

DEED         1         MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200            550                    1500            2      20
DEED         2         MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         3         MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         4         MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         5         MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         6         MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         7         MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         8         MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         9         MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         10        MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         11        MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         12        MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         13        MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         14        MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         15        MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20
DEED         16        MWD       30             -1         5E5            150             40      1 51         1.0/0.0         100                200             550                    1500            2      20

Attachment 2: MWDdetector.cc
/*
 * $Id$
 *
 * Author:	Sarah-Jane Lonsdale
 * Date:	02-Dec-2015
 * Version:     5.1 (8-Aug-2017)
 * Update:	Claudia Lederer-Woods
 * Date:	31-May-2018
 * Version:     6.0 (31-May-2018)
 * Update:	Nikolay Sosnin
 * Date:	24-Nov-2022
 * Version:     6.1 (24-Nov-2022)
 */

#include <math.h>
#include <string.h>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <vector>
#include <TFile.h>
#include <TH1F.h>
#include <TString.h>

using namespace std;

#include "MWDdetector.h"

void FormatHist(TH1D* h, TString name, TString title, TString xtitle, TString ytitle, int color, int width, int marker_color, int marker_style);

bool MWDDetector::parseConfigLine(char* line, const char* settings_file)
{
	cout << "Config: " << line << endl;
	if (!Detector::parseConfigLine(line)) return false;

	// threshold
	char* pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: Invalid Threshold" << endl;
		return false;
	}
	threshold = atof(pch);

	// polarity
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: Invalid negative polarity" << endl;
		return false;
	}
	polarity = atoi(pch);
	if (polarity>=0)
		polarity = 1;
	else
		polarity = -1;

	// pole zero correction
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: Invalid pole zero correction" << endl;
		return false;
	}
	pz = atof(pch);

	// deconvolution window
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: Invalid deconvolution window" << endl;
		return false;
	}
	m = atoi(pch);

	// average window
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: Invalid average window" << endl;
		return false;
	}
	l = atoi(pch);

	// presample
	pch = strtok(NULL," "); //NS: 27.07.2023
	if (!pch) {
		cerr << "UserInput: Invalid presample" << endl;
		return false;
	}
	presample = atoi(pch);
	
	//averaging windows 2
	pch = strtok(NULL," "); //NS: 27.07.2023
	if (!pch) {
		cerr << "UserInput: Invalid presample" << endl;
		return false;
	}
	window = atoi(pch);

	// presample/averaging window 2
	/*if (!parse2real(&presample, &window)) {
		cerr << "UserInput: Invalid averager 1/2" << endl;
		return false;
	}*/

	// gain/offset
	if (!parse2real(&gain, &offset)) {
		cerr << "UserInput: Invalid gain/offset" << endl;
		return false;
	}

	// gamma flash search start
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: Invalid gamma_threshold" << endl;
		return false;
	}
	g_threshold = atoi(pch);

	// minimum amp_threshold
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: Invalid amp_threshold" << endl;
		return false;
	}
	amp_threshold = atoi(pch);

	// gamma flash primary (additional) offset
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: Invalid fixed Dead time(ns)" << endl;
		return false;
	}
	gamma_time_primary = atoi(pch);//SL 08/07/17

	// time different for baseline determination
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: time_diff_baselne" << endl;
		return false;
	}
	time_diff_baseline = atoi(pch);//SL 08/07/17

	// time after g flash which has undershoot
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: tailtime" << endl;
		return false;
	}
	tailtime = atoi(pch);//SL 08/07/17


	// Time constant
	pch = strtok(NULL," ");
	if (!pch) {
		cerr << "UserInput: time_const" << endl;
		return false;
	}
	time_const = atoi(pch);  // 28/08/23


	return true;
} // parseConfigLine

int MWDDetector::analysis(
				ntof::lib::ReaderStructEVEH& eveh,	// EVEH event information
				ntof::lib::ReaderStructMODH& modh,	// MODH header information
				ntof::lib::ReaderStructACQC& acqc,	// ACQC pulse record
				PulseVector*   pulsevec,		// vector of pulses
				int movie_number,
				bool html)				// I: movie number
{
	Detector::analysis(eveh, modh, acqc, pulsevec, movie_number, html);

	double rate = modh.getSampleRate();
	int NofPeaks = 0;
	TString name = modh.getDetectorType();
	
	//double g_threshold = 2000; //move to .h file                           //CHANGED
	double tdiffsig = gamma_time_primary; 
	double tdiffbase = time_diff_baseline; // consider moving to h file
	int aver = presample;             //
	//double tailtime = 100000;  // time up to which there is an undershoot after gflash

	double* x          = new double[length_of_movie];
	double* xsmooth    = new double[length_of_movie]; //13.3.18
	double* xsmooth_ma = new double[length_of_movie]; //NS 22.05.2023
	double* y          = new double[length_of_movie];
	double* z          = new double[length_of_movie];
	double* zdiff      = new double[length_of_movie]; //13.3.18
	double* mwd_m      = new double[length_of_movie];
	double* ma_l       = new double[length_of_movie];	// moving average array
	double* mwd_deriv  = new double[length_of_movie];	// mwd derivative

	double timeScale = 1000.0 / rate; // in ns/Sample

	for(int i = 0; i < length_of_movie; i++){
	
		x[i] = polarity * (acqc[i] * gain + offset);
		y[i] = z[i] = zdiff[i] = xsmooth[i] = 0.0;         //13.3.18
	}
                                                //CHANGED
	int startofevent = aver / 2;
	
	//Averaging preamplifier output
	for(int i = startofevent; i < length_of_movie; i++){
		
		xsmooth[i] = 0.;
		
		for(int j = -1 * (aver - 1) / 2; j <= (aver - 1) / 2; j++){
			
			xsmooth[i] += x[i + j];                         
		}
		
		xsmooth[i] /= aver;
	}

	//Extra moving average test
	//const double window = 39.;
	int startofevent2 = window / 2; //NS 22.05.2023
	
	for(int i = startofevent2; i < length_of_movie; i++){
		
		xsmooth_ma[i] = 0.;
		
		for(int j = -1 * (window - 1) / 2; j <= (window - 1) / 2; j++){
			
			xsmooth_ma[i] += xsmooth[i + j];                         
		}
		
		xsmooth_ma[i] /= window;
	}

	// Locating maximum and minimum of derivative
	if(verbose){cout << "Begin amplitude extraction." << endl;}

	// Parameters for semi-gauss discriminator
	//const double time_const = 0; // SL 12/08/16 Emmanuel
	const double pole_zero = 5.e5;
	double a0, a1, b1;

	b1 = exp(-1. / int(time_const));
	a0 = (1. + b1) / 2.0;
	a1 = -1. * (1. + b1) / 2.0;

	// Single pole high pass with pz correction
	for(int i = 1; i < length_of_movie; i++){
		
		//y[i] = b1 * y[i - 1] + a0 * xsmooth[i] + a1 * xsmooth[i - 1] + xsmooth[i - 1] / pole_zero;
		y[i] = b1 * y[i - 1] + a0 * xsmooth_ma[i] + a1 * xsmooth_ma[i - 1] + xsmooth_ma[i - 1] / pz;
	}

	// Single pole low pass filter
	for(int i = 1; i < length_of_movie; i++){
	
		z[i] = b1 * z[i - 1] + a0 * y[i];
	}

	// devirative of filters
	for(int i = 1; i < length_of_movie; i++){
	
		zdiff[i] = -1. * z[i - 1] + z[i];
	}

	//bool beamType = false;
	
	//if(eveh.getBeamType() != 1){beamType = true;}

	double twait = 16000.; // introduce different time window for baseline depending on ded or par CLW 31/05/18

	/*if(eveh.getBeamType() == 2){twait = 13000.;} // dedicated
	if(eveh.getBeamType() == 3){twait = 19000.;} // parasitic
	else{twait = 16000.;}*/     

	////////////////////////////////////////
	//          MWD and filtering         //
	////////////////////////////////////////

	// moving window deconvolution
	for(int i = startofevent + m; i < length_of_movie; i++){ // SL 10/08/16   // 13/03/18 MWD on smoothed 
	
		//double d_m  = xsmooth[i] - xsmooth[i - m];
	  double d_m  = xsmooth_ma[i] - xsmooth_ma[i - m];
		double ma_m = 0.;

		for(int j = (i - m); j < (i - 1); j++) {
		
			//ma_m += xsmooth[j];
			ma_m += xsmooth_ma[j];
		}

		mwd_m[i] = d_m + ma_m / pz;
	}

	// moving average
	//for(int i = l + m + gamma_flash; i < length_of_movie; i++){ // SL 10/08/16
	for(int i = l + m; i < length_of_movie; i++){ // NS 31.07.2023
		
		ma_l[i] = 0.;

... 285 more lines ...
  74   Tue Apr 16 12:24:01 2024 EmmanuelMWD amplitude (dE and E)
Attachment 1: 26Al_PDF.pdf
26Al_PDF.pdf 26Al_PDF.pdf 26Al_PDF.pdf 26Al_PDF.pdf 26Al_PDF.pdf 26Al_PDF.pdf 26Al_PDF.pdf 26Al_PDF.pdf
  82   Tue Mar 18 13:28:30 2025 EmmanuelB10 and LiF data with Fast Fourier Transform

Attached is the B10 and LiF data with Fast Fourier Transform and varying time constants.

Attachment 1: B10.pdf
B10.pdf
Attachment 2: Li.pdf
Li.pdf
  73   Mon Mar 25 12:57:30 2024 ClwAdapters for ntof setup

10 new Adapters for lemo to bnc on my desk

Attachment 1: 20240325_125536.jpg
20240325_125536.jpg
Attachment 2: 20240325_125528.jpg
20240325_125528.jpg
  5   Tue Oct 13 21:04:49 2015 Claudia LedererPhotos of Test Setup 5-10 October 2015

some photos in high resolution of the test setup 5-10 October 2015

Attachment 1: DSC00042.JPG
DSC00042.JPG
Attachment 2: DSC00048.JPG
DSC00048.JPG
Attachment 3: DSC00056.JPG
DSC00056.JPG
Attachment 4: DSC00065.JPG
DSC00065.JPG
  24   Tue Aug 23 15:34:38 2016 ClaudiaLeakage currents 23.08.16

 E = 0.03uA
dE = 0.04uA
PHDI = 0.09uA

- Monitor PHDI - increasing slowly...

  29   Thu Oct 6 09:28:33 2022 ClaudiaItems to be replaced for next run

Missing/broken items identified

- long rails for fixing chamber on support

- vacuum valve (ours is broken)

- at least 2 lemo - BNC converters

- short M3 screws (photo)

Attachment 1: 20221005_122654.pdf
20221005_122654.pdf
  30   Thu Oct 6 09:34:30 2022 ClaudiaTest setup Photos and cabling

Setup 5.10.22

dE 20 um (ID 2837-33) and 494 um double sided (ID 1194-9)

46 channels (2 connectors missing)

LiF4 in beam 

dE: Big flat cables from preamp 22 and 23 into 1A and 1B

E: from preamp 24+25 go into 2A, 2B and 3A 3B

LEMO converter box: Cable 1: dE

                                   Cable 3: E n+n

                                  unlabeled cable: E p+n

E detector voltage: -133 V, leakage current -0.53 micro-Amp

dE detector voltage -22 V, leakage current -0.03 micro-Amp

For the E detector one of the edge p+n strip bond-wires is suspected broken.

Attachment 1: 20221005_174742.jpg
20221005_174742.jpg
Attachment 2: 20221005_174759.jpg
20221005_174759.jpg
Attachment 3: 20221005_184752.jpg
20221005_184752.jpg
Attachment 4: 20221005_184801.jpg
20221005_184801.jpg
Attachment 5: 20221005_174742.jpg
20221005_174742.jpg
  42   Thu Jul 27 11:25:35 2023 ClaudiaAl-26 planning meeting summary
  • Start 9th August, access to EAR-2 11 am earliest but can start in rack area before
  • Setup to be used: 1 dE (16 strips, 20 um thickness) + 1 E (16x16 strips, 150 um thickness. We have a spare for each thickness
  • Sample and detectors to be mounted on the same flange

Things to check:

  • alignment with beam centre (lasers and/or gafchromics foils)
  • is the setup stable to knockes, can all detector / sample positions be well reproduced when making changes

Once setup us completed:

  • checks with pulser
  • mounf LiF sample number 3 and run with neutron beam
  • check that all strips have signals
  • confirm shape of gamma flash and that short times can be anaysed in both detectors (~1.8 us after flash)

If everything working:

  • measure LiF-3 and the switch to Al-26
  • towards end of the run we can also measure B-3 and the empty brass frame (Frame without mylar)
  • proton statistics: 1E17 LiF-3, 1F17 B-3, ~3E17 Empty, 5.5 E18 Al-26

Travel times

Nick: 8-16, Annie 8-12, Tom, 7 -?, Claudia, 8-10, Emmanuel asap until end of run

Measurement runs until Octover 2nd. Disassembly by Nick and Emmanuel.

additional trips during the measurement as required (if something breaks/fails etc. )

 

Attached: photos of previous setup

 

TO Do: MCA availability at nTOF for quick noise checks (Nick)

            how many  channels in 14 bit, how many 12 bit (Nick)

          depletion voltages   for detectors (Tom)

          Register the eqipment at CERN as Edinburgh property (Claudia)

 

 

Attachment 1: DSC00366.JPG
DSC00366.JPG
Attachment 2: DSC00346.JPG
DSC00346.JPG
  45   Thu Aug 10 09:10:02 2023 CLWDetector Setup Al26 Run 2023

dE Detector: W1-20 3186-9 20 um

E Detector: W1-150 3458-4 144 um

Voltages and Leakage Currents:

dE: 6 V, 0.02 muA

E: 50 V, 0.05 muA

Attachment 1: 20230809_181749.jpg
20230809_181749.jpg
Attachment 2: 20230809_181758.jpg
20230809_181758.jpg
Attachment 3: 20230809_172545.jpg
20230809_172545.jpg
Attachment 4: 20230809_172442.jpg
20230809_172442.jpg
ELOG V3.1.4-unknown