29using namespace EL::msgEventLoop;
39 std::pair<Detail::ManagerOrder,std::string> SubmitManager ::
40 getManagerOrder ()
const noexcept
64 data.options.fetchDefaults (*
data.driver->options());
79 std::unique_ptr<TFile>
file (TFile::Open ((
data.submitDir +
"/driver.root").c_str(),
"RECREATE"));
80 file->WriteObject (
data.driver,
"driver");
83 data.job->sampleHandler().save (
data.submitDir +
"/input");
85 std::ofstream
file ((
data.submitDir +
"/location").c_str());
91 end =
data.job->sampleHandler().end(); sample != end; ++ sample)
93 const std::string histfile
94 =
data.submitDir +
"/hist-" + (*sample)->name() +
".root";
95 std::unique_ptr<SH::SampleHist> hist
97 hist->meta()->fetch (*(*sample)->meta());
98 sh_hist.
add (hist.release());
100 sh_hist.
save (
data.submitDir +
"/hist");
114 ANA_MSG_FATAL (
"Driver::submit not implemented in class " <<
typeid(*
data.driver).name());
121 std::ofstream ((
data.submitDir +
"/submitted").c_str());
135 ANA_MSG_FATAL (
"Driver::resubmit not implemented in class " <<
typeid(*
data.driver).name());
146 return ::StatusCode::SUCCESS;
char data[hepevt_bytes_allocation_ATLAS]
static const std::string optDisableMetrics
description: the option to turn off collection of performance data
static const std::string name
description: the name of the service
A class that manages a list of Sample objects.
void save(const std::string &directory) const
save the list of samples to the given directory
std::vector< Sample * >::const_iterator iterator
the iterator to use
void add(Sample *sample)
add a sample to the handler
A sample that represents a single histogram file.
@ finalSubmit
the final submit step
@ finalResubmit
the final resubmit step
@ submitJob
do the actual job submission
@ addSystemAlgs
add any system algorithms to the job that may need to get added
@ fillOptions
in this step we fill the options structure, combining the different locations from which we can pull ...
@ initial
this is just the initial step we do, nothing really happens here
@ prepareSubmitDir
prepare files in our submission directory
@ postSubmit
do whatever needs to be done after the submission is done
@ initialSubmit
the initial submit step
@ initialResubmit
the initial resubmit step
@ OPERATION
the base-operation performed (e.g. submit, retrieve)
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
an internal data structure for passing data between different manager objects anbd step