Commit f6879f20 authored by Valentina Fioretti's avatar Valentina Fioretti
Browse files

initialize flag

parent ddd54356
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -106,7 +106,14 @@ int main( int argc, char** argv ) {
            visManager->Initialize();
            
            //Initialize G4 kernel
            G4bool initialize_in_run = 0;
            gm.config->readInto(initialize_in_run, "RUN.INITIALIZE.IN.RUN");
            cout << "RUN.INITIALIZE.IN.RUN: " << initialize_in_run << endl;
            
            if (!initialize_in_run) {
                runManager->Initialize();
            }

            cout << argc << endl;
            
        }
@@ -142,7 +149,13 @@ int main( int argc, char** argv ) {
            visManager->Initialize();
            
            //Initialize G4 kernel
            G4bool initialize_in_run = 0;
            gm.config->readInto(initialize_in_run, "RUN.INITIALIZE.IN.RUN");
            cout << "RUN.INITIALIZE.IN.RUN: " << initialize_in_run << endl;
            
            if (!initialize_in_run) {
                runManager->Initialize();
            }
            //cout << argc << endl;
            
        }
+7 −5
Original line number Diff line number Diff line
@@ -69,6 +69,8 @@
#include "G4OpticalParameters.hh"
#include "G4OpticalPhysics.hh"

#include "G4EmModelActivator.hh"


AREMBESPhys::AREMBESPhys() : fMessenger(nullptr), emAREMBESPhys(nullptr), decAREMBESPhys(nullptr)
{
@@ -116,10 +118,9 @@ AREMBESPhys::AREMBESPhys() : fMessenger(nullptr), emAREMBESPhys(nullptr), decARE
    
    AddPhysicsList(hadronname);
    
    
    gm.config->readInto(SS_physics, "SPL.SSPHYS.ACTIVATE");
    G4cout << "SPL.SSPHYS.ACTIVATE: " << SS_physics << G4endl;

    // activating specific parameters for the SS physics list
    gm.config->readInto(SS_physics, "AREMBESPhys.SSPHYS.ACTIVATE");
    G4cout << "AREMBESPhys.SSPHYS.ACTIVATE: " << SS_physics << G4endl;

}

@@ -150,6 +151,7 @@ void AREMBESPhys::ConstructParticle()

void AREMBESPhys::ConstructProcess()
{
    
    AddTransportation();
    emAREMBESPhys->ConstructProcess();
    decAREMBESPhys->ConstructProcess();
@@ -162,7 +164,6 @@ void AREMBESPhys::ConstructProcess()
        hadronAREMBESPhys[i]->ConstructProcess();
    }


    G4EmParameters* param = G4EmParameters::Instance();
    
    if (SS_physics) {
@@ -179,6 +180,7 @@ void AREMBESPhys::ConstructProcess()
    param->SetMuHadLateralDisplacement(false); // v11 update
    param->SetBremsstrahlungTh(10*TeV); // v11 update

            
    //param->SetDeexActiveRegion("InnerRegion", true, true, true);
        
}
+0 −14
Original line number Diff line number Diff line
@@ -22,20 +22,6 @@
// * use  in  resulting  scientific  publications,  and indicate your *
// * acceptance of all terms of the Geant4 Software license.          *
// ********************************************************************
// Copyright 2025 Valentina Fioretti
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// **********************************************************************
//
/// \file electromagnetic/TestEm9/src/PhysicsListMessenger.cc
/// \brief Implementation of the PhysicsListMessenger class
+0 −14
Original line number Diff line number Diff line
@@ -22,20 +22,6 @@
// * use  in  resulting  scientific  publications,  and indicate your *
// * acceptance of all terms of the Geant4 Software license.          *
// ********************************************************************
// Copyright 2025 Valentina Fioretti
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// **********************************************************************
//
/// \file electromagnetic/TestEm9/include/PhysicsListMessenger.hh
/// \brief Definition of the PhysicsListMessenger class