#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 |
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) |
Private Attributes | |
std::vector< int > | fG4TrackIDOffsets |
std::vector< std::pair< int, int > > | fG4TrackIDRanges |
std::vector< std::vector< size_t > > | fMCParticleListMap |
Definition at line 25 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.
|
inline |
Definition at line 57 of file MergeSimSources.h.
void sim::MergeSimSourcesUtility::MergeAuxDetHits | ( | std::vector< sim::AuxDetHit > & | , |
const std::vector< sim::AuxDetHit > & | , | ||
size_t | |||
) | const |
Definition at line 188 of file MergeSimSources.cxx.
void sim::MergeSimSourcesUtility::MergeAuxDetSimChannels | ( | std::vector< sim::AuxDetSimChannel > & | merged_vector, |
const std::vector< sim::AuxDetSimChannel > & | input_vector, | ||
size_t | source_index | ||
) |
Definition at line 94 of file MergeSimSources.cxx.
void sim::MergeSimSourcesUtility::MergeMCParticles | ( | std::vector< simb::MCParticle > & | merged_vector, |
const std::vector< simb::MCParticle > & | input_vector, | ||
size_t | source_index | ||
) |
Definition at line 35 of file MergeSimSources.cxx.
void sim::MergeSimSourcesUtility::MergeSimChannels | ( | std::vector< sim::SimChannel > & | merged_vector, |
const std::vector< sim::SimChannel > & | input_vector, | ||
size_t | source_index | ||
) |
Definition at line 64 of file MergeSimSources.cxx.
void sim::MergeSimSourcesUtility::MergeSimEnergyDeposits | ( | std::vector< sim::SimEnergyDeposit > & | , |
const std::vector< sim::SimEnergyDeposit > & | , | ||
size_t | |||
) | const |
Definition at line 172 of file MergeSimSources.cxx.
void sim::MergeSimSourcesUtility::MergeSimPhotons | ( | std::vector< sim::SimPhotons > & | merged_vector, |
const std::vector< sim::SimPhotons > & | input_vector | ||
) |
Definition at line 135 of file MergeSimSources.cxx.
void sim::MergeSimSourcesUtility::MergeSimPhotonsLite | ( | std::vector< sim::SimPhotonsLite > & | merged_vector, |
const std::vector< sim::SimPhotonsLite > & | input_vector | ||
) |
Definition at line 153 of file MergeSimSources.cxx.
|
staticprivate |
Definition at line 258 of file MergeSimSources.cxx.
|
staticprivate |
Definition at line 237 of file MergeSimSources.cxx.
void sim::MergeSimSourcesUtility::Reset | ( | void | ) |
Definition at line 24 of file MergeSimSources.cxx.
|
private |
Definition at line 204 of file MergeSimSources.cxx.
|
private |
Definition at line 61 of file MergeSimSources.h.
|
private |
Definition at line 62 of file MergeSimSources.h.
|
private |
Definition at line 64 of file MergeSimSources.h.