DRS4 Forum
  DRS4 Discussion Forum  Not logged in ELOG logo
Message ID: 916     Entry time: Thu Mar 27 15:53:10 2025
Author: Justin Tabbett 
Subject: Noisy counts with adapted drs_exam.cpp 

Greetings, 

I have adapted the drs_exam.cpp to allow for a user input number of channels and trigger levels.

The program mostly works well, however there are counts which form a noise peak, imposed on the regular channel response.

To illustrate, I acquired 10,000 counts (measuring peak to peak) with the drsosc, and with my adapted script, with two channels and OR trigger logic.

 

Is there something missing in my code that could explain the cause of this noise peak? I have attached the .cpp file.

Many thanks,

Justin

Attachment 1: Channel_1_2.png  37 kB  | Hide | Hide all | Show all
Channel_1_2.png
Attachment 2: drs_exam.cpp  5 kB  | Show | Hide all | Show all
ELOG V3.1.5-3fb85fa6