From bbb5feb6d2e2ce1e853c2027b0ff88161087d2f2 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Sun, 7 Oct 2018 15:11:34 +0200 Subject: [PATCH] added script for copyright header, added copyright headers... --- .gitignore | 2 + Documentation/Examples/geometry_example.cc | 11 +++ Documentation/Examples/helix_example.cc | 11 +++ Documentation/Examples/logger_example.cc | 11 +++ Documentation/Examples/stack_example.cc | 11 +++ .../Examples/staticsequence_example.cc | 11 +++ Environment/FlatAtmosphere/FlatAtmosphere.h | 9 +++ Framework/Cascade/Cascade.cc | 11 +++ Framework/Cascade/Cascade.h | 11 +++ Framework/Cascade/Step.cc | 9 +++ Framework/Cascade/testCascade.cc | 11 +++ Framework/Geometry/BaseTrajectory.h | 11 +++ Framework/Geometry/BaseVector.h | 11 +++ Framework/Geometry/CoordinateSystem.cc | 11 +++ Framework/Geometry/CoordinateSystem.h | 11 +++ Framework/Geometry/Helix.h | 11 +++ Framework/Geometry/LineTrajectory.h | 11 +++ Framework/Geometry/Point.h | 11 +++ Framework/Geometry/QuantityVector.h | 11 +++ Framework/Geometry/Sphere.h | 11 +++ Framework/Geometry/Trajectory.h | 11 +++ Framework/Geometry/Vector.h | 11 +++ Framework/Geometry/testGeometry.cc | 11 +++ Framework/Logging/BufferedSink.h | 11 +++ Framework/Logging/Logger.h | 11 +++ Framework/Logging/MessageOff.h | 11 +++ Framework/Logging/MessageOn.h | 11 +++ Framework/Logging/NoSink.h | 11 +++ Framework/Logging/Sink.h | 11 +++ Framework/Logging/testLogging.cc | 11 +++ Framework/Particles/ParticleProperties.h | 11 +++ Framework/Particles/testParticles.cc | 10 +++ Framework/ProcessSequence/ProcessReturn.h | 11 +++ Framework/ProcessSequence/ProcessSequence.h | 11 +++ .../ProcessSequence/testProcessSequence.cc | 11 +++ Framework/Random/RNGManager.cc | 14 +++- Framework/Random/RNGManager.h | 13 ++- Framework/Random/testRandom.cc | 11 +++ Framework/StackInterface/ParticleBase.h | 11 +++ Framework/StackInterface/Stack.h | 11 +++ Framework/StackInterface/StackIterator.h | 11 +++ .../StackInterface/testStackInterface.cc | 11 +++ Framework/Units/testUnits.cc | 11 +++ Main/Environment.h | 10 +++ Main/Stack.h | 10 +++ Main/shower.cc | 11 +++ Processes/NullModel/NullModel.cc | 11 +++ Processes/NullModel/NullModel.h | 11 +++ Processes/NullModel/testNullModel.cc | 11 +++ Processes/Sibyll/ParticleConversion.cc | 11 +++ Processes/Sibyll/ParticleConversion.h | 11 +++ Processes/Sibyll/testSibyll.cc | 10 +++ Stack/DummyStack/DummyStack.h | 11 +++ Stack/DummyStack/SuperStupidStack.h | 11 +++ Stack/SuperStupidStack/SuperStupidStack.h | 11 +++ do-copyright.py | 79 +++++++++++++++++++ 56 files changed, 670 insertions(+), 2 deletions(-) create mode 100755 do-copyright.py diff --git a/.gitignore b/.gitignore index 9b95d0e78..13cf14809 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ **/*~ +**/*.bak +**/*log build/ Framework/Particles/GeneratedParticleProperties.inc flymd.html diff --git a/Documentation/Examples/geometry_example.cc b/Documentation/Examples/geometry_example.cc index 6a05974fd..dac31edc4 100644 --- a/Documentation/Examples/geometry_example.cc +++ b/Documentation/Examples/geometry_example.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/geometry/CoordinateSystem.h> #include <corsika/geometry/Point.h> #include <corsika/geometry/Sphere.h> diff --git a/Documentation/Examples/helix_example.cc b/Documentation/Examples/helix_example.cc index 9d6cdb23c..aea320270 100644 --- a/Documentation/Examples/helix_example.cc +++ b/Documentation/Examples/helix_example.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/geometry/CoordinateSystem.h> #include <corsika/geometry/Helix.h> #include <corsika/geometry/Point.h> diff --git a/Documentation/Examples/logger_example.cc b/Documentation/Examples/logger_example.cc index 94fcb588a..1bd72012e 100644 --- a/Documentation/Examples/logger_example.cc +++ b/Documentation/Examples/logger_example.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/logging/Logger.h> #include <boost/format.hpp> #include <fstream> diff --git a/Documentation/Examples/stack_example.cc b/Documentation/Examples/stack_example.cc index 691cdb384..f0a04f79b 100644 --- a/Documentation/Examples/stack_example.cc +++ b/Documentation/Examples/stack_example.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/particles/ParticleProperties.h> #include <corsika/stack/super_stupid/SuperStupidStack.h> #include <iomanip> diff --git a/Documentation/Examples/staticsequence_example.cc b/Documentation/Examples/staticsequence_example.cc index 9acbc412a..219170d9d 100644 --- a/Documentation/Examples/staticsequence_example.cc +++ b/Documentation/Examples/staticsequence_example.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <array> #include <iomanip> #include <iostream> diff --git a/Environment/FlatAtmosphere/FlatAtmosphere.h b/Environment/FlatAtmosphere/FlatAtmosphere.h index 8b1378917..90582b3df 100644 --- a/Environment/FlatAtmosphere/FlatAtmosphere.h +++ b/Environment/FlatAtmosphere/FlatAtmosphere.h @@ -1 +1,10 @@ +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ diff --git a/Framework/Cascade/Cascade.cc b/Framework/Cascade/Cascade.cc index 1bd6b5b2b..14a4699e4 100644 --- a/Framework/Cascade/Cascade.cc +++ b/Framework/Cascade/Cascade.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/cascade/Cascade.h> using namespace corsika::cascade; diff --git a/Framework/Cascade/Cascade.h b/Framework/Cascade/Cascade.h index 25935d3a6..505949fb9 100644 --- a/Framework/Cascade/Cascade.h +++ b/Framework/Cascade/Cascade.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_Cascade_h_ #define _include_Cascade_h_ diff --git a/Framework/Cascade/Step.cc b/Framework/Cascade/Step.cc index 60349c748..503bc80b1 100644 --- a/Framework/Cascade/Step.cc +++ b/Framework/Cascade/Step.cc @@ -1,4 +1,13 @@ +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ namespace cascade; diff --git a/Framework/Cascade/testCascade.cc b/Framework/Cascade/testCascade.cc index 3279c4245..3606d28aa 100644 --- a/Framework/Cascade/testCascade.cc +++ b/Framework/Cascade/testCascade.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/cascade/Cascade.h> #include <corsika/geometry/LineTrajectory.h> #include <corsika/process/ProcessSequence.h> diff --git a/Framework/Geometry/BaseTrajectory.h b/Framework/Geometry/BaseTrajectory.h index e4eafb853..b39335c8c 100644 --- a/Framework/Geometry/BaseTrajectory.h +++ b/Framework/Geometry/BaseTrajectory.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_BASETRAJECTORY_H #define _include_BASETRAJECTORY_H diff --git a/Framework/Geometry/BaseVector.h b/Framework/Geometry/BaseVector.h index f2079e91c..2cd1c3e49 100644 --- a/Framework/Geometry/BaseVector.h +++ b/Framework/Geometry/BaseVector.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_BASEVECTOR_H_ #define _include_BASEVECTOR_H_ diff --git a/Framework/Geometry/CoordinateSystem.cc b/Framework/Geometry/CoordinateSystem.cc index db0dea292..dd19c85a8 100644 --- a/Framework/Geometry/CoordinateSystem.cc +++ b/Framework/Geometry/CoordinateSystem.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/geometry/CoordinateSystem.h> using namespace corsika::geometry; diff --git a/Framework/Geometry/CoordinateSystem.h b/Framework/Geometry/CoordinateSystem.h index d30e9b438..a6a091290 100644 --- a/Framework/Geometry/CoordinateSystem.h +++ b/Framework/Geometry/CoordinateSystem.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_COORDINATESYSTEM_H_ #define _include_COORDINATESYSTEM_H_ diff --git a/Framework/Geometry/Helix.h b/Framework/Geometry/Helix.h index bd62d1919..018299bcf 100644 --- a/Framework/Geometry/Helix.h +++ b/Framework/Geometry/Helix.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_HELIX_H_ #define _include_HELIX_H_ diff --git a/Framework/Geometry/LineTrajectory.h b/Framework/Geometry/LineTrajectory.h index ee65b5e54..f13f8d822 100644 --- a/Framework/Geometry/LineTrajectory.h +++ b/Framework/Geometry/LineTrajectory.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_LINETRAJECTORY_H #define _include_LINETRAJECTORY_H diff --git a/Framework/Geometry/Point.h b/Framework/Geometry/Point.h index debbf9185..26de85106 100644 --- a/Framework/Geometry/Point.h +++ b/Framework/Geometry/Point.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_POINT_H_ #define _include_POINT_H_ diff --git a/Framework/Geometry/QuantityVector.h b/Framework/Geometry/QuantityVector.h index f4b6bbe0e..c128039df 100644 --- a/Framework/Geometry/QuantityVector.h +++ b/Framework/Geometry/QuantityVector.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_QUANTITYVECTOR_H_ #define _include_QUANTITYVECTOR_H_ diff --git a/Framework/Geometry/Sphere.h b/Framework/Geometry/Sphere.h index 28b4e7dc6..436c8e402 100644 --- a/Framework/Geometry/Sphere.h +++ b/Framework/Geometry/Sphere.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_SPHERE_H_ #define _include_SPHERE_H_ diff --git a/Framework/Geometry/Trajectory.h b/Framework/Geometry/Trajectory.h index 0ce2b5366..237f37931 100644 --- a/Framework/Geometry/Trajectory.h +++ b/Framework/Geometry/Trajectory.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_TRAJECTORY_H #define _include_TRAJECTORY_H diff --git a/Framework/Geometry/Vector.h b/Framework/Geometry/Vector.h index fcebc10f7..cb4e49005 100644 --- a/Framework/Geometry/Vector.h +++ b/Framework/Geometry/Vector.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_VECTOR_H_ #define _include_VECTOR_H_ diff --git a/Framework/Geometry/testGeometry.cc b/Framework/Geometry/testGeometry.cc index 3c7f63af4..d7a517903 100644 --- a/Framework/Geometry/testGeometry.cc +++ b/Framework/Geometry/testGeometry.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one // cpp file #include <catch2/catch.hpp> diff --git a/Framework/Logging/BufferedSink.h b/Framework/Logging/BufferedSink.h index 7ad36927f..12422d79f 100644 --- a/Framework/Logging/BufferedSink.h +++ b/Framework/Logging/BufferedSink.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_BufferedSink_h_ #define _include_BufferedSink_h_ diff --git a/Framework/Logging/Logger.h b/Framework/Logging/Logger.h index fca23d70c..2639df8af 100644 --- a/Framework/Logging/Logger.h +++ b/Framework/Logging/Logger.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + /** @File Logger.h diff --git a/Framework/Logging/MessageOff.h b/Framework/Logging/MessageOff.h index d60070002..6226eab6c 100644 --- a/Framework/Logging/MessageOff.h +++ b/Framework/Logging/MessageOff.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_MessageOff_h_ #define _include_MessageOff_h_ diff --git a/Framework/Logging/MessageOn.h b/Framework/Logging/MessageOn.h index a25928674..c7756150f 100644 --- a/Framework/Logging/MessageOn.h +++ b/Framework/Logging/MessageOn.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_MessageOn_h_ #define _include_MessageOn_h_ diff --git a/Framework/Logging/NoSink.h b/Framework/Logging/NoSink.h index d0ba53649..6e2fe48eb 100644 --- a/Framework/Logging/NoSink.h +++ b/Framework/Logging/NoSink.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_NoSink_h_ #define _include_NoSink_h_ diff --git a/Framework/Logging/Sink.h b/Framework/Logging/Sink.h index f51b70294..74a42185e 100644 --- a/Framework/Logging/Sink.h +++ b/Framework/Logging/Sink.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_Sink_h_ #define _include_Sink_h_ diff --git a/Framework/Logging/testLogging.cc b/Framework/Logging/testLogging.cc index d28c46de4..12a77b3ca 100644 --- a/Framework/Logging/testLogging.cc +++ b/Framework/Logging/testLogging.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/logging/Logger.h> #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one diff --git a/Framework/Particles/ParticleProperties.h b/Framework/Particles/ParticleProperties.h index 9e3c557d6..2482d1c80 100644 --- a/Framework/Particles/ParticleProperties.h +++ b/Framework/Particles/ParticleProperties.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + /** @file Particles.h diff --git a/Framework/Particles/testParticles.cc b/Framework/Particles/testParticles.cc index 098780caf..443d167c4 100644 --- a/Framework/Particles/testParticles.cc +++ b/Framework/Particles/testParticles.cc @@ -1,4 +1,14 @@ +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/particles/ParticleProperties.h> #include <corsika/units/PhysicalUnits.h> diff --git a/Framework/ProcessSequence/ProcessReturn.h b/Framework/ProcessSequence/ProcessReturn.h index 9d43cdf07..82cc816c5 100644 --- a/Framework/ProcessSequence/ProcessReturn.h +++ b/Framework/ProcessSequence/ProcessReturn.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_ProcessReturn_h_ #define _include_ProcessReturn_h_ diff --git a/Framework/ProcessSequence/ProcessSequence.h b/Framework/ProcessSequence/ProcessSequence.h index bfb2c9932..4b2fc83c2 100644 --- a/Framework/ProcessSequence/ProcessSequence.h +++ b/Framework/ProcessSequence/ProcessSequence.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_ProcessSequence_h_ #define _include_ProcessSequence_h_ diff --git a/Framework/ProcessSequence/testProcessSequence.cc b/Framework/ProcessSequence/testProcessSequence.cc index eb8a8cbb9..335db92e6 100644 --- a/Framework/ProcessSequence/testProcessSequence.cc +++ b/Framework/ProcessSequence/testProcessSequence.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one // cpp file #include <catch2/catch.hpp> diff --git a/Framework/Random/RNGManager.cc b/Framework/Random/RNGManager.cc index 01bc247b4..90b0b1dc1 100644 --- a/Framework/Random/RNGManager.cc +++ b/Framework/Random/RNGManager.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/random/RNGManager.h> void corsika::random::RNGManager::RegisterRandomStream(std::string const& pStreamName) { @@ -10,7 +21,8 @@ void corsika::random::RNGManager::RegisterRandomStream(std::string const& pStrea rngs[pStreamName] = std::move(rng); } -corsika::random::RNG& corsika::random::RNGManager::GetRandomStream(std::string const& pStreamName) { +corsika::random::RNG& corsika::random::RNGManager::GetRandomStream( + std::string const& pStreamName) { return rngs.at(pStreamName); } diff --git a/Framework/Random/RNGManager.h b/Framework/Random/RNGManager.h index 52e53cd75..f97840ddb 100644 --- a/Framework/Random/RNGManager.h +++ b/Framework/Random/RNGManager.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_RNGManager_h_ #define _include_RNGManager_h_ @@ -40,5 +51,5 @@ namespace corsika::random { std::stringstream dumpState() const; }; -} // namespace Random +} // namespace corsika::random #endif diff --git a/Framework/Random/testRandom.cc b/Framework/Random/testRandom.cc index f2d6fcdca..a066e6819 100644 --- a/Framework/Random/testRandom.cc +++ b/Framework/Random/testRandom.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one // cpp file #include <catch2/catch.hpp> diff --git a/Framework/StackInterface/ParticleBase.h b/Framework/StackInterface/ParticleBase.h index aa0bb3d11..809c6dc0a 100644 --- a/Framework/StackInterface/ParticleBase.h +++ b/Framework/StackInterface/ParticleBase.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_particleBase_h_ #define _include_particleBase_h_ diff --git a/Framework/StackInterface/Stack.h b/Framework/StackInterface/Stack.h index d493ef5ef..b4660144d 100644 --- a/Framework/StackInterface/Stack.h +++ b/Framework/StackInterface/Stack.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_Stack_h__ #define _include_Stack_h__ diff --git a/Framework/StackInterface/StackIterator.h b/Framework/StackInterface/StackIterator.h index 2045f785d..e9a4ddb09 100644 --- a/Framework/StackInterface/StackIterator.h +++ b/Framework/StackInterface/StackIterator.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_StackIterator_h__ #define _include_StackIterator_h__ diff --git a/Framework/StackInterface/testStackInterface.cc b/Framework/StackInterface/testStackInterface.cc index e00ecc183..078a09407 100644 --- a/Framework/StackInterface/testStackInterface.cc +++ b/Framework/StackInterface/testStackInterface.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/stack/Stack.h> #include <iomanip> diff --git a/Framework/Units/testUnits.cc b/Framework/Units/testUnits.cc index 6e77e4a01..97c1cb4d7 100644 --- a/Framework/Units/testUnits.cc +++ b/Framework/Units/testUnits.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one // cpp file #include <catch2/catch.hpp> diff --git a/Main/Environment.h b/Main/Environment.h index e69de29bb..90582b3df 100644 --- a/Main/Environment.h +++ b/Main/Environment.h @@ -0,0 +1,10 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ diff --git a/Main/Stack.h b/Main/Stack.h index e69de29bb..90582b3df 100644 --- a/Main/Stack.h +++ b/Main/Stack.h @@ -0,0 +1,10 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ diff --git a/Main/shower.cc b/Main/shower.cc index 7bc09673a..10facda74 100644 --- a/Main/shower.cc +++ b/Main/shower.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <utl/Stack.h> int main(int argc, char** argv) { return 0; } diff --git a/Processes/NullModel/NullModel.cc b/Processes/NullModel/NullModel.cc index 4da71dc16..3629d522a 100644 --- a/Processes/NullModel/NullModel.cc +++ b/Processes/NullModel/NullModel.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/process/null_model/NullModel.h> using namespace corsika::process::null_model; diff --git a/Processes/NullModel/NullModel.h b/Processes/NullModel/NullModel.h index 987827656..dc3bf504b 100644 --- a/Processes/NullModel/NullModel.h +++ b/Processes/NullModel/NullModel.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _Physics_NullModel_NullModel_h_ #define _Physics_NullModel_NullModel_h_ diff --git a/Processes/NullModel/testNullModel.cc b/Processes/NullModel/testNullModel.cc index 311c732ce..c098b025b 100644 --- a/Processes/NullModel/testNullModel.cc +++ b/Processes/NullModel/testNullModel.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one // cpp file #include <catch2/catch.hpp> diff --git a/Processes/Sibyll/ParticleConversion.cc b/Processes/Sibyll/ParticleConversion.cc index 6aca2fcf0..9925b97b9 100644 --- a/Processes/Sibyll/ParticleConversion.cc +++ b/Processes/Sibyll/ParticleConversion.cc @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/particles/ParticleProperties.h> #include <corsika/process/sibyll/ParticleConversion.h> diff --git a/Processes/Sibyll/ParticleConversion.h b/Processes/Sibyll/ParticleConversion.h index f39c12979..bceee13dc 100644 --- a/Processes/Sibyll/ParticleConversion.h +++ b/Processes/Sibyll/ParticleConversion.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_processes_sibyll_particles_h_ #define _include_processes_sibyll_particles_h_ diff --git a/Processes/Sibyll/testSibyll.cc b/Processes/Sibyll/testSibyll.cc index 4c5bed4df..ab1c552e3 100644 --- a/Processes/Sibyll/testSibyll.cc +++ b/Processes/Sibyll/testSibyll.cc @@ -1,4 +1,14 @@ +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #include <corsika/particles/ParticleProperties.h> #include <corsika/process/sibyll/ParticleConversion.h> #include <corsika/units/PhysicalUnits.h> diff --git a/Stack/DummyStack/DummyStack.h b/Stack/DummyStack/DummyStack.h index 8dd528a7e..63b84bf30 100644 --- a/Stack/DummyStack/DummyStack.h +++ b/Stack/DummyStack/DummyStack.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_dummystack_h_ #define _include_dummystack_h_ diff --git a/Stack/DummyStack/SuperStupidStack.h b/Stack/DummyStack/SuperStupidStack.h index c1b9215d0..47647e2c3 100644 --- a/Stack/DummyStack/SuperStupidStack.h +++ b/Stack/DummyStack/SuperStupidStack.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_superstupidstack_h_ #define _include_superstupidstack_h_ diff --git a/Stack/SuperStupidStack/SuperStupidStack.h b/Stack/SuperStupidStack/SuperStupidStack.h index a09fe930f..68f518815 100644 --- a/Stack/SuperStupidStack/SuperStupidStack.h +++ b/Stack/SuperStupidStack/SuperStupidStack.h @@ -1,3 +1,14 @@ + +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #ifndef _include_superstupidstack_h_ #define _include_superstupidstack_h_ diff --git a/do-copyright.py b/do-copyright.py new file mode 100755 index 000000000..dcbd9d059 --- /dev/null +++ b/do-copyright.py @@ -0,0 +1,79 @@ +#!/usr/bin/python + +import os.path + +text = """ +/** + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. +*/\n +""" + +excludeDirs = ["ThirdParty", "git"] +excludeFiles = ['PhysicalConstants.h'] + +extensions = [".cc", ".h", ".test"] + +def checkNote(filename): + + startNote = -1 + endNote = -1 + isCopyright = False + lines = [] + + with open(filename, "r") as file: + for line in file.readlines(): + lines.append(line) + file.close() + + + for iLine in range(len(lines)): + line = lines[iLine] + if "/**" in line and startNote == -1: + startNote = iLine + if "copyright" in line.lower() and startNote>=0 and endNote==-1: + isCopyright = True + if "*/" in line and startNote>=0 and endNote==-1: + endNote = iLine + iLine += 1 + + #if startNote>=0 and endNote>=0 and isCopyright: + #print filename + #for iLine in range(startNote, endNote+1): + # print lines[iLine] + + os.rename(filename, filename+".bak") + + with open(filename, "w") as file: + + file.write(text) + + firstLine = 0 + if startNote>=0 and endNote>=0 and isCopyright: + firstLine = endNote + 2 + + for iLine in range(firstLine, len(lines)): + file.write(lines[iLine]) + + file.close() + + +def next_file(x, dir_name, files): + for check in excludeDirs : + if check in dir_name: + return + for check in files : + filename, file_extension = os.path.splitext(check) + for check2 in excludeFiles : + if check2 in check: + return + if file_extension in extensions: + checkNote(dir_name + "/" + check) + + +os.path.walk("./", next_file, 0) -- GitLab