LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
MergeSimSources.h
Go to the documentation of this file.
1 #ifndef MERGESIMSOURCES_H
2 #define MERGESIMSOURCES_H
3 
16 
20 
21 namespace sim{
22 
24 
25  public:
26 
27  MergeSimSourcesUtility(std::vector<int> const&);
28 
29  void Reset();
30 
31  void MergeMCParticles( std::vector<simb::MCParticle>&,
32  const std::vector<simb::MCParticle>&,
33  size_t);
34 
35  void MergeSimChannels( std::vector<sim::SimChannel>&,
36  const std::vector<sim::SimChannel>&,
37  size_t);
38 
39  void MergeAuxDetSimChannels( std::vector<sim::AuxDetSimChannel>&,
40  const std::vector<sim::AuxDetSimChannel>&,
41  size_t);
42 
43  void MergeSimPhotons( std::vector<sim::SimPhotons>&,
44  const std::vector<sim::SimPhotons>&);
45 
46  void MergeSimPhotonsLite( std::vector<sim::SimPhotonsLite>&,
47  const std::vector<sim::SimPhotonsLite>&);
48 
49  const std::vector< std::vector<size_t> >& GetMCParticleListMap() { return fMCParticleListMap; }
50 
51  private:
52 
53  std::vector<int> fG4TrackIDOffsets;
54  std::vector< std::pair<int,int> > fG4TrackIDRanges;
55 
56  std::vector< std::vector<size_t> > fMCParticleListMap;
57 
58  void UpdateG4TrackIDRange(std::pair<int,int>,size_t);
59 
60  }; //end MergeSimSourcesUtility class
61 
62 } //end namespace sim
63 
64 #endif
void MergeSimPhotonsLite(std::vector< sim::SimPhotonsLite > &, const std::vector< sim::SimPhotonsLite > &)
void MergeSimChannels(std::vector< sim::SimChannel > &, const std::vector< sim::SimChannel > &, size_t)
void UpdateG4TrackIDRange(std::pair< int, int >, size_t)
MergeSimSourcesUtility(std::vector< int > const &)
void MergeSimPhotons(std::vector< sim::SimPhotons > &, const std::vector< sim::SimPhotons > &)
Particle class.
void MergeAuxDetSimChannels(std::vector< sim::AuxDetSimChannel > &, const std::vector< sim::AuxDetSimChannel > &, size_t)
contains objects relating to OpDet hits
object containing MC truth information necessary for making RawDigits and doing back tracking ...
const std::vector< std::vector< size_t > > & GetMCParticleListMap()
std::vector< int > fG4TrackIDOffsets
std::vector< std::pair< int, int > > fG4TrackIDRanges
Monte Carlo Simulation.
void MergeMCParticles(std::vector< simb::MCParticle > &, const std::vector< simb::MCParticle > &, size_t)
object containing MC truth information necessary for making RawDigits and doing back tracking ...
std::vector< std::vector< size_t > > fMCParticleListMap