ATLAS Offline Software
Loading...
Searching...
No Matches
eventloop_run_grid_job.cxx File Reference
#include <EventLoop/Worker.h>
#include <TROOT.h>
#include <iostream>
#include <string>
#include <xAODRootAccess/Init.h>
#include <AsgMessaging/MessageCheck.h>
Include dependency graph for eventloop_run_grid_job.cxx:

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 12 of file eventloop_run_grid_job.cxx.

13{
14 using namespace asg::msgUserCode;
16
18
19 if (argc != 2 && argc != 4)
20 {
21 ANA_MSG_ERROR ("invalid number of arguments");
22 return -1;
23 }
24
25 std::string sampleName = argv[1];
26 Long64_t SkipEvents = 0;
27 Long64_t nEventsPerJob = -1;
28
29 if (argc == 4)
30 {
31 SkipEvents = std::stol(argv[2]);
32 nEventsPerJob = std::stol(argv[3]);
33 }
34
35 EL::Worker worker;
36 ANA_CHECK (worker.gridExecute (sampleName, SkipEvents, nEventsPerJob));
37 return 0;
38}
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
#define ANA_CHECK(EXP)
check whether the given expression was successful
#define ANA_CHECK_SET_TYPE(TYPE)
set the type for ANA_CHECK to report failures
::StatusCode gridExecute(const std::string &sampleName, Long64_t SkipEvents, Long64_t nEventsPerJob)
Definition Worker.cxx:908
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.
Definition Init.cxx:31