/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/PrimaryVertexInformation.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/PrimaryVertexInformation.hh Source File
Ratpac-two
PrimaryVertexInformation.hh
1 #ifndef __RAT__PrimaryVertexInformation__
2 #define __RAT__PrimaryVertexInformation__
3 
4 #include <G4PrimaryParticle.hh>
5 #include <G4VUserPrimaryVertexInformation.hh>
6 #include <vector>
7 
8 namespace RAT {
9 
10 class PrimaryVertexInformation : public G4VUserPrimaryVertexInformation {
11  public:
14 
15  void Print() const {}; // required for G4VUserPrimaryVertexInformation
16 
18  G4PrimaryParticle *GetParentParticle(int i) { return parents[i]; }
19  int GetParentParticleCount() const { return parents.size(); }
20  void AddNewParentParticle(G4PrimaryParticle *part) { parents.push_back(part); }
21 
22  private:
23  std::vector<G4PrimaryParticle *> parents;
24 };
25 } // namespace RAT
26 
27 #endif
Definition: PrimaryVertexInformation.hh:10
G4PrimaryParticle * GetParentParticle(int i)
Definition: PrimaryVertexInformation.hh:18
Definition: CCCrossSecMessenger.hh:29