Proton Calorimetry/Equipment: Difference between revisions

From PBTWiki
Jump to navigation Jump to search
No edit summary
(11 intermediate revisions by 2 users not shown)
Line 22: Line 22:
The DDC1128EVM provides a platform for evaluating the DDC1128 charge digitizing A/D converters. A PC interface board and two DDC1128 devices are included along with software that makes analysis and testing of these devices manageable.
The DDC1128EVM provides a platform for evaluating the DDC1128 charge digitizing A/D converters. A PC interface board and two DDC1128 devices are included along with software that makes analysis and testing of these devices manageable.


== Remote Desktop Access ==
More details can be found on the [[/TI DDC1128EVM|TI DDC1128 Evaluation Module]] page.


Long BNC signal cables have been shown to have an impact on the signal recorded. In order to avoid this problem a network allowing remote access to the DAQ laptop (used to control the High Voltage (HV) and the digitiser) and the oscilloscope has been set up using two Linksys AC1900 dual band routers. The routers are labelled "Experimental Room" (Linksys 14941) and "Control Room" (Linksys 14483).
== [[/ZyboZ7_DDC232|Zybo Z7 and DDC232]] ==
The DDC232 is a 32-channel ADC. Housed on a custom circuit board, it used to measure the charges of 16 photodiodes and is interfaced with a Zybo Z7-10.


The DAQ laptop (hep-pool-12) and the LeCroy oscilloscope can be controlled via Windows Remote Desktop. Make sure the DAQ laptop and the oscilloscope have remote control access enabled (Settings: Remote control). The controlling computer needs Windows Remote Desktop installed. There can be more than one controlling computer in order to have the HV and scope displayed on different screens for easy monitoring and access. In order to remotely control the DAQ laptop, follow these steps:
More details can be found on the [[/ZyboZ7_DDC232|Zybo Z7 and DDC232]] page.


*Turn on and log into (important particularly for the oscilloscope which won't allow a remote connection before a first login) the DAQ laptop, the oscilloscope and the controlling computers.
== [[/Remote_Desktop_Access|Remote Desktop Access]] ==
*Connect all relevant cables, using the normal ethernet ports on the routers (not the WAN port):
More details can be found on the [[/Remote_Desktop_Access|Remote Desktop Access]] page.
**Oscilloscope (top ethernet port) -> Experimental Room router (via 5 m ethernet cable)
**DAQ laptop -> Experimental Room router (via 5 m ethernet cable)
**Experimental Room router -> Control Room router (via long flat ethernet cable)
**Controlling computer 1 ->Control Room router (via 5 m ethernet cable)
**Controlling computer 2 ->Control Room router (via 5 m ethernet cable)
* Check that the DAQ laptop is connected to the router:
**Control Panel-> View Network Status and Tasks
* Open Microsoft Remote Desktop on your computer and start a session (either new or existing). Fill in the following details:
** '''Connection name''': something relevant to the DAQ laptop or the oscilloscope, but can be anything you choose
** '''PC name''':The IP address of the DAQ laptop and the oscilloscope. These have both been set to have static IP addresses:
*** DAQ laptop IP address: 192.168.1.201
*** Oscilloscope IP address: 192.168.1.202
*** DAQ desk PC IP address: 192.168.1.210
*** DAQ mac laptop PC IP address: 192.168.0.2 (using office network 192.168.4.48). Check with ipconfig -all


----
== [[/HV|Connecting HV to DAQ Laptop]] ==
More details can be found on the [[/HV|Connecting HV to DAQ Laptop]] page.


Note that if it is necessary to check the IP addresses (for example, if adding anything else onto the network), then:
== [[/LeCroy|LeCroy Oscilloscope]] ==
*On the DAQ laptop (< Windows 10):
Details of the analysis of single-module calorimeter data taken by the LeCroy scope can be found on the [[/LeCroy|LeCroy Oscilloscope]] page.  
** Navigate to: Control Panel -> Network and Internet -> Network and Sharing Center
** Right click on "Local Area Connection" of the router
** Select "Properties"
** Select "Details": IPv4 address is here
*On the DAQ PC (Windows 10):
** Right click on windows symbol in lower left corner
** Select "Network connections"
** Select "View you network properties"
** IPv4 address is here
* Or find the IP address by accessing the router:
** Go to 192.168.1.1 in a browser
** The password to access the router is: admin
** Navigate to "devices", which displays everything connected to the network with its IP address


----
This page needs to be updated with work completed in the 2018-2019 academic year.
 
** '''Gateway''': select "No gateway configured"
** '''User name''':
*** DAQ laptop: hep
*** Oscilloscope: LeCroyUser
** '''Password''': the DAQ laptop and oscilloscope passwords
** '''Resolution''': select "Native"
** '''Colors''': select "High Color (16 bit)"
** '''Full screen mode''': select "OS X native"
* Start the connection by either selecting the relevant session and clicking "start" or double clicking the relevant session
 
* Common troubleshoot: If your computer doesn't connect, try a different port for the ethernet cable or turn WIFI off and back on again
 
----
In order to access a shared folder on the DAQ laptop (currently shared folder is PBTData):
* On a mac, go to: Finder
* Go (across the top menu)
* Connect to Server: Select: smb://HEP-POOL-12/ (name of DAQ laptop)
* Connect
 
In order to access a shared folder on the DAQ PC (currently shared folder is digiCamControl):
* On a mac, go to: Finder
* Go (across the top menu)
* Connect to Server: Select: smb://BN16180400 (name of DAQ PC)
* Connect
 
If you need to set up a new shared folder on a Windows pc follow the instructions on this website:
https://www.howtogeek.com/191116/how-to-share-files-between-windows-mac-and-linux-pcs-on-a-network/
 
Quick guide:
* Enable file sharing in a private network in Settings: Network and Internet: Sharing options
* Make the folder sharable in "properties" of the folder you want to share
* Try disable firewall if connection fails in Settings: Network and Internet: Windows Firewall
* Connect to windows pc/laptop as described above
 
== Connecting HV to DAQ Laptop ==
*The DAQ Laptop (hep-pool-12) or the DAQ Windows 10 Desktop PC are required to run the HV software GECO, with the necessary drivers installed.
*Turn the laptop/Desktop DAQ PC on.
*Connect the HV using either the grey or black USB cable (both have been tested and work) to the middle USB port on the left of the DAQ laptop or any port on the Desktop DAQ PC.
*Turn on the HV unit.
*On the DAQ laptop or Desktop DAQ PC, go to:
**Control Panel -> Hardware and Sound -> View devices and printers to check the COM Port address of the HV unit (displayed as an unidentified device).
**open the device properties (double click)->Hardware->Properties->Port Settings to see (Bits per second, Data bits, ...)
*On the DAQ laptop open the "GECO" software.
**Update the COM Port address if need be and connect.
* On the DAQ PC open the “GECO” software.
**assign a supply name, if not there;
**Power Supply Type: NIM/DESKTOP HV;
**Connection Type: VCP USB;
**Port: COM3; Baud: 9600; Data: 8; Stop: 1; Parity: None; LBus Adds: 0
*On the HV unit itself, from the main menu go to "Board" and change the "Control" to "Remote". Then turn the switch of the HV channel being used to "on".
You should now be able to control and monitor the HV remotely.
*To turn ON the HV:
** Use Ch0 (pre-set parameters)
** Make sure the switch on the HV module is ON for that specific channel
** Select Interlock Close (Right-hand side of Caen software).
** Turn ON Pw
-----------------
On the DAQ PC a connection can be estabilished via ethernet using the terminal emulator TeraTerm or GECO
* to check/assign the IP
** pen TeraTerm with the HV connected via USB
** select Serial and check the Port
** on the emulator type CAEN
** will open a screen with the terminal board menu
** type E to check or set the IP
** save (type S) and quit (type Q)
* To connect via ethernet using TeraTerm
** select TCP7IP
** service Telnet
** TCP port 1470
** Protocol IPv4
* To connect via ethernet using GECO
** power supply type NIM/DESKTOP
** connection type TCP/IP
** IP address 192.168.0.3
** LBus Addr 0
* ssh is not supported. You can use your mac OS, but using Telnet (telnet IP)
 
== LeCroy Scope Trace Conversion: Binary to ASCII ==
 
To convert .trc binary data to .txt data that is formatted similarly to the output files from a CAEN DT5751 digitiser:
 
# Copy contents of <code>/unix/pbt/aknoetze/ConversionScripts</code> to a new directory.
# Open <code>trc2txt.py</code> in a text editor.
## Change path to directory containing .trc data files by editing variable <code>dirpath</code>
## Change number of decimal points for each column by editing: <code>np.savetxt(..., fmt=‘...’,...)</code>
# Run <code>trc2txt.py</code>
 
Converted .txt files will be in the copied directory <code>NEWASCII</code>. These new files will possess the same file names as the original .txt files.
 
To concatenate the new data files together into one single file, while in the directory <code>NEWASCII</code>,type:
 
<pre>
cat *.txt > OutputFileName.txt
</pre>
 
 
== Working with LeCroy Scope Trace Files in ROOT using the LeCroyData Class ==
 
The LeCroyData class is defined in <code>SimpleLeCroyRoutines.C</code>, which can be found at <code>/unix/pbt/users/dwalker/LeCroy</code>.
The class is intended for use in interactive ROOT sessions, but can be used in compiled ROOT applets. Its public methods and their use are summarised below:
 
{| class="wikitable"
! style="width: 25%" | Method Signature
! style="width: 40%" | Notes
! Example
|-
| <code>LeCroyData::LeCroyData(std::string fileName);</code>
| Constructor for the LeCroyData class. The string fileName must be a fully qualified path from the current working directory to the LeCroy binary format file to be loaded.
| <code>
//Instantiating a new LeCroyData object
 
LeCroyData* lcd = new LeCroyData("../data/aug16/lecroy/C1Trace00000.trc");
</code>
|-
| <code>int LeCroyData::getAcqCount();</code>
| Returns the number of acquisitions recorded in the file.
| rowspan="2" | <code>
//Printing every trigger time in a LeCroy binary file
 
LeCroyData lcd("C1Trace00037.trc");
 
int n = lcd.getAcqCount();
 
for(int i = 0; i<n; i++){
 
std::cout.flush()<<lcd.getTriggerArray()[i]<<std::endl;
 
}
 
</code>
|-
| <code>double* LeCroyData::getTriggerArray();</code>
| Returns a C-style array containing the time in ns at which each acquisition in the file was triggered, relative to the first trigger.
|-
| <code>double* LeCroyData::getOffsetArray();</code>
| Returns a C-style array containing the time in ns between the start of each acquisition and the time of the trigger for that acquisition.
|
|-
| <code>int LeCroyData::getPointsPerAcq();</code>
| Returns the number of data points (voltage / time pairs) recorded in each acquisition in the file.
| rowspan="3" | <code>
//Plotting a single acquisition using ROOT's TGraph class
 
LeCroyData lcd("C1Trace00000.trc");
 
int acquisitionNumber = 0;
 
double* x = lcd.getAcqTime(acquisitionNumber);
 
double* y = lcd.getAcqWave(acquisitionNumber);
 
int n = lcd.getPointsPerAcq();
 
TGraph* gr = new TGraph(n, x, y);
 
gr->Draw();
</code>
|-
| <code>double* LeCroyData::getAcqWave(int segment);</code>
| Returns a C-style array of doubles. The array contains the voltages recorded by the scope in an acquisition with index "segment", which runs from zero to the number of acquisitions in the file.
|
|-
| <code>double* LeCroyData::getAcqTime(int segment);</code>
| Returns a C-style array of doubles. The array contains the time in ns of each data point in the acquisition indexed by "segment", relative to the trigger for that acquisition.
|
|-
| <code>string LeCroyData::getTimestamp();</code>
| Returns a string describing the timestamp for the file as a date and a clock time. This time corresponds to the first trigger in the file and takes the format "d/m/yyyy @ hh:mm:ss.ssss".
|
|-
| <code>double* LeCroyData::getSpectrum();</code>
| Returns a C-style array of doubles, where each entry is the ADC Counts calculated for an event.
|rowspan="2"|
<code>
//Create and display a histogram of the ADC Counts of pulses in a file
 
LeCroyData* lcd = new LeCroyData("C1Trace00000.trc");
 
TH1D* hist = new TH1D("hist", "LeCroyData Spectrum;ADC Counts;Number of Events", 350, 0, -1);
 
int n = lcd->getSpectrumSize();
 
double* s = lcd->getSpectrum();
 
for(int i = 0; i<n; i++){ hist->Fill(s[i]); }
 
hist->Draw();
</code>
|-
| <code>double* LeCroyData::getSpectrumSize();</code>
| Returns the number of entries in <code>LeCroyData::getSpectrum()</code> (equal to the number of entries in <code>LeCroyData::getSpectrumTime()</code>) as an integer.
|
|-
| <code>double* LeCroyData::getSpectrumTime();</code>
| Returns a C-style array of doubles, where each entry is the time in ns at which an event recorded in the spectrum occurred, with respect to the first trigger time in the file.
|
|}
 
 
Additional methods are being added to handle the generation of spectra and improve access to timing data.


== Manuals ==
== Manuals ==

Revision as of 14:51, 8 September 2020

This page contains information on the various pieces of experimental equipment that form the Proton Calorimetry detector setup.

ISDI CMOS Sensor

The ISDI 1510-100 15x10cm CMOS pixel sensor allows images of the scintillator detector stack light output to be recorded.

More details can be found on the ISDI CMOS Sensor page.

Caen Detector Emulator

The Caen DT5800D Detector Emulator provides the capability for emulating the output of an arbitrary detector system.

More details can be found on the Caen Detector Emulator page.

Nikon D70 DSLR

A Nikon D70 DSLR was borrowed from Adam Gibson in Medical Physics to allow remote acquisition of scintillator images.

More details can be found on the Nikon D70 DSLR page.

TI DDC1128 Evaluation Module

The DDC1128EVM provides a platform for evaluating the DDC1128 charge digitizing A/D converters. A PC interface board and two DDC1128 devices are included along with software that makes analysis and testing of these devices manageable.

More details can be found on the TI DDC1128 Evaluation Module page.

Zybo Z7 and DDC232

The DDC232 is a 32-channel ADC. Housed on a custom circuit board, it used to measure the charges of 16 photodiodes and is interfaced with a Zybo Z7-10.

More details can be found on the Zybo Z7 and DDC232 page.

Remote Desktop Access

More details can be found on the Remote Desktop Access page.

Connecting HV to DAQ Laptop

More details can be found on the Connecting HV to DAQ Laptop page.

LeCroy Oscilloscope

Details of the analysis of single-module calorimeter data taken by the LeCroy scope can be found on the LeCroy Oscilloscope page.

This page needs to be updated with work completed in the 2018-2019 academic year.

Manuals

Manuals for relevant detector hardware.

WaveCatcher

WaveCatcherFamily_V1.2.pdf
Full description of the WaveCatcher Family hardware with paths to Control & Readout software and libraries. Covers the 2-channel and 8-channel WaveCatcher modules, the 16-Channel WaveCatcher board and module, and all the options of the 64-Channel WaveCatcher Crate (16, 32, 48 or 64 channels).
WaveCatcher64Ch_Library_1.1.16.pdf
Users manual for WaveCatcher64Ch Control and Readout Library
WaveCatcherSoftware_V1.1.pdf
User manual for the WaveCatcher Family Control & Readout software (Windows Only, includes scope-like GUI).

Caen

DT5751 Product Page
Caen product page for DT5751 2-4 Channel 10 bit 2/1 GS/s Digitizer.
DT5751 User Manual
User manual for DT5751 2-4 Channel 10 bit 2/1 GS/s Digitizer.
DT5740 Product Page
Caen product page for DT5740 16/32-Channel 12 bit 62.5MS/s Digitizer supporting DPP-QDC firmware.
DT5740 User Manual
User manual for the DT5740 Desktop 16/32-channel Desktop Digitizer, that also functions in QDC charge integration mode with the DPP-QDC firmware.
UM4874_DPP-QDC_UserManual
User manual for the Digital Pulse Processing for Charge to Digital Converter DPP-QDC implemented exclusively for the "D" model of the 740 Digitizer series (740D).