Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4EvtGenDecayer.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4EvtGenDecayer.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 // $Id: G4EvtGenDecayer.hh,v 1.2 2014/10/07 03:06:54 mccumber Exp $
28 //
31 //
32 #ifndef G4_EVTGEN_DECAYER_H
33 #define G4_EVTGEN_DECAYER_H
34 
35 #include <EvtGenExternal/EvtExternalGenList.hh>
36 
37 #include <HepMC3/Attribute.h> // for string
38 
39 #include <Geant4/G4LorentzVector.hh>
40 #include <Geant4/G4Types.hh> // for G4int, G4bool
41 #include <Geant4/G4VExtDecayer.hh>
42 
43 #include <cstddef>
44 #include <list> // for list
45 #include <string> // for string, allocator
46 
47 class G4DecayProducts;
48 class G4ParticleDefinition;
49 class G4Track;
50 
51 class EvtRandomEngine;
52 class EvtAbsRadCorr;
53 class EvtDecayBase;
54 class EvtGen;
55 
61 
62 class G4EvtGenDecayer : public G4VExtDecayer
63 {
64  public:
66 
67  virtual ~G4EvtGenDecayer();
68  virtual G4DecayProducts* ImportDecayProducts(const G4Track& track);
69  void SetVerboseLevel(G4int verboseLevel) { fVerboseLevel = verboseLevel; }
70 
71  // void PHEvtGenDecayer();
72  // virtual void ~PHEvtGenDecayer();
73  // void Decay(int pdgId, std::unique_ptr<G4LorentzVector> p);
74  // int ImportParticles(std::vector<int>& DecayPDGID, std::vector<int>& DecayStatus, std::vector<G4LorentzVector>& DecayMom, std::vector<G4LorentzVector>& DecayVtx);
75  void SetVertex(G4LorentzVector* r);
76  void SetDecayTable(const std::string& decayTable, bool useXml);
77  // void ClearEvent();
78  // void AppendParticle(int pdg, std::unique_ptr<G4LorentzVector> _p);
79 
80  private:
82  G4EvtGenDecayer(const G4EvtGenDecayer& right);
85  // G4EvtGenDecayer* myEvtGenDecayer = NULL;
86  // EvtGen* myGenerator;
87 
88  G4ParticleDefinition*
89  GetParticleDefinition(int ParPDGID) const;
90 
91  // bool IsG4Detectable(int ParPDGID, G4bool warn = true) const;
92 
93  std::string Decay_DEC = "InputDECAYFiles/DECAY.DEC";
94  std::string Evt_pdl = "InputDECAYFiles/evt.pdl";
95 
96  EvtGen* mEvtGen = NULL;
97  EvtRandomEngine* mEvtGenRandomEngine = NULL;
98  EvtExternalGenList genList;
99 
100  // EvtParticle* mParticle;
101  EvtAbsRadCorr* radCorrEngine = NULL;
102  std::list<EvtDecayBase*> extraModels;
103 
108  float WidthThreshold = 5000.0; //
109 
110  // TLorentzVector * mVertex = new TLorentzVector;
111  // bool mOwner;
112  // bool mDebug = false;
113 
114  // EvtVector4R* mVertex;
115 
117  // ParticleVector* fDecayProductsArray ; ///< array of decay products
118  // TLorentzVector FourMom;
119 };
120 
121 // ----------------------------------------------------------------------------
122 
123 #endif