Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-16 09:01:28

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2022 Whitney Armstrong
0003 
0004 #include "TestACTSLogger.h"
0005 
0006 // FCCSW
0007 //#include "DetCommon/DetUtils.h"
0008 #include "JugBase/IGeoSvc.h"
0009 
0010 #include "Acts/Utilities/Logger.hpp"
0011 
0012 using namespace Acts;
0013 
0014 // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
0015 DECLARE_COMPONENT(TestACTSLogger)
0016 
0017 TestACTSLogger::TestACTSLogger(const std::string& aName, ISvcLocator* aSvcLoc)
0018     : GaudiAlgorithm(aName, aSvcLoc) {}
0019 
0020 TestACTSLogger::~TestACTSLogger() = default;
0021 
0022 StatusCode TestACTSLogger::initialize() {
0023   if (GaudiAlgorithm::initialize().isFailure()) {
0024     return StatusCode::FAILURE;
0025   }
0026   {
0027     //auto testLoggerInfo =
0028     //    Acts::getDefaultLogger("TestLoggerInfo", Acts::Logging::INFO);
0029 
0030     ACTS_LOCAL_LOGGER(Acts::getDefaultLogger("TestLoggerInfo", Acts::Logging::INFO));
0031     ACTS_INFO("TESTING INFO LOGGING LEVEL");
0032     ACTS_VERBOSE("TESTING DEBUG LOGGING LEVEL");
0033     ACTS_DEBUG("TESTING VERBOSE LOGGING LEVEL");
0034   }
0035 
0036   {
0037 
0038     //auto testLoggerVerbose =
0039     //    Acts::getDefaultLogger("TestLoggerVerbose", Acts::Logging::VERBOSE);
0040     ACTS_LOCAL_LOGGER(Acts::getDefaultLogger("TestLoggerVerbose", Acts::Logging::VERBOSE));
0041     ACTS_INFO("TESTING INFO LOGGING LEVEL");
0042     ACTS_VERBOSE("TESTING DEBUG LOGGING LEVEL");
0043     ACTS_DEBUG("TESTING VERBOSE LOGGING LEVEL");
0044   }
0045 
0046   return StatusCode::SUCCESS;
0047 }
0048 
0049 StatusCode TestACTSLogger::execute() { 
0050   return StatusCode::SUCCESS; }
0051 
0052 StatusCode TestACTSLogger::finalize() { return GaudiAlgorithm::finalize(); }