Commits on Source (89)
-
Vakhtang Tsulaia authoreda4b2d7b2
-
Marco Clemencic authoredd844c1bd
-
Marco Clemencic authored
Revert "Restored GaudiKernel/ThreadGaudi.h, needed by ATLAS" This reverts commit 1f86f043.
8261d11d -
Christopher Rob Jones authored
Rework CommonMessaging::setUpMessaging() to improve runtime performance by improved inlining likelihood and better branch prediciton
0e1ef223 -
Christoph Hasse authoredd3f4f4ad
-
Frank Winklmeier authored
gaudi_add_compile_test can be used to add tests that check for the existence of (expected) compilation failures. Use this to implement a unit test to check for StatusCode comilation failures.
690c65d4 -
Marco Clemencic authored
it's causing troubles and not fixing any real problem (anymore)
5fe55be1 -
Gerhard Raven authoredcca0320e
-
Gerhard Raven authorede8770edf
-
cherry-pick of !599
cf6d8a92 -
Marco Clemencic authored09127d7d
-
Marco Clemencic authored
see #15
40d82b4e -
Marco Clemencic authorede72f7268
-
Martin Errenst authored
The previous changes in the interface were to drastic. They would have required too many changes for a service that is likely to be rewritten for ROOT7 within the next 2 years anyway. (2018, 2019) So here we offer a deprecated version without proper ownership management that still works the same in the new implementation. Fix wrong naming in ITHistSvcMT Update ITHistSvc for better legacy support There is now a deprecated regHist method with the old interface. Since we don't want to spam too much during the Athena build, the new regHist method, that transfers ownership, can also return a raw pointer directly. This supports a very common use case in Athena, where the registered histogram is used afterwards. The migration is likely to be scriptable in this case. Adapt new interface in THistSvc.h Fix small typo in THistSvc.h Update InterfaceID version in ITHistSvc Fix wrong default parameter in interface Fit implementation to new interface Fix THistSvc tests and ref files Remove TODOs that are not relevant yet Apply formatting from CI artifacts Update IHistSvc to be more consistent Add THistSvc tests and fix reference The write tests now also contains tests for the new regHist and regShared/getShared methods. Update dbg reference as well Apply formatting patch Remove deprecation attribute from ITHistSvc This would introduce an additional warning for every Gaudi build, while the intention is to discourage the use of its implementation in THistSvc.h. The interface method is still marked as deprecated through a doxygen comment. Add accidentally deleated return type to regHist Comment out deprecation attribute in THistSvc.h Initialize pointer in THistSvc tests Add GAUDI_API back to ITHistSvc Initialize all pointers in THistSvc Apply clang formatting patch from CI Hide deprecation warning behind ATLAS includeguard Let the thistwrite ignore specific file sizes Revert sortgroup regex The previous change did not cover all of the necessary cases and was wrong. Apply formatting artifacts Change test regex also for reading
83c5e66b -
Gerhard Raven authored7f1e45db
-
Hadrien Benjamin Grasland authored9342c246
-
Martin Errenst authored
Add legacy methods for regGraph and regTree Migrating the Athena in these cases would be possible, but not very clean. This is why I decided to favor a consistent interface (with similar methods for Hists, Trees and Graphs), opposed to only providing unique_ptr methods. It would be good if future THistSvc clients would pick up the new methods and old methods would be migrated over time.
21264e1f -
Martin Errenst authored
The lambda in deReg( TObject* ) tried to access vhid->at(0) after a check for vhid->size() == 0. This resulted in a certain crash. I've reorganized the function to delete the vector of THistIDs when vhid->size() is 1 (not 0). There is also a new test case that registers and deregisters a single histogram. Apply formatting
d9a07c28 -
Sebastien Ponce authoredcc589558
-
Frank Winklmeier authored
Coverity claims: error #2443: defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr constexpr StatusCode() = default; Independent of that there is little use of declaring the default constructor as constexpr as it is calling the non-constexpr default_category().
0f02d1b0 -
scott snyder authored
ToolHandle is not thread-safe. In order to be able to run thread initialization in parallel, we need to make thread-local copies of the ToolHandleArray. Needed to allow running part of the G4 initialization in parallel for the ATLAS simulation. Makes a significant difference on many-core machines like KNL.
f0c81ef3 -
Frank Winklmeier authored
If a property contains '[[deprecated]]' in its doc string, print a deprecation warning on setting the property value.
89289ab2 -
scott snyder authored
The __init__.py files generated from GaudiProjectConfig.cmake has code like: ``` __path__ = [d for d in [os.path.join(d, '${pypack}') for d in sys.path if d] if (d.startswith('${CMAKE_BINARY_DIR}') or ``` However, if the working path contains a symlink, then the element in sys.path may have the symlink, but the value from ${CMAKE_BINARY_DIR} to which we compare it will have the symlink expanded. Change to expand any symlinks (using os.path.realname) in the paths from sys.path before comparing.
5bed51c5 -
scott snyder authored
Fixes gcc8 compilation error with prop["foo"] where prop is a Property<std::map<std::string, std::string> >. One gets an error like this (trimmed for brevity): Control/AthenaExamples/AthExHelloWorld/src/HelloAlg.cxx: In constructor 'HelloAlg::HelloAlg(const string&, ISvcLocator*)': Control/AthenaExamples/AthExHelloWorld/src/HelloAlg.cxx:26:11: error: no match for 'operator[]' (operand types are 'Gaudi::Property<std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >' and 'const char [8]') m_myDict["Bonjour"] = "Guten Tag"; ^ In file included from /home/sss/atlas/extern/Gaudi/current/GaudiKernel/GaudiKernel/GaudiHandle.h:7, from /home/sss/atlas/extern/Gaudi/current/GaudiKernel/GaudiKernel/ToolHandle.h:5, from Control/AthenaExamples/AthExHelloWorld/src/HelloAlg.h:10, from Control/AthenaExamples/AthExHelloWorld/src/HelloAlg.cxx:9: /home/sss/atlas/extern/Gaudi/current/GaudiKernel/GaudiKernel/Property.h:544:49: note: candidate: 'template<class ARG, class T> decltype (declval<T>()[ARG{}]) Gaudi::Property<TYPE, VERIFIER, HANDLERS>::operator[](const ARG&) [with ARG = ARG; T = T; TYPE = std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >; VERIFIER = Gaudi::Details::Property::NullVerifier; HANDLERS = Gaudi::Details::Property::UpdateHandler]' inline decltype( std::declval<T>()[ARG{}] ) operator[]( const ARG& arg ) ^~~~~~~~ /home/sss/atlas/extern/Gaudi/current/GaudiKernel/GaudiKernel/Property.h:544:49: note: template argument deduction/substitution failed: /home/sss/atlas/extern/Gaudi/current/GaudiKernel/GaudiKernel/Property.h: In substitution of 'template<class ARG, class T> decltype (declval<T>()[ARG{}]) Gaudi::Property<std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >::operator[]<ARG, T>(const ARG&) [with ARG = char [8]; T = std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >]': Control/AthenaExamples/AthExHelloWorld/src/HelloAlg.cxx:26:21: required from here /home/sss/atlas/extern/Gaudi/current/GaudiKernel/GaudiKernel/Property.h:544:39: error: taking address of temporary array inline decltype( std::declval<T>()[ARG{}] ) operator[]( const ARG& arg ) ~~~~~~~~~~~~~~~~~^ Easiest fix seems to be to use decltype(auto) for the return types.
5b1679c6 -
scott snyder authored
Use std::map instead of std::unordered_map for algosDependenciesMap, so that the output will be printed in a well-defined order.
3bb4003f -
scott snyder authored
gcc8 warns about catching a polymorphic exception classs by value, as that can discard information in derived classes. Change instances of this to instead catch the exception by const reference.
a9ffb56f -
Marco Clemencic authored562baa11
-
8dca2542
-
Marco Clemencic authored4e61badc
-
Marco Clemencic authored73cadef6
-
Marco Clemencic authoredc9554d36
-
Marco Clemencic authored6b4bc395
-
723cb892
-
Marco Clemencic authored4eed0d84
-
Marco Clemencic authoredafcca561
-
Marco Clemencic authored
If a property contains `[[deprecated]]` in its doc string, print a deprecation warning on setting the property value.
38d044e2 -
cd924f5b
-
Marco Clemencic authoredc9f29208
-
Marco Clemencic authored
Use thread-local copies of the ToolHandleArray
785a418e -
Marco Clemencic authored
They cannot be deprecated until there is an alternative method to handle artificial dependencies.
b52190ca -
Gerhard Raven authored5e414a49
-
Gerhard Raven authorede6ca81ef
-
Martin Errenst authored
deReg deleted the object it is deRegistering, but the main purpose of this method is to undo the regiser process, which essentially means to just give up ownership without deletion!
fa80d699 -
Marco Clemencic authoredf6504322
-
Marco Clemencic authored
- require public constructor for components - removed XyzFactory classes - enabled warning for XyzFactory headers - some clean up and modernization
99edb6c4 -
Marco Clemencic authored233426f8
-
4168fe38
-
Marco Clemencic authored
- Replace intrusive reference counting of Tuples with std::shared_ptr - Use a single boost multi-index map to keep track of Tuples - prefer invoke, avoid std::function if possible, when applying 'callables' to objects.
90d2d0ed -
Marco Clemencic authored7dcec6ba
-
d52180f5
-
Marco Clemencic authored
add target `test_headers_build` to test build of headers
a51bde7d -
Marco Clemencic authored
partial overlap with !574
c9dc55cf -
Marco Clemencic authored0025fd44
-
Marco Clemencic authored42b7be27
-
Marco Clemencic authorededb7f254
-
Marco Clemencic authored
otherwise fall back on the provided get_host_binary_tag.py
c5319aa0 -
Marco Clemencic authored
if taken from Git it's also distributed in the installation directory
17ddc1fc -
Marco Clemencic authored
- change Gitlab-CI Docker image to latest LHCb one - prefer host-binary-tag from PATH (see https://gitlab.cern.ch/lhcb-core/LbPlatformUtils/) - use xenv from PATH or get it from the Git repository (see https://gitlab.cern.ch/gaudi/xenv)
c7c4374c -
Marco Clemencic authoreda46624cf
-
Marco Clemencic authored
Closes #15
f320f54d -
Marco Clemencic authored086f3bad
-
Marco Clemencic authored604cdd87
-
Marco Clemencic authoredb0f5a998
-
Marco Clemencic authoredc59ecbba
-
Marco Clemencic authoredd71e1c6b
-
Marco Clemencic authored
* mr-636: GaudiProjectConfig: Fix generated __init__ files to handle symlinks.
3b47b423 -
Marco Clemencic authored
* mr-638: Fix warnings seen when compiling with gcc8.
5a040e70 -
Marco Clemencic authored
* mr-639: Remove deprecation warning from ExtraInputs and ExtraOutputs properties
942510e9 -
Marco Clemencic authored50121cfb
-
Marco Clemencic authoredf5693fcd
-
Marco Clemencic authored106ed647
-
Marco Clemencic authored5470637e
-
Marco Clemencic authored6562bbd5
-
Marco Clemencic authoredfc63045e
-
Marco Clemencic authored73640ae4
-
Gerhard Raven authored
and add a test which checks the ordering of EventIDBase
7c6eaa81 -
Gerhard Raven authoredbc105e5e
-
Gerhard Raven authored1a6e3832
-
Gerhard Raven authored68ecbfc0
-
Marco Clemencic authoredc13ee360
-
Marco Clemencic authoredf4793886
-
Marco Clemencic authoreda9538d9b
-
Marco Clemencic authoreddb9bbd2f
-
Marco Clemencic authored
This reverts merge request !636
bef97242 -
Marco Clemencic authoredc59e872e
-
Marco Clemencic authored84c911f9
-
Marco Clemencic authored
- fix "dereference after null check" error introduced with e6f3bc22 (mr !455) - fix "uninitialized member" error introduced with 99edb6c4 (mr !420)
9eca68f7
Showing
- .gitlab-ci.yml 24 additions, 5 deletions.gitlab-ci.yml
- CMakeLists.txt 1 addition, 3 deletionsCMakeLists.txt
- GaudiAlg/GaudiAlg/FunctionalDetails.h 4 additions, 1 deletionGaudiAlg/GaudiAlg/FunctionalDetails.h
- GaudiAlg/GaudiAlg/GaudiCommon.h 1 addition, 0 deletionsGaudiAlg/GaudiAlg/GaudiCommon.h
- GaudiAlg/GaudiAlg/GaudiTuples.h 48 additions, 27 deletionsGaudiAlg/GaudiAlg/GaudiTuples.h
- GaudiAlg/GaudiAlg/GaudiTuples.icpp 93 additions, 156 deletionsGaudiAlg/GaudiAlg/GaudiTuples.icpp
- GaudiAlg/GaudiAlg/Maps.h 0 additions, 13 deletionsGaudiAlg/GaudiAlg/Maps.h
- GaudiAlg/GaudiAlg/Transformer.h 4 additions, 0 deletionsGaudiAlg/GaudiAlg/Transformer.h
- GaudiAlg/GaudiAlg/Tuple.h 10 additions, 30 deletionsGaudiAlg/GaudiAlg/Tuple.h
- GaudiAlg/GaudiAlg/TupleDetail.h 5 additions, 6 deletionsGaudiAlg/GaudiAlg/TupleDetail.h
- GaudiAlg/GaudiAlg/TupleID.h 2 additions, 0 deletionsGaudiAlg/GaudiAlg/TupleID.h
- GaudiAlg/GaudiAlg/TupleObj.h 38 additions, 110 deletionsGaudiAlg/GaudiAlg/TupleObj.h
- GaudiAlg/src/lib/Tuple.cpp 0 additions, 20 deletionsGaudiAlg/src/lib/Tuple.cpp
- GaudiAlg/src/lib/TupleObj.cpp 11 additions, 47 deletionsGaudiAlg/src/lib/TupleObj.cpp
- GaudiCommonSvc/src/CounterSvc.cpp 0 additions, 419 deletionsGaudiCommonSvc/src/CounterSvc.cpp
- GaudiCoreSvc/src/AlgExecStateSvc/AlgExecStateSvc.cpp 1 addition, 3 deletionsGaudiCoreSvc/src/AlgExecStateSvc/AlgExecStateSvc.cpp
- GaudiCoreSvc/src/AlgExecStateSvc/AlgExecStateSvc.h 1 addition, 2 deletionsGaudiCoreSvc/src/AlgExecStateSvc/AlgExecStateSvc.h
- GaudiCoreSvc/src/JobOptionsSvc/PythonConfig.cpp 1 addition, 1 deletionGaudiCoreSvc/src/JobOptionsSvc/PythonConfig.cpp
- GaudiCoreSvc/src/MessageSvc/InertMessageSvc.cpp 1 addition, 4 deletionsGaudiCoreSvc/src/MessageSvc/InertMessageSvc.cpp
- GaudiCoreSvc/src/MessageSvc/TBBMessageSvc.cpp 1 addition, 6 deletionsGaudiCoreSvc/src/MessageSvc/TBBMessageSvc.cpp
GaudiCommonSvc/src/CounterSvc.cpp
deleted
100644 → 0