Import Geant4 11.0.2 source tree

This commit is contained in:
Gabriele Cosmo
2022-05-25 15:50:57 +02:00
parent de4f28d823
commit b3bf75a2a1
341 changed files with 93127 additions and 39343 deletions
+6
View File
@@ -16,6 +16,12 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
10 March 2022 - E.Tcherniaev (clhep-V10-07-00)
- Fixed compilation warnings in LorentzRotation.h when c++20 is enabled.
08 February 2022 - G.Cosmo
- Fixed compilation warnings for shadowing data member in RandPoisson.
01 September 2021 - G.Cosmo
- Synchronised with CLHEP-2.4.5.1.
* Random (J.Hahnfeld)
@@ -346,9 +346,9 @@ inline std::ostream & operator<<
{return lt.print(os);}
inline bool operator==(const HepRotation &r, const HepLorentzRotation & lt)
{ return lt==r; }
{ return lt==HepLorentzRotation(r); }
inline bool operator!=(const HepRotation &r, const HepLorentzRotation & lt)
{ return lt!=r; }
{ return lt!=HepLorentzRotation(r); }
inline bool operator<=(const HepRotation &r, const HepLorentzRotation & lt)
{ return lt<=r; }
inline bool operator>=(const HepRotation &r, const HepLorentzRotation & lt)
@@ -359,9 +359,9 @@ inline bool operator>(const HepRotation &r, const HepLorentzRotation & lt)
{ return lt>r; }
inline bool operator==(const HepBoost &b, const HepLorentzRotation & lt)
{ return lt==b; }
{ return lt==HepLorentzRotation(b); }
inline bool operator!=(const HepBoost &b, const HepLorentzRotation & lt)
{ return lt!=b; }
{ return lt!=HepLorentzRotation(b); }
inline bool operator<=(const HepBoost &b, const HepLorentzRotation & lt)
{ return lt<=b; }
inline bool operator>=(const HepBoost &b, const HepLorentzRotation & lt)
+8 -8
View File
@@ -102,10 +102,10 @@ long RandPoisson::shoot(double xm) {
double om = getOldMean();
HepRandomEngine* anEngine = HepRandom::getTheEngine();
double* status = getPStatus();
sq = status[0];
alxm = status[1];
g1 = status[2];
double* pstatus = getPStatus();
sq = pstatus[0];
alxm = pstatus[1];
g1 = pstatus[2];
if( xm == -1 ) return 0;
if( xm < 12.0 ) {
@@ -162,10 +162,10 @@ long RandPoisson::shoot(HepRandomEngine* anEngine, double xm) {
double sq, alxm, g1;
double om = getOldMean();
double* status = getPStatus();
sq = status[0];
alxm = status[1];
g1 = status[2];
double* pstatus = getPStatus();
sq = pstatus[0];
alxm = pstatus[1];
g1 = pstatus[2];
if( xm == -1 ) return 0;
if( xm < 12.0 ) {
+40
View File
@@ -0,0 +1,40 @@
---
Checks: "-*,\
google-readability-casting,\
misc-*,\
-misc-incorrect-roundings,\
-misc-macro-parentheses,\
-misc-misplaced-widening-cast,\
-misc-static-assert,\
modernize-*,\
-modernize-deprecated-headers,\
-modernize-pass-by-value,\
-modernize-raw-string-literal,\
-modernize-return-braced-init-list,\
-modernize-use-auto,\
-modernize-use-default-member-init,\
-modernize-use-emplace,\
-modernize-use-equals-default,\
-modernize-use-equals-delete,\
-modernize-use-noexcept,\
-modernize-use-transparent-functors,\
-modernize-use-using,\
performance-*,\
-performance-inefficient-string-concatenation,\
readability-*,\
-readability-function-size,\
-readability-identifier-naming,\
-readability-implicit-bool-cast,\
-readability-inconsistent-declaration-parameter-name,\
-readability-named-parameter,\
-readability-redundant-declaration,\
-readability-redundant-member-init,\
-readability-simplify-boolean-expr,\
"
HeaderFilterRegex: 'source/[^/]*\.(hh|cc)$'
CheckOptions:
- key: readability-braces-around-statements.ShortStatementLines
value: '2'
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: '1'
...