Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
+17 -14
View File
@@ -1,20 +1,23 @@
-------------------------------------------------------------------
# Category param History
=========================================================
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
=========================================================
See `CONTRIBUTING.rst` for details of **required** info/format for each entry,
which **must** added in reverse chronological order (newest at the top). It must **not**
be used as a substitute for writing good git commit messages!
Category History file
---------------------
This file should be used by G4 developers and category coordinators
to briefly summarize all major modifications introduced in the code
and keep track of all category-tags.
It DOES NOT substitute the CVS log-message one should put at every
committal in the CVS repository !
## 2022-01-19 Witek Pokorski (param-V11-00-01)
- Adding the 'flush' method to the fast simulation models.
This method allows to process the input buffer of the fast simulation model before
the end of the G4 event. It is used when particles are grouped together before the processing.
The 'flash' is triggered inside the event loop of G4EventManager, when the Geant4 stack is empty.
The fast simulation model may add secondaries to the Geant4 stack, which will then be processed
by Geant4.
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
## 2021-12-10 Ben Morgan (param-V11-00-00)
- Change to new Markdown History format
---
# History entries prior to 11.0
April 16, 2021 Ben Morgan (param-V10-07-00)
- Migrate build to modular CMake API
@@ -140,6 +140,7 @@ public: // without description
const std::vector<G4VFastSimulationModel*>& GetFastSimulationModelList() const
{return ModelList;}
void FlushModels();
//----------------------------------------------
// Interface methods for the
@@ -146,7 +146,7 @@ public: // Without description
void ActivateFastSimulationModel(const G4String&);
void InActivateFastSimulationModel(const G4String&);
void Flush();
private:
// Private construtor insures singleton class
@@ -130,6 +130,10 @@ public: // With description
// described has "requests" the tracking will apply after your
// parameterisation has been invoked.
virtual
void Flush(){}
public: // Without description
// Useful public methods :
@@ -155,6 +155,15 @@ G4FastSimulationManager::GetFastSimulationModel(const G4String& modelName,
return model;
}
void G4FastSimulationManager::FlushModels()
{
for (size_t iModel=0; iModel<ModelList.size(); iModel++)
{
ModelList[iModel]->Flush();
}
}
//------------------------------------------------------------------
// Interface trigger method for the G4ParameterisationManagerProcess
@@ -147,6 +147,12 @@ void G4GlobalFastSimulationManager::InActivateFastSimulationModel(const G4String
G4cout << G4endl;
}
void G4GlobalFastSimulationManager::Flush()
{
// loop over all models (that need flushing?) and flush
for (size_t ifsm=0; ifsm<ManagedManagers.size(); ifsm++)
ManagedManagers[ifsm]->FlushModels();
}
// ---------------------------------
// -- display fast simulation setup: