From 92b899c2c1ce31dfecf1abb8997131c55a767ce7 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Fri, 10 Feb 2017 19:30:50 +0100 Subject: [PATCH] First working example for usiage of the alignment helper for Chris. --- DDAlign/src/GlobalDetectorAlignment.cpp | 5 +++++ DDDB/src/CondDB2DDDB.cpp | 4 ++++ DDEve/src/Display.cpp | 2 +- examples/ClientTests/compact/IronCylinder.xml | 1 - 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/DDAlign/src/GlobalDetectorAlignment.cpp b/DDAlign/src/GlobalDetectorAlignment.cpp index fb30c0545..887f81330 100644 --- a/DDAlign/src/GlobalDetectorAlignment.cpp +++ b/DDAlign/src/GlobalDetectorAlignment.cpp @@ -24,6 +24,11 @@ #include "TGeoMatrix.h" #include "TGeoManager.h" + +#ifdef __GNUC__ // Disable some diagnostics. +#pragma GCC diagnostic ignored "-Wunused-function" +#endif + /// Namespace for the AIDA detector description toolkit namespace DD4hep { diff --git a/DDDB/src/CondDB2DDDB.cpp b/DDDB/src/CondDB2DDDB.cpp index aef010172..d980df052 100644 --- a/DDDB/src/CondDB2DDDB.cpp +++ b/DDDB/src/CondDB2DDDB.cpp @@ -32,6 +32,10 @@ using namespace std; using namespace DD4hep; using namespace DD4hep::DDDB; +#ifdef __GNUC__ // Disable some diagnostics. +#pragma GCC diagnostic ignored "-Wunused-function" +#endif + /// Namespace for the AIDA detector description toolkit namespace DD4hep { diff --git a/DDEve/src/Display.cpp b/DDEve/src/Display.cpp index 34694ed64..815531c7b 100644 --- a/DDEve/src/Display.cpp +++ b/DDEve/src/Display.cpp @@ -372,7 +372,7 @@ TFile* Display::Open(const char* name) const { } /// Consumer event data -void Display::OnFileOpen(EventHandler& handler ) { +void Display::OnFileOpen(EventHandler& /* handler */ ) { } /// Consumer event data diff --git a/examples/ClientTests/compact/IronCylinder.xml b/examples/ClientTests/compact/IronCylinder.xml index 66c5087ef..5d87b2c79 100644 --- a/examples/ClientTests/compact/IronCylinder.xml +++ b/examples/ClientTests/compact/IronCylinder.xml @@ -62,7 +62,6 @@ <readouts> <readout name="HcalBarrelHits"> <id>system:8,barrel:3,module:7,layer:5,slice:10,eta:10,phi:5</id> - <segmentation type="GridPhiEta" grid_size_eta="0.1*cm" phi_bins="10" /> </readout> <readout name="ContainmentHits"> <id>system:8,barrel:3</id> -- GitLab