This code is part of the Liquid Argon Software (LArSoft) project. It contains simulation and reconstruction algorithms for LAr TPC detectors. If you have a problem, please log a redmine issue: https://cdcvs.fnal.gov/redmine/projects/larsoft/issues/new
0
stars
18
forks
source link
LS changed IDE interface to add an additional "track ID" and it would be nice if sim channel makers provided. #34
retrieve the vector of SimEnergyDeposit from art::Event - same as used by SimDepoSetSource.
use the IDepo::id() to index this vector.
transfer both track IDs from SimEnergyDeposit to SimChannel.
Both of these changes should be made configurable in order to allow old behavior. Eg, SimDepoSetSource and DepoSetSimChannelSink gain a parameter like id_is_depo which would be "true" in the new case and "false" in the old.
The current context for making
SimChannel
is this segment of the processing chain:Probably obvious but ()'s marks data objects, []'s are packages, the rest are code objects.
Two changes are needed:
1)
SimDepoSetSource
https://github.com/LArSoft/larwirecell/blob/develop/larwirecell/Components/SimDepoSetSource.cxx#L208
ignore BOTH types of track ID.
set the loop index as the
IDepo::id()
.2)
DepoSetSimChannelSink
:https://github.com/LArSoft/larwirecell/blob/develop/larwirecell/Components/DepoSetSimChannelSink.cxx#L189
retrieve the vector of
SimEnergyDeposit
fromart::Event
- same as used bySimDepoSetSource
.use the
IDepo::id()
to index this vector.transfer both track IDs from
SimEnergyDeposit
toSimChannel
.Both of these changes should be made configurable in order to allow old behavior. Eg,
SimDepoSetSource
andDepoSetSimChannelSink
gain a parameter likeid_is_depo
which would be "true" in the new case and "false" in the old.