// // ******************************************************************** // * 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. * // ******************************************************************** // // $Id: G4BertiniKaonBuilder.cc 81935 2014-06-06 15:41:42Z gcosmo $ // //--------------------------------------------------------------------------- // // ClassName: G4BertiniKaonBuilder // // Author: 2011 G.Folger // devired from G4BertiniPionBuilder // // Modified: // //---------------------------------------------------------------------------- // #include "G4BertiniKaonBuilder.hh" #include "G4SystemOfUnits.hh" #include "G4ParticleDefinition.hh" #include "G4ParticleTable.hh" #include "G4ProcessManager.hh" #include "G4ChipsKaonMinusInelasticXS.hh" #include "G4ChipsKaonPlusInelasticXS.hh" #include "G4ChipsKaonZeroInelasticXS.hh" #include "G4CrossSectionDataSetRegistry.hh" G4BertiniKaonBuilder:: G4BertiniKaonBuilder() { ChipsKaonMinus = G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonMinusInelasticXS::Default_Name()); ChipsKaonPlus = G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonPlusInelasticXS::Default_Name()); ChipsKaonZero = G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonZeroInelasticXS::Default_Name()); theMin = 0*GeV; theMax = 9.9*GeV; theModel = new G4CascadeInterface; theModel->SetMinEnergy(theMin); theModel->SetMaxEnergy(theMax); } G4BertiniKaonBuilder::~G4BertiniKaonBuilder() { /* delete ChipsKaonMinus; delete ChipsKaonPlus; delete ChipsKaonZero; */ } void G4BertiniKaonBuilder:: Build(G4KaonPlusInelasticProcess * aP) { aP->RegisterMe(theModel); theModel->SetMinEnergy(theMin); theModel->SetMaxEnergy(theMax); aP->AddDataSet(ChipsKaonPlus); } void G4BertiniKaonBuilder:: Build(G4KaonMinusInelasticProcess * aP) { aP->RegisterMe(theModel); theModel->SetMinEnergy(theMin); theModel->SetMaxEnergy(theMax); aP->AddDataSet(ChipsKaonMinus); } void G4BertiniKaonBuilder:: Build(G4KaonZeroLInelasticProcess * aP) { aP->RegisterMe(theModel); theModel->SetMinEnergy(theMin); theModel->SetMaxEnergy(theMax); aP->AddDataSet(ChipsKaonZero); } void G4BertiniKaonBuilder:: Build(G4KaonZeroSInelasticProcess * aP) { aP->RegisterMe(theModel); theModel->SetMinEnergy(theMin); theModel->SetMaxEnergy(theMax); aP->AddDataSet(ChipsKaonZero); } void G4BertiniKaonBuilder:: Build(G4HadronElasticProcess * ) {}