//
// ********************************************************************
// * License and Disclaimer                                           *
// *                                                                  *
// * The  Geant4 software  is  copyright of the Copyright Holders  of *
// * the Geant4 Collaboration.  It is provided  under  the terms  and *
// * conditions of the Geant4 Software License,  included in the file *
// * LICENSE and available at  http://cern.ch/geant4/license .  These *
// * include a list of copyright holders.                             *
// *                                                                  *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work  make  any representation or  warranty, express or implied, *
// * regarding  this  software system or assume any liability for its *
// * use.  Please see the license in the file  LICENSE  and URL above *
// * for the full disclaimer and the limitation of liability.         *
// *                                                                  *
// * This  code  implementation is the result of  the  scientific and *
// * technical work of the GEANT4 collaboration.                      *
// * By using,  copying,  modifying or  distributing the software (or *
// * any work based  on the software)  you  agree  to acknowledge its *
// * use  in  resulting  scientific  publications,  and indicate your *
// * acceptance of all terms of the Geant4 Software license.          *
// ********************************************************************
//
//
//---------------------------------------------------------------------------
//
// ClassName:   
//
// Author: 2007  tatsumi Koi, Gunter Folger
//   created from G4HadronPhysicsFTFP_BERT
// Modified:
// 2019.08.01 A.Ribon replaced explicit numbers for the energy transition
//                    region with values taken from G4HadronicParameters
// 2014.08.05 K.L.Genser added provisions for modifing the Bertini to
//            FTF transition energy region
// 2020.10.02 V.Ivanchenko use inheritence from FTFP_BERT; use hadronic 
//            utilities; use explicit constructors
//
//----------------------------------------------------------------------------
//
#ifndef G4HadronPhysicsShielding_h
#define G4HadronPhysicsShielding_h 1

#include "G4HadronPhysicsFTFP_BERT.hh"

class G4HadronPhysicsShielding : public G4HadronPhysicsFTFP_BERT
{
  public: 
    explicit G4HadronPhysicsShielding(G4int verbose);
    explicit G4HadronPhysicsShielding(const G4String& name);
    explicit G4HadronPhysicsShielding(const G4String& name = "hInelastic Shielding",
                                      G4bool qe = false);
    explicit G4HadronPhysicsShielding(const G4String& name, G4int verbose);
    explicit G4HadronPhysicsShielding(const G4String& name, G4int verbose,
                                      G4double minFTFPEnergy, 
                                      G4double maxBertiniEnergy);

    ~G4HadronPhysicsShielding() override = default;

    void UseLEND( const G4String& ss="" ){ useLEND_=true; evaluation_=ss; };
    void UnuseLEND(){ useLEND_=false; };

    // copy constructor and hide assignment operator
    G4HadronPhysicsShielding(G4HadronPhysicsShielding &) = delete;
    G4HadronPhysicsShielding & operator =
    (const G4HadronPhysicsShielding &right) = delete;

  protected:
    //Modify the minimum needed
    void Neutron() override;

    G4bool useLEND_{false};
    G4String evaluation_;
};

#endif

