Import Geant4 8.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:44:26 +02:00
parent 8a51e0bc40
commit 216a75eeb1
8717 changed files with 360418 additions and 141343 deletions
@@ -0,0 +1,71 @@
//
// ********************************************************************
// * 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: AClass.cc,v 1.4 2006/06/29 15:38:00 gunter Exp $
// ====================================================================
// AClass.cc
//
// 2004 Q
// ====================================================================
#include "AClass.hh"
#include <iostream>
// ====================================================================
//
// class description
//
// ====================================================================
////////////////
AClass::AClass()
: XBase()
////////////////
{
ival= -2;
dval= -2.;
}
/////////////////
AClass::~AClass()
/////////////////
{
}
//////////////////////
void AClass::AMethod()
//////////////////////
{
std::cout << "%%% AClass:::AMethod is called."
<< " (ival, dval)= (" << ival << "," << dval << ")"
<< std::endl;
}
/////////////////////////////////////////////
int AClass::VMethod(const XBase* abase) const
/////////////////////////////////////////////
{
return abase-> GetIVal();
}
@@ -0,0 +1,53 @@
//
// ********************************************************************
// * 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: AClass.hh,v 1.4 2006/06/29 15:38:03 gunter Exp $
// ====================================================================
// AClass.hh
//
// 2004 Q
// ====================================================================
#ifndef ACLASS_H
#define ACLASS_H
#include "XBase.hh"
// ====================================================================
//
// class definition
//
// ====================================================================
class AClass : public XBase {
public:
AClass();
~AClass();
void AMethod(); // overrided
virtual int VMethod(const XBase* abase) const;
};
#endif
@@ -0,0 +1,71 @@
//
// ********************************************************************
// * 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: BClass.cc,v 1.4 2006/06/29 15:38:06 gunter Exp $
// ====================================================================
// BClass.cc
//
// 2004 Q
// ====================================================================
#include "BClass.hh"
#include <iostream>
// ====================================================================
//
// class description
//
// ====================================================================
////////////////
BClass::BClass()
: XBase()
////////////////
{
ival= -3;
dval= -3.;
}
/////////////////
BClass::~BClass()
/////////////////
{
}
//////////////////////
void BClass::AMethod()
//////////////////////
{
std::cout << "%%% BClass:::AMethod is called."
<< " (ival, dval)= (" << ival << "," << dval << ")"
<< std::endl;
}
/////////////////////////////////////////////
int BClass::VMethod(const XBase* abase) const
/////////////////////////////////////////////
{
return abase-> GetIVal();
}
@@ -0,0 +1,53 @@
//
// ********************************************************************
// * 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: BClass.hh,v 1.4 2006/06/29 15:38:09 gunter Exp $
// ====================================================================
// BClass.hh
//
// 2004 Q
// ====================================================================
#ifndef BCLASS_H
#define BCLASS_H
#include "XBase.hh"
// ====================================================================
//
// class definition
//
// ====================================================================
class BClass : public XBase {
public:
BClass();
~BClass();
void AMethod(); // overrided
virtual int VMethod(const XBase* abase) const;
};
#endif
@@ -0,0 +1,11 @@
# $Id: GNUmakefile,v 1.2 2006/04/25 07:54:28 kmura Exp $
# ===========================================================
# Makefile for building local library
#
# ===========================================================
include ../../../config/config.gmk
MODULE := libXXX
include $(G4PY_INSTALL)/config/mylib.gmk
@@ -0,0 +1,66 @@
//
// ********************************************************************
// * 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: XBase.cc,v 1.4 2006/06/29 15:38:12 gunter Exp $
// ====================================================================
// XBase.cc
//
// 2004 Q
// ====================================================================
#include "XBase.hh"
#include <iostream>
// ====================================================================
//
// class description
//
// ====================================================================
//////////////
XBase::XBase()
: ival(-1),
dval(-1.)
//////////////
{
}
///////////////
XBase::~XBase()
///////////////
{
}
/////////////////////
void XBase::AMethod()
/////////////////////
{
std::cout << "%%% XBase::AMethod is called."
<< " (ival, dval)= (" << ival << "," << dval << ")"
<< std::endl;
}
@@ -0,0 +1,70 @@
//
// ********************************************************************
// * 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: XBase.hh,v 1.4 2006/06/29 15:38:15 gunter Exp $
// ====================================================================
// XBase.hh
//
// 2004 Q
// ====================================================================
#ifndef XBASE_H
#define XBASE_H
// ====================================================================
//
// class definition
//
// ====================================================================
class XBase {
protected:
int ival;
double dval;
public:
XBase();
virtual ~XBase();
void SetIVal(int aval);
int GetIVal() const;
void SetDVal(double aval);
double GetDVal() const;
void AMethod();
virtual int VMethod(const XBase* abase) const=0;
};
// ====================================================================
// inline functions
// ====================================================================
inline void XBase::SetIVal(int i) { ival= i; }
inline int XBase::GetIVal() const { return ival; }
inline void XBase::SetDVal(double d) { dval= d; }
inline double XBase::GetDVal() const { return dval; }
#endif