Import Geant4 10.5.0 source tree
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#ifndef HEP_EVALUATOR_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#ifndef HEP_HASH_MAP_SRC
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#ifndef HEP_STACK_SRC
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#ifndef HEP_STRING_SRC
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#include "CLHEP/Vector/ThreeVector.h"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
+72
-73
@@ -1,73 +1,72 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
// Hep Random
|
||||
// --- DoubConv ---
|
||||
// class header file
|
||||
// -----------------------------------------------------------------------
|
||||
//
|
||||
#ifndef DOUBCONV_HH
|
||||
#define DOUBCONV_HH
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <exception>
|
||||
#include "CLHEP/Utility/thread_local.h"
|
||||
|
||||
namespace CLHEP {
|
||||
|
||||
class DoubConvException : public std::exception {
|
||||
public:
|
||||
DoubConvException(const std::string & w) throw() : msg(w) {}
|
||||
~DoubConvException() throw() {}
|
||||
const char* what() const throw() { return msg.c_str(); }
|
||||
private:
|
||||
std::string msg;
|
||||
};
|
||||
|
||||
class DoubConv {
|
||||
public:
|
||||
|
||||
// dto2longs(d) returns (in a vector) two unsigned longs string containing the
|
||||
// representation of its double input. This is byte-ordering
|
||||
// independant, and depends for complete portability ONLY on adherance
|
||||
// to the IEEE 754 standard for 64-bit floating point representation.
|
||||
// The first unsigned long contains the high-order bits in IEEE; thus
|
||||
// 1.0 will always be 0x3FF00000, 00000000
|
||||
static std::vector<unsigned long> dto2longs(double d);
|
||||
|
||||
// longs2double (v) returns a double containing the value represented by its
|
||||
// input, which must be a vector containing 2 unsigned longs.
|
||||
// The input is taken to be the representation according to
|
||||
// the IEEE 754 standard for a 64-bit floating point number, whose value
|
||||
// is returned as a double. The byte-ordering of the double result is,
|
||||
// of course, tailored to the proper byte-ordering for the system.
|
||||
static double longs2double (const std::vector<unsigned long> & v);
|
||||
|
||||
// dtox(d) returns a 16-character string containing the (zero-filled) hex
|
||||
// representation of its double input. This is byte-ordering
|
||||
// independant, and depends for complete portability ONLY on adherance
|
||||
// to the IEEE 754 standard for 64-bit floating point representation.
|
||||
static std::string d2x(double d);
|
||||
|
||||
private:
|
||||
union DB8 {
|
||||
unsigned char b[8];
|
||||
double d;
|
||||
};
|
||||
static void fill_byte_order ();
|
||||
static CLHEP_THREAD_LOCAL bool byte_order_known;
|
||||
static CLHEP_THREAD_LOCAL int byte_order[8];
|
||||
// Meaning of byte_order: The first (high-order in IEEE 754) byte to
|
||||
// output (or the high-order byte of the first unsigned long)
|
||||
// is of db.b[byte_order[0]]. Thus the index INTO byte_order
|
||||
// is a position in the IEEE representation of the double, and the value
|
||||
// of byte_order[k] is an offset in the memory representation of the
|
||||
// double.
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // DOUBCONV_HH
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
// Hep Random
|
||||
// --- DoubConv ---
|
||||
// class header file
|
||||
// -----------------------------------------------------------------------
|
||||
//
|
||||
#ifndef DOUBCONV_HH
|
||||
#define DOUBCONV_HH
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <exception>
|
||||
#include "CLHEP/Utility/thread_local.h"
|
||||
|
||||
namespace CLHEP {
|
||||
|
||||
class DoubConvException : public std::exception {
|
||||
public:
|
||||
DoubConvException(const std::string & w) throw() : msg(w) {}
|
||||
~DoubConvException() throw() {}
|
||||
const char* what() const throw() { return msg.c_str(); }
|
||||
private:
|
||||
std::string msg;
|
||||
};
|
||||
|
||||
class DoubConv {
|
||||
public:
|
||||
|
||||
// dto2longs(d) returns (in a vector) two unsigned longs string containing the
|
||||
// representation of its double input. This is byte-ordering
|
||||
// independant, and depends for complete portability ONLY on adherance
|
||||
// to the IEEE 754 standard for 64-bit floating point representation.
|
||||
// The first unsigned long contains the high-order bits in IEEE; thus
|
||||
// 1.0 will always be 0x3FF00000, 00000000
|
||||
static std::vector<unsigned long> dto2longs(double d);
|
||||
|
||||
// longs2double (v) returns a double containing the value represented by its
|
||||
// input, which must be a vector containing 2 unsigned longs.
|
||||
// The input is taken to be the representation according to
|
||||
// the IEEE 754 standard for a 64-bit floating point number, whose value
|
||||
// is returned as a double. The byte-ordering of the double result is,
|
||||
// of course, tailored to the proper byte-ordering for the system.
|
||||
static double longs2double (const std::vector<unsigned long> & v);
|
||||
|
||||
// dtox(d) returns a 16-character string containing the (zero-filled) hex
|
||||
// representation of its double input. This is byte-ordering
|
||||
// independant, and depends for complete portability ONLY on adherance
|
||||
// to the IEEE 754 standard for 64-bit floating point representation.
|
||||
static std::string d2x(double d);
|
||||
|
||||
private:
|
||||
union DB8 {
|
||||
unsigned char b[8];
|
||||
double d;
|
||||
};
|
||||
static void fill_byte_order ();
|
||||
static CLHEP_THREAD_LOCAL bool byte_order_known;
|
||||
static CLHEP_THREAD_LOCAL int byte_order[8];
|
||||
// Meaning of byte_order: The first (high-order in IEEE 754) byte to
|
||||
// output (or the high-order byte of the first unsigned long)
|
||||
// is of db.b[byte_order[0]]. Thus the index INTO byte_order
|
||||
// is a position in the IEEE representation of the double, and the value
|
||||
// of byte_order[k] is an offset in the memory representation of the
|
||||
// double.
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // DOUBCONV_HH
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
+1
-2
@@ -55,9 +55,8 @@ public:
|
||||
MixMaxRng(std::istream& is);
|
||||
MixMaxRng();
|
||||
MixMaxRng(long seed);
|
||||
MixMaxRng(int rowIndex, int colIndex);
|
||||
~MixMaxRng();
|
||||
// Constructor and destructor.
|
||||
// Constructors and destructor.
|
||||
|
||||
MixMaxRng(const MixMaxRng& rng);
|
||||
MixMaxRng& operator=(const MixMaxRng& rng);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// $Id:$
|
||||
// -*- C++ -*-
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ----------------------------------------------------------------------
|
||||
// HEP coherent Physical Constants
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ----------------------------------------------------------------------
|
||||
// HEP coherent system of Units
|
||||
//
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
// CLASSDOC OFF
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
// CLASSDOC ON
|
||||
//
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
// CLASSDOC OFF
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
// CLASSDOC ON
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
// CLASSDOC OFF
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
// CLASSDOC ON
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
// CLASSDOC OFF
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
// CLASSDOC ON
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
// CLASSDOC OFF
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
// CLASSDOC ON
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
// $Id:$
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
|
||||
|
||||
Reference in New Issue
Block a user