ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
EventLoopTest
Root
UnitTestAlg7.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
//
7
// includes
8
//
9
10
#include <
EventLoopTest/UnitTestAlg7.h
>
11
12
#include <TH1.h>
13
14
//
15
// method implementations
16
//
17
18
namespace
EL
19
{
20
UnitTestAlg7 ::
21
UnitTestAlg7 (
const
std::string& name,
22
ISvcLocator* pSvcLocator)
23
:
AnaAlgorithm
(name, pSvcLocator)
24
{
25
}
26
27
28
29
::StatusCode
UnitTestAlg7 ::
30
initialize ()
31
{
32
ANA_CHECK
(
book
(TH1F (
"dummy_hist"
,
"dummy_hist"
, 50, 0, 50)));
33
return ::StatusCode::SUCCESS;
34
}
35
36
37
38
::StatusCode
UnitTestAlg7 ::
39
execute ()
40
{
41
return ::StatusCode::SUCCESS;
42
}
43
44
45
46
::StatusCode
UnitTestAlg7 ::
47
finalize ()
48
{
49
return ::StatusCode::SUCCESS;
50
}
51
}
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
UnitTestAlg7.h
AthHistogramming::book
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
Definition
AthHistogramming.h:305
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition
AsgComponentFactories.h:16
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Generated on
for ATLAS Offline Software by
1.17.0