Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:40

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // $Id: EvtGenExtDecayerPhysics.hh,v 1.3 2015/01/05 23:49:39 mccumber Exp $
0027 //
0028 /// \file eventgenerator/pythia/decayer6/include/EvtGenExtDecayerPhysics.hh
0029 /// \brief Definition of the EvtGenExtDecayerPhysics class
0030 ///
0031 /// \author I. Hrivnacova; IPN Orsay
0032 
0033 #ifndef EVT_EXT_DECAYER_PHYSICS_H
0034 #define EVT_EXT_DECAYER_PHYSICS_H
0035 
0036 #include "G4EvtGenDecayer.hh"
0037 
0038 #include <Geant4/G4String.hh>
0039 #include <Geant4/G4VPhysicsConstructor.hh>
0040 
0041 /// The builder for external decayer.
0042 ///
0043 /// The external decayer is added to all instantiated decay
0044 /// processes
0045 ///
0046 /// \author I. Hrivnacova; IPN Orsay
0047 
0048 class EvtGenExtDecayerPhysics : public G4VPhysicsConstructor
0049 {
0050  public:
0051   EvtGenExtDecayerPhysics(const G4String& name = "ExtDecayer");
0052   ~EvtGenExtDecayerPhysics() override = default;
0053   void CustomizeEvtGenDecay(std::string& InputDecayFile)
0054   {
0055       DecayFile = InputDecayFile;
0056   }
0057 
0058  protected:
0059   // methods
0060   // construct particle and physics
0061   void ConstructParticle() override {return;}
0062   void ConstructProcess() override;
0063 
0064  private:
0065   /// Not implemented
0066   EvtGenExtDecayerPhysics(const EvtGenExtDecayerPhysics& right);
0067   /// Not implemented
0068   EvtGenExtDecayerPhysics& operator=(const EvtGenExtDecayerPhysics& right);
0069   G4EvtGenDecayer* extDecayer = nullptr;
0070   std::string DecayFile = "";
0071 };
0072 
0073 #endif  // P6D_EXT_DECAYER_PHYSICS_H