LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MergeSimSources.h"
Public Member Functions | |
MergeSimSourcesUtility (std::vector< int > const &) | |
void | Reset () |
void | MergeMCParticles (std::vector< simb::MCParticle > &, const std::vector< simb::MCParticle > &, size_t) |
void | MergeSimChannels (std::vector< sim::SimChannel > &, const std::vector< sim::SimChannel > &, size_t) |
void | MergeAuxDetSimChannels (std::vector< sim::AuxDetSimChannel > &, const std::vector< sim::AuxDetSimChannel > &, size_t) |
void | MergeSimPhotons (std::vector< sim::SimPhotons > &, const std::vector< sim::SimPhotons > &) |
void | MergeSimPhotonsLite (std::vector< sim::SimPhotonsLite > &, const std::vector< sim::SimPhotonsLite > &) |
void | MergeSimEnergyDeposits (std::vector< sim::SimEnergyDeposit > &, const std::vector< sim::SimEnergyDeposit > &, size_t) const |
void | MergeAuxDetHits (std::vector< sim::AuxDetHit > &, const std::vector< sim::AuxDetHit > &, size_t) const |
void | MergeParticleAncestryMaps (std::vector< sim::ParticleAncestryMap > &, const sim::ParticleAncestryMap &, size_t) const |
const std::vector< std::vector< size_t > > & | GetMCParticleListMap () |
Private Member Functions | |
void | UpdateG4TrackIDRange (std::pair< int, int >, size_t) |
Static Private Member Functions | |
static sim::SimEnergyDeposit | offsetSimEnergyDepositTrackID (sim::SimEnergyDeposit const &, int) |
static sim::AuxDetHit | offsetAuxDetHitTrackID (sim::AuxDetHit const &, int) |
static sim::ParticleAncestryMap | offsetParticleAncestryMapTrackID (sim::ParticleAncestryMap const &, int) |
Private Attributes | |
std::vector< int > | fG4TrackIDOffsets |
std::vector< std::pair< int, int > > | fG4TrackIDRanges |
std::vector< std::vector< size_t > > | fMCParticleListMap |
Definition at line 29 of file MergeSimSources.h.
sim::MergeSimSourcesUtility::MergeSimSourcesUtility | ( | std::vector< int > const & | ) |
Title: MergeSimSources Utility Class Author: Wes Ketchum (wketc) hum@ lanl. gov
Description: Class that merges different simulation sources together to created a combined sim list. Typically just merges vectors/maps/etc together. But, if anything as a G4 trackID, applies a user-defined offset to those IDs.
Definition at line 18 of file MergeSimSources.cxx.
References Reset().
|
inline |
Definition at line 65 of file MergeSimSources.h.
References fMCParticleListMap.
void sim::MergeSimSourcesUtility::MergeAuxDetHits | ( | std::vector< sim::AuxDetHit > & | , |
const std::vector< sim::AuxDetHit > & | , | ||
size_t | |||
) | const |
Definition at line 190 of file MergeSimSources.cxx.
References util::begin(), util::end(), fG4TrackIDOffsets, and offsetAuxDetHitTrackID().
void sim::MergeSimSourcesUtility::MergeAuxDetSimChannels | ( | std::vector< sim::AuxDetSimChannel > & | merged_vector, |
const std::vector< sim::AuxDetSimChannel > & | input_vector, | ||
size_t | source_index | ||
) |
Definition at line 95 of file MergeSimSources.cxx.
References util::abs(), fG4TrackIDOffsets, and UpdateG4TrackIDRange().
void sim::MergeSimSourcesUtility::MergeMCParticles | ( | std::vector< simb::MCParticle > & | merged_vector, |
const std::vector< simb::MCParticle > & | input_vector, | ||
size_t | source_index | ||
) |
Definition at line 34 of file MergeSimSources.cxx.
References util::abs(), fG4TrackIDOffsets, fMCParticleListMap, and UpdateG4TrackIDRange().
void sim::MergeSimSourcesUtility::MergeParticleAncestryMaps | ( | std::vector< sim::ParticleAncestryMap > & | , |
const sim::ParticleAncestryMap & | , | ||
size_t | |||
) | const |
Definition at line 204 of file MergeSimSources.cxx.
References fG4TrackIDOffsets, and offsetParticleAncestryMapTrackID().
void sim::MergeSimSourcesUtility::MergeSimChannels | ( | std::vector< sim::SimChannel > & | merged_vector, |
const std::vector< sim::SimChannel > & | input_vector, | ||
size_t | source_index | ||
) |
Definition at line 63 of file MergeSimSources.cxx.
References util::abs(), fG4TrackIDOffsets, and UpdateG4TrackIDRange().
void sim::MergeSimSourcesUtility::MergeSimEnergyDeposits | ( | std::vector< sim::SimEnergyDeposit > & | , |
const std::vector< sim::SimEnergyDeposit > & | , | ||
size_t | |||
) | const |
Definition at line 175 of file MergeSimSources.cxx.
References util::begin(), edep, util::end(), fG4TrackIDOffsets, and offsetSimEnergyDepositTrackID().
void sim::MergeSimSourcesUtility::MergeSimPhotons | ( | std::vector< sim::SimPhotons > & | merged_vector, |
const std::vector< sim::SimPhotons > & | input_vector | ||
) |
Definition at line 136 of file MergeSimSources.cxx.
void sim::MergeSimSourcesUtility::MergeSimPhotonsLite | ( | std::vector< sim::SimPhotonsLite > & | merged_vector, |
const std::vector< sim::SimPhotonsLite > & | input_vector | ||
) |
Definition at line 155 of file MergeSimSources.cxx.
|
staticprivate |
Definition at line 271 of file MergeSimSources.cxx.
References sim::AuxDetHit::GetEnergyDeposited(), sim::AuxDetHit::GetEntryT(), sim::AuxDetHit::GetEntryX(), sim::AuxDetHit::GetEntryY(), sim::AuxDetHit::GetEntryZ(), sim::AuxDetHit::GetExitMomentumX(), sim::AuxDetHit::GetExitMomentumY(), sim::AuxDetHit::GetExitMomentumZ(), sim::AuxDetHit::GetExitT(), sim::AuxDetHit::GetExitX(), sim::AuxDetHit::GetExitY(), sim::AuxDetHit::GetExitZ(), sim::AuxDetHit::GetID(), and sim::AuxDetHit::GetTrackID().
Referenced by MergeAuxDetHits().
|
staticprivate |
Definition at line 295 of file MergeSimSources.cxx.
References sim::ParticleAncestryMap::GetMap().
Referenced by MergeParticleAncestryMaps().
|
staticprivate |
Definition at line 247 of file MergeSimSources.cxx.
References sim::SimEnergyDeposit::End(), sim::SimEnergyDeposit::Energy(), sim::SimEnergyDeposit::NumElectrons(), sim::SimEnergyDeposit::NumPhotons(), sim::SimEnergyDeposit::OrigTrackID(), sim::SimEnergyDeposit::PdgCode(), sim::SimEnergyDeposit::ScintYieldRatio(), sim::SimEnergyDeposit::Start(), sim::SimEnergyDeposit::T0(), sim::SimEnergyDeposit::T1(), and sim::SimEnergyDeposit::TrackID().
Referenced by MergeSimEnergyDeposits().
void sim::MergeSimSourcesUtility::Reset | ( | ) |
Definition at line 24 of file MergeSimSources.cxx.
References fG4TrackIDOffsets, fG4TrackIDRanges, and fMCParticleListMap.
Referenced by MergeSimSourcesUtility().
|
private |
Definition at line 215 of file MergeSimSources.cxx.
References fG4TrackIDOffsets, and fG4TrackIDRanges.
Referenced by MergeAuxDetSimChannels(), MergeMCParticles(), and MergeSimChannels().
|
private |
Definition at line 68 of file MergeSimSources.h.
Referenced by MergeAuxDetHits(), MergeAuxDetSimChannels(), MergeMCParticles(), MergeParticleAncestryMaps(), MergeSimChannels(), MergeSimEnergyDeposits(), Reset(), and UpdateG4TrackIDRange().
|
private |
Definition at line 69 of file MergeSimSources.h.
Referenced by Reset(), and UpdateG4TrackIDRange().
|
private |
Definition at line 71 of file MergeSimSources.h.
Referenced by GetMCParticleListMap(), MergeMCParticles(), and Reset().