From a376d48cf965fa2046590a9470dc3ab222977c07 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Mon, 15 Aug 2022 18:17:34 +0200 Subject: [PATCH] Clang-Tidy: added includes for fixing clang diagnostic errors --- DDCore/include/DDSegmentation/SegmentationUtil.h | 2 ++ DDCore/include/XML/UnicodeValues.h | 4 ++++ DDG4/include/DDG4/Geant4InteractionVertexBoost.h | 1 + DDG4/include/DDG4/Geant4PlacementParameterisation.h | 3 +++ DDG4/include/DDG4/Geant4PrimaryHandler.h | 2 ++ 5 files changed, 12 insertions(+) diff --git a/DDCore/include/DDSegmentation/SegmentationUtil.h b/DDCore/include/DDSegmentation/SegmentationUtil.h index 84a986802..875fdfd86 100644 --- a/DDCore/include/DDSegmentation/SegmentationUtil.h +++ b/DDCore/include/DDSegmentation/SegmentationUtil.h @@ -8,6 +8,8 @@ #ifndef DDSEGMENTATION_SEGMENTATIONUTIL_H #define DDSEGMENTATION_SEGMENTATIONUTIL_H +#include "DDSegmentation/Segmentation.h" + #include <cmath> #include <vector> diff --git a/DDCore/include/XML/UnicodeValues.h b/DDCore/include/XML/UnicodeValues.h index 3a2cbdedf..d0dddaadd 100644 --- a/DDCore/include/XML/UnicodeValues.h +++ b/DDCore/include/XML/UnicodeValues.h @@ -14,6 +14,8 @@ // //========================================================================== +#ifdef UNICODE + extern const Tag_t Unicode_NULL; extern const Tag_t Unicode_empty; extern const Tag_t Unicode_star; @@ -627,4 +629,6 @@ UNICODE (zmax); UNICODE (zplane); UNICODE (zstart); +#endif // ifdef UNICODE + #endif // XML_UNICODEVALUES_H diff --git a/DDG4/include/DDG4/Geant4InteractionVertexBoost.h b/DDG4/include/DDG4/Geant4InteractionVertexBoost.h index 54d911e54..50641befe 100644 --- a/DDG4/include/DDG4/Geant4InteractionVertexBoost.h +++ b/DDG4/include/DDG4/Geant4InteractionVertexBoost.h @@ -25,6 +25,7 @@ // Framework include files #include "DDG4/Geant4GeneratorAction.h" +#include "DDG4/Geant4Primary.h" /// Namespace for the AIDA detector description toolkit namespace dd4hep { diff --git a/DDG4/include/DDG4/Geant4PlacementParameterisation.h b/DDG4/include/DDG4/Geant4PlacementParameterisation.h index 641e20e8e..a4a1ed1d7 100644 --- a/DDG4/include/DDG4/Geant4PlacementParameterisation.h +++ b/DDG4/include/DDG4/Geant4PlacementParameterisation.h @@ -13,7 +13,10 @@ #ifndef DDG4_GEANT4PLACEMENTPARAMETERISATION_H #define DDG4_GEANT4PLACEMENTPARAMETERISATION_H +#include <DD4hep/Volumes.h> + /// Geant4 include files +#include <G4Transform3D.hh> #include <G4PVParameterised.hh> #include <G4VPVParameterisation.hh> diff --git a/DDG4/include/DDG4/Geant4PrimaryHandler.h b/DDG4/include/DDG4/Geant4PrimaryHandler.h index 754190b5a..73ae6a23d 100644 --- a/DDG4/include/DDG4/Geant4PrimaryHandler.h +++ b/DDG4/include/DDG4/Geant4PrimaryHandler.h @@ -27,6 +27,8 @@ // Framework include files #include "DDG4/Geant4GeneratorAction.h" +#include <set> + /// Namespace for the AIDA detector description toolkit namespace dd4hep { -- GitLab