To start with an easy example, let's simulate an ideal-line charge in the protoDUNE-SP TPC.
The configuration is available here. It is also possible to simulate multiple line charges. For instance, two line charges are simulated in the following example. The charge deposition is set to 2500 electrons per step, and the step length is set to 0.5mm. Therefore, it mimics two MIP tracks with charge deposition of ~5000 e/mm.
By runing the example configuration (wct-sim-check.jsonnet
), a Magnify file is obtained. In this example, given the line-charge (electron) depositions in the space and time, the Wire-Cell core simulation is carried out. While more complicated simulations will be introduced below such as userdefined electron depos and realistic charge depos from Geant4 detector simulation.
To be updated.
You can get an output file with name similar to gen_protoDune_pion_7p0GeV_mono.root
. Through eventdump
, one can see that the generator information is saved in simb::MCTruth
.
The Geant4 simulation above requires a photon library data file in a special CVMFS repository (/cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/PhotonPropagation/LibraryData/lib_Protodunev7.root). You have two options to access.
dune.osgstorage.gov
by following the instruction in Install CVMFSPhotonPropagation
available to LArSoft. For example,Once the simulation accomplished, you can dump the event information for the output file gen_protoDune_pion_7p0GeV_mono_g4.root
. Here, the G4:ionization:vector<sim::SimEnergyDeposit>
is the data product we want to pass to the Wire-Cell simulation.
Please check if you can see the raw digit information in the output file: gen_protoDune_pion_7p0GeV_mono_g4_wcsim.root
.
With the std::vector<raw::RawDigit>
obtained above, the noise filtering/signal processing and 3D imaging can be performanced in order.
Here is the 2D display of the deconvolved charge for the above 7-GeV pion interaction.