ATLAS Offline Software
Loading...
Searching...
No Matches
ControlHistSvc.cxx
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 * */
4
5
6
7#include "./ControlHistSvc.h"
8#include "GaudiKernel/ITHistSvc.h"
9
10#include "AthenaL1TopoHistSvc.h"
12
13using namespace LVL1;
14
15
16ControlHistSvc::ControlHistSvc(const std::string& type, const std::string& name,
17 const IInterface* parent) :
18 AthAlgTool(type,name,parent),
19 m_histSvc("THistSvc", name){};
20
21
24
25
27
28 ATH_MSG_INFO("Initialising ControlHistSvc...");
29
30 CHECK(m_histSvc.retrieve());
31
32 return StatusCode::SUCCESS;
33
34}
35
36
37//Function for controlling the hist service
38//
39StatusCode ControlHistSvc::SetHistSvc(const std::unique_ptr<TCS::TopoSteering> &topoSteering, std::string histBaseDir){
40
41
42 std::shared_ptr<IL1TopoHistSvc> topoHistSvc = std::shared_ptr<IL1TopoHistSvc>( new AthenaL1TopoHistSvc(m_histSvc) );
43
44 topoHistSvc->setBaseDir("/EXPERT/"+ histBaseDir);
45 topoSteering->setHistSvc(std::move(topoHistSvc));
46
47 return StatusCode::SUCCESS;
48}
49
50
#define ATH_MSG_INFO(x)
#define CHECK(...)
Evaluate an expression and check for errors.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
ControlHistSvc(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode SetHistSvc(const std::unique_ptr< TCS::TopoSteering > &topoSteering, std::string histBaseDir) override
virtual StatusCode initialize() override
ServiceHandle< ITHistSvc > m_histSvc
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...