ATLAS Offline Software
PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EVENT_LOOP_UNIT_TEST_HH
6 #define EVENT_LOOP_UNIT_TEST_HH
7 
8 #include <EventLoopTest/Global.h>
9 
10 #include <string>
11 #include <EventLoop/Global.h>
13 
14 namespace EL
15 {
16  struct UnitTest
17  {
19  std::string name;
20 
22  std::string base_path;
23 
25  bool scanNEvents {false};
26 
28  bool gridInput {false};
29 
32  bool cleanup;
33 
35  bool testOutput;
36 
38  std::string location;
39 
42 
45 
46 
50  UnitTest (const std::string& val_name, std::string base_path = "");
51 
52 
58  int run (const Driver& driver) const;
59  };
60 }
61 
62 #endif
EL::UnitTest::testFileExecute
bool testFileExecute
whether to test the fileExecute method
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:44
EL::UnitTest::name
std::string name
description: the name of the unit test
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:19
EL::UnitTest
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:17
SampleHandler.h
EL::Driver
the base class for the various EventLoop drivers that allow to run jobs on different backends
Definition: Driver.h:28
EL::UnitTest::base_path
std::string base_path
description: the base path for the data files
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:22
EL::UnitTest::gridInput
bool gridInput
whether to use the inputs from the grid dataset
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:28
FullCPAlgorithmsTest_eljob.driver
driver
Definition: FullCPAlgorithmsTest_eljob.py:175
EL::UnitTest::location
std::string location
description: the location for the unit test
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:38
SH::DiskOutput
a class/interface representing an output location for files
Definition: DiskOutput.h:46
EL::UnitTest::UnitTest
UnitTest(const std::string &val_name, std::string base_path="")
effects: standard constructor guarantee: storng failures: out of memory II
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/Root/UnitTest.cxx:44
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
EL::UnitTest::outputDisk
SH::DiskOutput * outputDisk
description: the output disk
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:41
EL::UnitTest::cleanup
bool cleanup
description: whether we clean up the submit directory afterwards
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:32
EL::UnitTest::run
int run(const Driver &driver) const
effects: perform a unit test with the given driver returns: EXIT_SUCCESS on success,...
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/Root/UnitTest.cxx:55
EL::UnitTest::scanNEvents
bool scanNEvents
whether to scan for number of events
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:25
EL::UnitTest::testOutput
bool testOutput
description: whether to test creating output n-tuples
Definition: PhysicsAnalysis/D3PDTools/EventLoopTest/EventLoopTest/UnitTest.h:35
Global.h
Global.h