ATLAS Offline Software
Functions
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;
15  ANA_CHECK_SET_TYPE (int);
16 
17  ANA_CHECK (xAOD::Init ());
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 }
Execution.SkipEvents
SkipEvents
Definition: Execution.py:91
ANA_MSG_ERROR
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:294
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
skel.nEventsPerJob
nEventsPerJob
Definition: skel.ABtoEVGEN.py:540
EL::Worker
Definition: Worker.h:25
LArCellNtuple.argv
argv
Definition: LArCellNtuple.py:152
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
ANA_CHECK_SET_TYPE
#define ANA_CHECK_SET_TYPE(TYPE)
set the type for ANA_CHECK to report failures
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:314
EL::Worker::gridExecute
::StatusCode gridExecute(const std::string &sampleName, Long64_t SkipEvents, Long64_t nEventsPerJob)
Definition: Worker.cxx:862
xAOD::Init
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.
Definition: Init.cxx:31