Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Commandline.hh File Reference

#include "Rivet/Rivet.hh"
#include "Rivet/HistoFormat.hh"
#include "Rivet/AnalysisLoader.hh"
#include "Rivet/Tools/Logging.hh"
#include <tclap/CmdLine.h>

Include dependency graph for Commandline.hh:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.


Namespaces

namespace  Rivet
namespace  Rivet::Commandline

Defines

#define RIVET_COMMANDLINE_HH   1

Functions

void addAnalysisArgs (TCLAP::CmdLine &cmd, TCLAP::MultiArg< string > *&analysesArg, TCLAP::SwitchArg *&analysesAllArg, TCLAP::ValuesConstraint< string > *&anaNameConstraint)
 Add command line parsing of analyses and their negations.
void addHistoArgs (TCLAP::CmdLine &cmd, TCLAP::ValueArg< string > *&histoNameArg, TCLAP::ValueArg< string > *&histoTypeArg, TCLAP::ValuesConstraint< string > *&histoTypeConstraint)
 Add command line parsing of histogram file and format specifications.
void addLoggingArgs (TCLAP::CmdLine &cmd, TCLAP::MultiArg< string > *&logsArg)
 Add command line options to control the logging system.
void useAnalysisArgs (TCLAP::CmdLine &cmd, TCLAP::MultiArg< string > *analysesArg, TCLAP::SwitchArg *analysesAllArg, set< string > &cfgAnalyses)
void useHistoArgs (TCLAP::CmdLine &cmd, TCLAP::ValueArg< string > *histoNameArg, TCLAP::ValueArg< string > *histoTypeArg, string &cfgHistoFileName, HistoFormat &cfgHistoFormat)
void useLoggingArgs (TCLAP::CmdLine &cmd, TCLAP::MultiArg< string > *logsArg, Log::LevelMap &cfgLogLevels)

Define Documentation

#define RIVET_COMMANDLINE_HH   1
 

Definition at line 3 of file Commandline.hh.


Function Documentation

void addAnalysisArgs TCLAP::CmdLine &  cmd,
TCLAP::MultiArg< string > *&  analysesArg,
TCLAP::SwitchArg *&  analysesAllArg,
TCLAP::ValuesConstraint< string > *&  anaNameConstraint
 

Add command line parsing of analyses and their negations.

Author:
Andy Buckley
Date:
2007-02-08

Todo:
Can we use -A for removals and get the ordering right?

Definition at line 17 of file Commandline.cc.

Referenced by main().

void addHistoArgs TCLAP::CmdLine &  cmd,
TCLAP::ValueArg< string > *&  histoNameArg,
TCLAP::ValueArg< string > *&  histoTypeArg,
TCLAP::ValuesConstraint< string > *&  histoTypeConstraint
 

Add command line parsing of histogram file and format specifications.

Definition at line 34 of file Commandline.cc.

References Rivet::getKnownHistoFormatNames().

Referenced by main().

void addLoggingArgs TCLAP::CmdLine &  cmd,
TCLAP::MultiArg< string > *&  logsArg
 

Add command line options to control the logging system.

Definition at line 47 of file Commandline.cc.

Referenced by main().

void useAnalysisArgs TCLAP::CmdLine &  cmd,
TCLAP::MultiArg< string > *  analysesArg,
TCLAP::SwitchArg *  analysesAllArg,
set< string > &  cfgAnalyses
 

Set the Rivet analysis components of the Configuration object based on the command line arguments. Be careful - this function deletes the argument objects.

Definition at line 56 of file Commandline.cc.

References Rivet::toUpper().

Referenced by main().

void useHistoArgs TCLAP::CmdLine &  cmd,
TCLAP::ValueArg< string > *  histoNameArg,
TCLAP::ValueArg< string > *  histoTypeArg,
string &  cfgHistoFileName,
HistoFormat cfgHistoFormat
 

Set the histogramming components of the Configuration object based on the command line arguments. Be careful - this function deletes the argument objects.

Todo:
Support ROOT histogram output (possibly via a ROOT AIDA reader).

Definition at line 89 of file Commandline.cc.

Referenced by main().

void useLoggingArgs TCLAP::CmdLine &  cmd,
TCLAP::MultiArg< string > *  logsArg,
Log::LevelMap &  cfgLogLevels
 

Set the logging components of the Configuration object based on the command line arguments. Be careful - this function deletes the argument object.

Definition at line 117 of file Commandline.cc.

References Log::LevelMap.

Referenced by main().