C++ Stand-alone library for Merging, Digitizing, and Triggering hits of photomultiplier tubes (PMTs) based on WCSim. A Python interface is optionally provided, requiring pre-installation of pybind11.
The library provides C++ classes that manage three tasks:
- Merging true hits (simulated photoelectrons by WCSim) of an events with those of any number of events
- Intrinsic dark noise can be added during this stage
- Digitizing true hits
- Timing and charge of a digitized hit is simulated by a simple model used in WCSim
- The library is capable of accomodating alternative models
- Parameters describing PMT charcteristics such as timing resolution can be varied
- Digitized hits by PMT afterpusing can be added
- Triggering digitized hits
- A simple algorithm that counts number of digitized hits falling in a sliding time winodw
- Selectable trigger window and thershold
Simple runtime procedures. First set up your ROOT and WCSIM:
source your_thisroot.sh
export WCSIMDIR=your_WCSIM_installation
Then set up the MDT environment.
source envMDT.sh
cd $MDTROOT/cpp; make clean; make all
cd $MDTROOT/app/utilities/WCRootData; make clean; make all
cd $MDTROOT/app/application; make appWCTESingleEvent
cd $MDTROOT
# edit variables properly in run_test_mdt4wcte.sh
bash run_test_mdt4wcte.sh