Import Geant4 10.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2018-12-07 15:15:39 +01:00
parent 6aa23be517
commit db49709b53
11370 changed files with 187480 additions and 160142 deletions
-1
View File
@@ -7,7 +7,6 @@
#
# Generated on : 24/9/2010
#
# $Id: CMakeLists.txt 66892 2013-01-17 10:57:59Z gunter $
#
#------------------------------------------------------------------------------
+5 -6
View File
@@ -1,4 +1,3 @@
# $Id: GNUmakefile 99169 2016-09-07 09:29:14Z gcosmo $
# --------------------------------------------------------------
# GNUmakefile for digits+hits library. Makoto Asai, 1/11/96.
# --------------------------------------------------------------
@@ -13,10 +12,10 @@ include $(G4INSTALL)/config/architecture.gmk
CPPFLAGS += -DG4DIGI_ALLOC_EXPORT
CPPFLAGS += \
-I$(G4BASE)/global/HEPRandom/include \
-I$(G4BASE)/global/management/include \
-I$(G4BASE)/global/HEPGeometry/include \
-I$(G4BASE)/global/HEPNumerics/include \
-I$(G4BASE)/global/HEPRandom/include \
-I$(G4BASE)/global/management/include \
-I$(G4BASE)/global/HEPGeometry/include \
-I$(G4BASE)/global/HEPNumerics/include \
-I$(G4BASE)/track/include \
-I$(G4BASE)/particles/management/include \
-I$(G4BASE)/materials/include \
@@ -24,7 +23,7 @@ CPPFLAGS += \
-I$(G4BASE)/geometry/volumes/include \
-I$(G4BASE)/geometry/divisions/include \
-I$(G4BASE)/geometry/navigation/include \
-I$(G4BASE)/geometry/solids/CSG/include \
-I$(G4BASE)/geometry/solids/CSG/include \
-I$(G4BASE)/digits_hits/hits/include \
-I$(G4BASE)/digits_hits/detector/include \
-I$(G4BASE)/digits_hits/digits/include \
-1
View File
@@ -1,4 +1,3 @@
$Id: History 89185 2015-03-23 16:11:02Z gcosmo $
-------------------------------------------------------------------
=========================================================
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4DefaultLinearColorMap.hh 67992 2013-03-13 10:59:57Z gcosmo $
//
#ifndef G4DefaultLinearColorMap_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoreLogColorMap.hh 67992 2013-03-13 10:59:57Z gcosmo $
//
#ifndef G4ScoreLogColorMap_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoreQuantityMessenger.hh 108220 2018-01-19 15:06:38Z gcosmo $
//
// (HISTORY)
// 03-Sep-2007 T.Aso Command definitions are introduced.
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoringBox.hh 99154 2016-09-07 08:06:30Z gcosmo $
//
#ifndef G4ScoringBox_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoringCylinder.hh 99154 2016-09-07 08:06:30Z gcosmo $
//
#ifndef G4ScoringCylinder_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoringManager.hh 94772 2015-12-09 09:46:45Z gcosmo $
//
#ifndef G4ScoringManager_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoringMessenger.hh 78057 2013-12-03 08:31:15Z gcosmo $
//
// (HISTORY)
// 03-Sep-2007 T.Aso Command definitions are introduced.
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4VScoreColorMap.hh 67992 2013-03-13 10:59:57Z gcosmo $
//
#ifndef G4VScoreColorMap_h
@@ -0,0 +1,65 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
// Author: Ivana Hrivnacova, 11/09/2018 (ivana@ipno.in2p3.fr)
#ifndef G4VScoreNtupleWriter_h
#define G4VScoreNtupleWriter_h 1
#include "G4Threading.hh"
#include "globals.hh"
class G4HCofThisEvent;
// class description:
//
// This class implements the interface for storing hits collections of G4THitsMap<G4double>
// type vith Geant4 analysis tools.
class G4VScoreNtupleWriter
{
public:
virtual ~G4VScoreNtupleWriter();
// static methods
static G4VScoreNtupleWriter* Instance();
// methods
virtual G4bool Book(G4HCofThisEvent* hce) = 0;
virtual void OpenFile() = 0;
virtual void Fill(G4HCofThisEvent* hce, G4int eventNumber) = 0;
virtual void Write() = 0;
protected:
G4VScoreNtupleWriter();
virtual G4VScoreNtupleWriter* CreateInstance() const = 0;
// static data members
static G4VScoreNtupleWriter* fgMasterInstance;
static G4ThreadLocal G4VScoreNtupleWriter* fgInstance;
};
#endif
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4VScoreWriter.hh 67992 2013-03-13 10:59:57Z gcosmo $
//
#ifndef G4VScoreWriter_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4VScoringMesh.hh 99154 2016-09-07 08:06:30Z gcosmo $
//
#ifndef G4VScoringMesh_h
+2 -1
View File
@@ -11,7 +11,6 @@
#
# Generated on : 24/9/2010
#
# $Id: sources.cmake 99154 2016-09-07 08:06:30Z gcosmo $
#
#------------------------------------------------------------------------------
@@ -46,6 +45,7 @@ GEANT4_DEFINE_MODULE(NAME G4detutils
HEADERS
G4DefaultLinearColorMap.hh
G4ScoreLogColorMap.hh
G4VScoreNtupleWriter.hh
G4ScoreQuantityMessenger.hh
G4ScoringBox.hh
G4ScoringCylinder.hh
@@ -57,6 +57,7 @@ GEANT4_DEFINE_MODULE(NAME G4detutils
SOURCES
G4DefaultLinearColorMap.cc
G4ScoreLogColorMap.cc
G4VScoreNtupleWriter.cc
G4ScoreQuantityMessenger.cc
G4ScoreQuantityMessengerQCmd.cc
G4ScoringBox.cc
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4DefaultLinearColorMap.cc 89031 2015-03-18 08:40:48Z gcosmo $
//
#include "G4DefaultLinearColorMap.hh"
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoreLogColorMap.cc 89031 2015-03-18 08:40:48Z gcosmo $
//
#include "G4ScoreLogColorMap.hh"
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoreQuantityMessenger.cc 108220 2018-01-19 15:06:38Z gcosmo $
//
// ---------------------------------------------------------------------
// Modifications
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoreQuantityMessengerQCmd.cc 73819 2013-09-12 15:52:52Z gcosmo $
//
// ---------------------------------------------------------------------
// Modifications
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoringBox.cc 99154 2016-09-07 08:06:30Z gcosmo $
//
#include "G4ScoringBox.hh"
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoringCylinder.cc 99154 2016-09-07 08:06:30Z gcosmo $
//
#include "G4ScoringCylinder.hh"
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoringManager.cc 94772 2015-12-09 09:46:45Z gcosmo $
//
#include "G4ScoringManager.hh"
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4ScoringMessenger.cc 108220 2018-01-19 15:06:38Z gcosmo $
//
// ---------------------------------------------------------------------
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4VScoreColorMap.cc 94772 2015-12-09 09:46:45Z gcosmo $
//
#include "G4VScoreColorMap.hh"
@@ -0,0 +1,89 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
// Author: Ivana Hrivnacova, 11/09/2018 (ivana@ipno.in2p3.fr)
// ---------------------------------------------------------------------
#include "G4VScoreNtupleWriter.hh"
//_____________________________________________________________________________
G4VScoreNtupleWriter* G4VScoreNtupleWriter::fgMasterInstance = 0;
G4ThreadLocal G4VScoreNtupleWriter* G4VScoreNtupleWriter::fgInstance = 0;
//_____________________________________________________________________________
G4VScoreNtupleWriter* G4VScoreNtupleWriter::Instance()
{
// This function invokes creating the objects on workes,
// The master instance should be created by the user
// via the concrete class constructor
G4bool isMaster = ! G4Threading::IsWorkerThread();
if ( ( ! isMaster ) && ( ! fgInstance ) ) {
if ( fgMasterInstance ) {
fgInstance = fgMasterInstance->CreateInstance();
}
}
return fgInstance;
}
//
// ctor, dtor
//
//_____________________________________________________________________________
G4VScoreNtupleWriter::G4VScoreNtupleWriter()
{
G4bool isMaster = ! G4Threading::IsWorkerThread();
if ( isMaster && fgMasterInstance ) {
G4ExceptionDescription description;
description
<< " "
<< "G4VScoreNtupleWriter on master already exists."
<< "Cannot create another instance.";
G4Exception("G4VScoreNtupleWriter::G4VScoreNtupleWriter()",
"Analysis_F001", FatalException, description);
}
if ( fgInstance ) {
G4ExceptionDescription description;
description
<< " "
<< "G4VScoreNtupleWriter on worker already exists."
<< "Cannot create another instance.";
G4Exception("G4VScoreNtupleWriter::G4VScoreNtupleWriter()",
"Analysis_F001", FatalException, description);
}
if ( isMaster ) fgMasterInstance = this;
fgInstance = this;
}
//_____________________________________________________________________________
G4VScoreNtupleWriter::~G4VScoreNtupleWriter()
{
fgInstance = 0;
}
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4VScoreWriter.cc 99154 2016-09-07 08:06:30Z gcosmo $
//
#include "G4VScoreWriter.hh"
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4VScoringMesh.cc 99262 2016-09-09 13:18:19Z gcosmo $
//
// ---------------------------------------------------------------------
// Modifications