TriDAS + JANA2 (+ERSAP)

From epsciwiki
Revision as of 13:01, 27 January 2023 by Davidl (talk | contribs) (→‎Meetings)
Jump to navigation Jump to search

This is information related to beam tests done in support of the TriDAS/JANA2/ERSAP SRO tests in Spring 2023 in Hall-D.

Overview

The goal of this test is to read out a small matrix of scintillator bars using VTP modules in Streaming ReadOut (SRO) mode. The bars have dimensions 2x2x20 cm and are side by side and closely packed (no space between them). The matrix will be positioned so the long dimension will be aligned with the beam direction. Cosmic rays will therefore be largely perpendicular to that.

The initial phase will focus on a 3x3 matrix while a 5x5 matrix will be used for the beam test. The beam test will take place in March, but development using cosmic rays will occur in the months leading up to that.


Meetings

Project Phases

Phase 1:

  • Cosmic rays (3x3)
  • VTP readout with TriDAS
  • JANA2 Cosmic Ray trigger

Phase 2:

  • Cosmic rays (5x5)
  • VTP readout with TriDAS
  • JANA2 Cosmic Ray trigger

Phase 3:

  • Beam Test (5x5)
  • VTP readout with TriDAS
  • JANA2 Beam trigger and Cosmic Ray trigger

Phase 4:

  • Beam Test (5x5)
  • VTP readout with ERSAP (+ TriDAS?)
  • ERSAP iterface to JANA2
  • JANA2 Beam trigger and Cosmic Ray trigger

Software

Work is being done using the streamdaq account on clondaq5. Software versions specific to this test can be set up in the environment like this:

  source /usr/clas12/streaming/work/2022.12.15.JANA2_TriDAS/setenv.sh

Some software built specifically for this test can be found in the /usr/clas12/streaming/work/2022.12.15.JANA2_TriDAS directory. Not all of it is placed there though.

Some notes describing how these pieces fit together from 2020 when this was first set up can be seen here:

https://github.com/andrea-celentano/jtridas/blob/master/README.JANA

Compiler

  • /apps/gcc/9.3.0
  • C++17 standard

TriDAS

This is the TriDAS source and is checked out on the latest master.

  • /usr/clas12/streaming/work/2022.12.15.JANA2_TriDAS/tridas-core

jtridas

This is the TriDAS plugin that interfaces to JANA2. TriDAS will load this plugin and, in turn, this will instantiate a JANA2 JApplication that will then load all of the JANA2 plugins. It is responsible for interfacing TriDAS and JANA2.

  • /usr/clas12/streaming/work/2022.12.15.JANA2_TriDAS/jtridas

streamingReco

This has a number of things specific to this project, but mainly houses the JANA2 plugins. Configuration files for using the cmake build system have been added for this test. The older scons scripts are still there, but moving forward, cmake will be the preferred build system. This is primarily due to cmake being much more prevalent now and interfacing better with modern IDEs.

  • /usr/clas12/streaming/work/2022.12.15.JANA2_TriDAS/streamingReco


ROOT

ROOT was built specifically for this test using the above compiler and C++ standard

  • /usr/clas12/streaming/work/2022.12.15.JANA2_TriDAS/root-6.26.04

CCDB

CCDB is header only for C++. The latest master from github is checked out here. This probably corresponds to v1.06.09 since that is the latest tagged version in the repository.

  • /usr/clas12/streaming/work/2022.12.15.JANA2_TriDAS/CCDB

JANA2

The latest tagged version of JANA2 v2.0.8 was built for this test. Note that the install directory is given below, but the full source can be found one directory up.

  • /usr/clas12/streaming/JANA2-v2.0.8/install

VSCode

VSCode is an IDE for software development. A version was installed here in case it is useful. The setenv.sh script above will setup an alias to it so you only need to type "code" to start it up. Using VSCode is not required, but may help in some cases.

  • /usr/clas12/streaming/work/2022.12.15.JANA2_TriDAS/VSCode-linux-x64
  • Important directories
    • /usr/clas12/streaming/work/2022.12.15.JANA2_TriDAS

Useful links