ATLAS Offline Software
Trigger
TrigT1
L1Topo
L1TopoSimulation
src
ControlHistSvc.cxx
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2022 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
"
11
#include "
L1TopoInterfaces/IL1TopoHistSvc.h
"
12
13
using namespace
LVL1
;
14
15
16
ControlHistSvc::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
22
ControlHistSvc::~ControlHistSvc
()
23
{}
24
25
26
StatusCode
ControlHistSvc::initialize
(){
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
//
39
StatusCode
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
(topoHistSvc);
46
47
return
StatusCode::SUCCESS;
48
}
49
50
AthenaL1TopoHistSvc.h
IL1TopoHistSvc::setBaseDir
virtual void setBaseDir(const std::string &baseDir)=0
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
LVL1::ControlHistSvc::SetHistSvc
virtual StatusCode SetHistSvc(const std::unique_ptr< TCS::TopoSteering > &topoSteering, std::string histBaseDir) override
Definition:
ControlHistSvc.cxx:39
ControlHistSvc.h
LVL1::ControlHistSvc::initialize
virtual StatusCode initialize() override
Definition:
ControlHistSvc.cxx:26
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition:
ICMMCPHitsCnvTool.h:18
LVL1::ControlHistSvc::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Definition:
ControlHistSvc.h:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition:
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
IL1TopoHistSvc.h
TrigConf::name
Definition:
HLTChainList.h:35
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
AthenaL1TopoHistSvc
Definition:
AthenaL1TopoHistSvc.h:16
AthAlgTool
Definition:
AthAlgTool.h:26
TCS::TopoSteering::setHistSvc
StatusCode setHistSvc(std::shared_ptr< IL1TopoHistSvc > histSvc)
enables the histogramming service
Definition:
TopoSteering.cxx:114
LVL1::ControlHistSvc::ControlHistSvc
ControlHistSvc(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
ControlHistSvc.cxx:16
LVL1::ControlHistSvc::~ControlHistSvc
virtual ~ControlHistSvc()
Definition:
ControlHistSvc.cxx:22
Generated on Sun Dec 22 2024 21:08:36 for ATLAS Offline Software by
1.8.18