|
ATLAS Offline Software
|
Go to the documentation of this file.
21 int usage(
const std::string& command_name,
int exit_code );
31 std::string cmdlineConditions;
39 TPython::Exec(
"import logging; logging.basicConfig()");
44 std::string inputName(
arg.data );
45 std::string configName(
arg.hconfig );
48 if(
arg.output !=
"" ) {
52 std::string::size_type
s = inputName.size();
53 std::string::size_type
p = inputName.rfind(
'.',
s );
59 if (
arg.cmdlineConditions !=
"") {
74 int usage(
const std::string& command_name,
int exit_code )
78 message +=
"This program takes as arguments the name of a configuration\n";
79 message +=
"file and the name of the data file to be analyzed.\n";
80 message +=
"One may optionally specify a path within the data file to analyze\n";
81 message +=
"and additionally the name of the file with the output results.\n";
82 message +=
"If no output file is specified, a name based on the input is used.\n";
84 std::string::size_type
s = command_name.size();
85 std::string::size_type
p = command_name.rfind(
'/',
s );
86 std::string short_name = command_name.substr(
p+1,
s );
89 std::cout <<
"Usage: " << short_name <<
" <config_file> <data_file> [path [results_file]]\n";
105 cmdlineConditions = (
argc == 6) ?
argv[5] :
"";
char data[hepevt_bytes_allocation_ATLAS]
static ConditionsSingleton & getInstance()
path
python interpreter configuration --------------------------------------—
int main ATLAS_NOT_THREAD_SAFE(int argc, char *argv[])
virtual int Analyze(const std::string &configName_, const std::string &inputName_, const std::string &outputName_, const std::string &path_="")
const std::string & getCondition() const
int main(int, char **)
Main class for all the CppUnit test classes
void setCondition(const std::string &c)
Define macros for attributes used to control the static checker.