ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4DecayProducts.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4DecayProducts.hh
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 //
28 //
29 // ------------------------------------------------------------
30 // GEANT 4 class header file
31 //
32 // History: first implementation, based on object model of
33 // 12 Dec 1997 H.Kurashige
34 //
35 // Use std::vector 4 Apr. 2012 H.Kurashige
36 // ------------------------------------------------------------
37 
38 #ifndef G4DecayProducts_h
39 #define G4DecayProducts_h 1
40 
41 #include "G4ios.hh"
42 #include "globals.hh"
43 #include "G4DynamicParticle.hh"
44 #include <vector>
45 
47 {
48  public: // With Description
49 
50  // constructors
52  G4DecayProducts(const G4DynamicParticle &aParticle);
53 
54  public:
55  // copy constructor and assignment operator
56  // Deep copy: for G4DynamicParticle pointer
59 
60  //destructor
62 
63  // (un)equal operator
64  G4bool operator==(const G4DecayProducts &right) const;
65  G4bool operator!=(const G4DecayProducts &right) const;
66 
67  public: // With Description
68  // set-get methods for the parent particle
69  // theParentPaticle is used to get information of parent particle
70  // when decay products are filled
71  // new G4DynamicParticle object is created in set methods
73  void SetParentParticle(const G4DynamicParticle &aParticle);
74 
75  // boost all products
76  void Boost(G4double totalEnergy, const G4ThreeVector &momentumDirection);
77  void Boost(G4double betax, G4double betay, G4double betaz);
78 
79  // push-pop methods for decay products pointer
82 
83  G4DynamicParticle* operator[](G4int anIndex) const;
84 
85  G4int entries() const {return numberOfProducts;};
86 
87  // check energy/momentum of products
88  G4bool IsChecked() const;
89 
90  //
91  void DumpInfo() const;
92 
93  typedef std::vector<G4DynamicParticle*> G4DecayProductVector;
94 
95  private:
99 
100 };
101 
102 // ------------------------
103 // Inlined operators
104 // ------------------------
105 
106 inline
108 {
109  return (this == (G4DecayProducts *) &right);
110 }
111 
112 inline
114 {
115  return (this != (G4DecayProducts *) &right);
116 }
117 
118 #endif
119