ATLAS Offline Software
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 
18 namespace EL
19 {
21  UnitTestAlg7 (const std::string& name,
22  ISvcLocator* pSvcLocator)
23  : AnaAlgorithm (name, pSvcLocator)
24  {
25  }
26 
27 
28 
30  initialize ()
31  {
32  ANA_CHECK (book (TH1F ("dummy_hist", "dummy_hist", 50, 0, 50)));
33  return ::StatusCode::SUCCESS;
34  }
35 
36 
37 
39  execute ()
40  {
41  return ::StatusCode::SUCCESS;
42  }
43 
44 
45 
47  finalize ()
48  {
49  return ::StatusCode::SUCCESS;
50  }
51 }
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:303
EL::UnitTestAlg7::initialize
virtual ::StatusCode initialize() override
Definition: UnitTestAlg7.cxx:30
EL::UnitTestAlg7::execute
virtual ::StatusCode execute() override
Definition: UnitTestAlg7.cxx:39
EL::UnitTestAlg7::UnitTestAlg7
UnitTestAlg7(const std::string &name, ISvcLocator *pSvcLocator)
Definition: UnitTestAlg7.cxx:21
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
EL::UnitTestAlg7::finalize
virtual ::StatusCode finalize() override
Definition: UnitTestAlg7.cxx:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TH1F
Definition: rootspy.cxx:320