ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12#include <TH1.h>
13
14//
15// method implementations
16//
17
18namespace 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}
#define ANA_CHECK(EXP)
check whether the given expression was successful
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.