Common Analysis Framework » QFRAMEWORK » TQXSecParser

class TQXSecParser: public TQTable


 TQXSecParser:

 The TQXSecParser is capable of reading crosssection information from a text file.
 Multiple input formattings are supported, the functionality relies on TQTable.

 The first row of the text file is interpreted as column labels.
 The first column will be taken as sample name.

 The other colum labels are expected to match the following patterns unless
 specified differently by setting the corresponding tags:

 column content    | default pattern | tag name

 cross section     | *xsec*          | xSecColName
 filter efficiency | *filt*eff*      | xFilterEffColName
 kFactor           | *k*fac*         | kFactorColName
 process info      | *proc*          | processInfoColName
 generator info    | *gen*           | generatorInfoColName
 simulation info   | *sim*           | simulationInfoColName

 For the column tag name xyz, the case sensitivity of the pattern
 can be controlled by setting the boolean tag "xyzCaseSensitive" on
 the TQXSecParser instance at hand, where the default is 'false' in
 all cases.

 If the cross section column title contains any of the following
 strings, this will affect the way the cross sections are
 implemented:
  'mb': cross section interpreted in mb
  'µb': cross section interpreted in µb
  'nb': cross section interpreted in nb
  'pb': cross section interpreted in pb (default)
  'fb': cross section interpreted in fb
  'ab': cross section interpreted in ab

 This information is used to construct a TQSampleFolder hierarchy.

 Columns not matching any of these patterns are ignored. However,
 the mapping of sample identifiers to paths in the sample folder
 hierarchy can explicitly be read in from a column of arbirtrary
 title (e.g. 'path') using the function
 TQXSecParser::readMappingFromColumn('path'). Alternatively, the
 mapping can be read in from an external file that contains lines of
 the type 'sampleID /path/to/this/sample'.

 Similarly, samples can be enabled or disabled based on a numeric
 priority column of arbitrary title (e.g. 'priority') by using the
 functions
 [enable|disable]SamplesWithPriority[Less|Greater]Than('priority',N),
 where N is the threshold of choice.

 It is also possible to add chunks of nTuples from a given path in
 the file system, regardless of their appearance in the cross
 section file, using the function
 TQXSecParser::addAllSamplesFromPath(...).


Function Members (Methods)

public:
virtual~TQXSecParser()
voidTObject::AbstractMethod(const char* method) const
intaddAllEnabledSamples()
intaddAllListedSamples()
intaddAllMappedSamples()
intaddAllSamples(bool requireEnabled = true, bool requirePath = true)
intaddAllSamplesFromFolder(TQFolder* f, const TString& folderpath = "data", const TString& namefilter = "*.root", const TString& pathfilter = "./*", const TString& tagstring = "generator='ATLAS', processinfo='p-p-collisions'")
intaddAllSamplesFromList(const TString& inputfile, const TString& folderpath = "data", const TString& tagstring = "generator='ATLAS', processinfo='p-p-collisions'")
intaddAllSamplesFromPath(const TString& filesystempath, const TString& folderpath = "data", const TString& namefilter = "*.root", const TString& pathfilter = "*", const TString& tagstring = "generator='ATLAS', processinfo='p-p-collisions'")
voidaddPathVariant(const TString& replacements)
voidaddPathVariant(const TString& key, const TString& value)
voidaddTagKeyToExport(const TString& key)
voidTQTable::addToListContents(TList* l, const TString& sep)
boolTQTaggable::allTagsOfTypeBool()
boolTQTaggable::allTagsOfTypeDouble()
boolTQTaggable::allTagsOfTypeInteger()
boolTQTaggable::allTagsOfTypeString()
boolTQTaggable::allTagsValidBools()
boolTQTaggable::allTagsValidDoubles()
boolTQTaggable::allTagsValidIntegers()
intTQTable::appendLines(const TQTable& other, int startAt = 0, bool ignoreHlines = false)
intTQTable::appendLines(const TQTable* other, int startAt = 0, bool ignoreHlines = false)
virtual voidTObject::AppendPad(Option_t* option = "")
intapplyBlacklist(const TString& filename)
intapplyBlacklist(vector<TString>* lines)
intapplyWhitelist(const TString& filename)
intapplyWhitelist(vector<TString>* lines)
virtual voidTObject::Browse(TBrowser* b)
boolTQTaggable::canSetThisTag(const TString& key, bool& treatAsList)
ULong_tTObject::CheckedHash()
intTQTaggable::claimTags(const TString& definition, bool printErrMsg = false)
intTQTaggable::claimTags(const TString& definition, TString& message)
intTQTaggable::claimTags(const TString& definition, TString& missing, TString& invalid, TString& unexpected)
static TClass*Class()
virtual const char*TObject::ClassName() const
intTQTable::cleanup()
intTQTable::clear()
virtual voidTNamed::Clear(Option_t* option = "")
voidTQTable::clearCol(unsigned int col)
voidTQTable::clearColAlign()
boolTQTable::clearHlines()
voidclearPathVariants()
voidTQTable::clearRow(unsigned int row)
voidclearTagKeysToExport()
intTQTaggable::clearTags()
boolTQTable::clearVlines()
virtual TObject*TNamed::Clone(const char* newname = "") const
voidcloneSettingsFrom(TQXSecParser* parser)
virtual Int_tTNamed::Compare(const TObject* obj) const
static doubleconvertUnit(double in, const TString& inUnit, const TString& outUnit)
static doubleconvertUnit(double in, TQXSecParser::Unit inUnit, TQXSecParser::Unit outUnit)
virtual voidTNamed::Copy(TObject& named) const
boolTQTable::copyRow(unsigned int sourceRow, unsigned int targetRow, bool ignoreProperties = false)
intTQTaggable::countMatchingTags(const TString& name) const
virtual voidTObject::Delete(Option_t* option = "")MENU
intdisableAllSamples()
intdisableSamplesWithColumnStringMatch(const TString& colname, const TString& pattern, bool verbose = false)
intdisableSamplesWithPriorityGreaterThan(const TString& colname = "priority", int val = 1, bool verbose = false)
intdisableSamplesWithPriorityLessThan(const TString& colname = "priority", int val = 2, bool verbose = false)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
voidTQTable::dump()
virtual voidTObject::Dump() constMENU
intenableAllSamples()
intenableSamplesWithColumnStringMatch(const TString& colname, const TString& pattern, bool verbose = false)
intenableSamplesWithPriorityGreaterThan(const TString& colname = "priority", int val = 1, bool verbose = false)
intenableSamplesWithPriorityLessThan(const TString& colname = "priority", int val = 2, bool verbose = false)
virtual voidTObject::Error(const char* method, const char* msgfmt,...) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
boolTQTable::expand(unsigned int i, unsigned int j)
boolTQTaggable::exportConfigFile(bool writeUnreadKeys = true)
boolTQTaggable::exportConfigFile(const TString& filename, bool writeUnreadKeys = true)
boolTQTaggable::exportConfigFile(const TString& filename, const TString& prefix, bool writeUnreadKeys = true)
intTQTaggable::exportTags(TQTaggable* dest, const TString& subDest = "", const TString& filter = "", bool recursive = false)
TStringTQTaggable::exportTagsAsConfigString(const TString& prefix, const TString& filter = "")
stringTQTaggable::exportTagsAsStandardConfigString(const TString& prefix, const TString& filter = "")
stringTQTaggable::exportTagsAsStandardString(const TString& filter = "", bool xmlStyle = false)
TStringTQTaggable::exportTagsAsString(const TString& filter = "", bool xmlStyle = false)
virtual voidTObject::Fatal(const char* method, const char* msgfmt,...) const
virtual voidTNamed::FillBuffer(char*& buffer)
intTQTable::findColumn(TString colname, bool caseSensitive)
intTQTable::findColumn(TString colname, int row = 0, bool caseSensitive = true)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
intTQTable::findRow(TString content, int column = 0, bool caseSensitive = true)
boolTQTable::getAutoExpand()
virtual TQTaggable*TQTaggable::getBaseTaggable() const
TStringTQTable::getColAlign(unsigned int col)
TStringTQTable::getColAlignHTML(unsigned int col)
virtual TList*TQTaggable::getDescendantTaggables()
TStringTQTable::getDetails()
virtual Option_t*TObject::GetDrawOption() const
static Longptr_tTObject::GetDtorOnly()
TStringTQTable::getEntry(unsigned int i, unsigned int j, TString format = "plain")
TStringTQTable::getEntryASCII(unsigned int i, unsigned int j)
doubleTQTable::getEntryDouble(unsigned int i, unsigned int j, bool sanitizeString = true)
TStringTQTable::getEntryHTML(unsigned int i, unsigned int j)
intTQTable::getEntryInteger(unsigned int i, unsigned int j, bool sanitizeString = true)
TStringTQTable::getEntryLaTeX(unsigned int i, unsigned int j)
TStringTQTable::getEntryPlain(unsigned int i, unsigned int j, bool allowUnicode = true)
TQTaggable*TQTable::getEntryTags(unsigned int i, unsigned int j)
TStringTQTable::getEntryUnicode(unsigned int i, unsigned int j)
doubleTQTable::getEntryValue(unsigned int i, unsigned int j, double defaultval)
TStringTQTable::getEntryVerbatim(unsigned int i, unsigned int j)
virtual TStringTQTaggable::getFlags()
intTQTaggable::getFlagsSize()
boolTQTaggable::getGlobalIgnoreCase() const
boolTQTaggable::getGlobalOverwrite() const
static shared_ptr<TQTaggable>TQTaggable::getGlobalTaggable(const char* name)
static shared_ptr<TQTaggable>TQTaggable::getGlobalTaggable(const TString& name)
virtual const char*TObject::GetIconName() const
TList*TQTaggable::getListOfKeys(const TString& filter = "")
virtual TList*TQTaggable::getListOfTaggables(const TString& name)
TList*TQTaggable::getListOfTagNames()
virtual TList*TQTaggable::getListOfUnreadKeys(const TString& filter = "")
map<TString,TString>TQTable::getMap(const TString& key, const TString& value, const TString& keyformat = "ascii", const TString& valformat = "ascii")
map<TString,TString>TQTable::getMap(unsigned int keyidx, unsigned int validx, const TString& keyformat = "ascii", const TString& valformat = "ascii", bool skipfirstline = false)
virtual TStringTQNamedTaggable::getName() const
virtual const char*TNamed::GetName() const
virtual const TString&TQNamedTaggable::getNameConst() const
intTQTable::getNcols()
intTQTable::getNrows()
intTQTaggable::getNTags() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TStringTQTable::getRowAsCSV(int row, const TString& sep = ",")
TQSampleFolder*getSampleFolder()
boolTQTaggable::getTag(const TString& key, double& value)
boolTQTaggable::getTag(const TString& key, int& value)
boolTQTaggable::getTag(const TString& key, bool& value)
boolTQTaggable::getTag(const TString& key, TString& value)
intTQTaggable::getTag(const TString& key, vector<TString>& vec)
intTQTaggable::getTag(const TString& key, vector<int>& vec)
intTQTaggable::getTag(const TString& key, vector<double>& vec)
intTQTaggable::getTag(const TString& key, vector<bool>& vec)
intTQTaggable::getTag(const TString& key, TList* l)
boolTQTaggable::getTag(const TString& key, double& value, bool recursive)
boolTQTaggable::getTag(const TString& key, int& value, bool recursive)
boolTQTaggable::getTag(const TString& key, bool& value, bool recursive)
boolTQTaggable::getTag(const TString& key, TString& value, bool recursive)
boolTQTaggable::getTagAsString(const TString& key, TString& tag)
boolTQTaggable::getTagBool(const TString& key, bool& value)
boolTQTaggable::getTagBool(const TString& key, bool& value, bool recursive)
boolTQTaggable::getTagBoolDefault(const TString& key, bool defaultVal = false)
doubleTQTaggable::getTagDefault(const TString& key, double defaultVal)
intTQTaggable::getTagDefault(const TString& key, int defaultVal)
boolTQTaggable::getTagDefault(const TString& key, bool defaultVal)
TStringTQTaggable::getTagDefault(const TString& key, const TString& defaultVal)
TStringTQTaggable::getTagDefault(const TString& key, const char* defaultVal)
boolTQTaggable::getTagDouble(const TString& key, double& value)
boolTQTaggable::getTagDouble(const TString& key, double& value, bool recursive)
doubleTQTaggable::getTagDoubleDefault(const TString& key, double defaultVal = 0.)
virtual TList*TQTaggable::getTaggablesByName(const TString& name)
boolTQTaggable::getTagInteger(const TString& key, int& value)
boolTQTaggable::getTagInteger(const TString& key, int& value, bool recursive)
intTQTaggable::getTagIntegerDefault(const TString& key, int defaultVal = 0)
const set<TString>&getTagKeysToExport() const
TList*TQTaggable::getTagList(const TString& key)
intTQTaggable::getTagListLength(const TString& key)
intTQTaggable::getTagsSize()
stringTQTaggable::getTagStandardStringDefault(const TString& key, const TString& defaultVal = "")
boolTQTaggable::getTagString(const TString& key, TString& value)
boolTQTaggable::getTagString(const TString& key, TString& value, bool recursive)
TStringTQTaggable::getTagStringDefault(const TString& key, const TString& defaultVal = "")
vector<bool>TQTaggable::getTagVBool(const TString& key)
vector<double>TQTaggable::getTagVDouble(const TString& key)
vector<int>TQTaggable::getTagVInt(const TString& key)
vector<int>TQTaggable::getTagVInteger(const TString& key)
vector<string>TQTaggable::getTagVStandardString(const TString& key)
vector<TString>TQTaggable::getTagVString(const TString& key)
virtual TStringTQNamedTaggable::getTitle()
virtual const char*TNamed::GetTitle() const
virtual const TString&TQNamedTaggable::getTitleConst() const
boolTQTaggable::getTypeOfTagAsString(const TString& key, TString& type)
virtual UInt_tTObject::GetUniqueID() const
static const TString&TQTaggable::getValidKeyCharacters()
boolTQTaggable::getValueOfTagAsString(const TString& key, TString& value)
TStringTQTaggable::getValuesOfTags(const TString& keys, const TString& sep = ", ")
virtual Bool_tTObject::HandleTimer(TTimer* timer)
boolhasCompleteMapping(bool requireEnabled = true)
boolTQTable::hasEntry(unsigned int i, unsigned int j)
boolTQTaggable::hasEquivalentTag(const TQValue* reference, bool recurseUp = true)
boolTQTaggable::hasEquivalentTag(const TQValue& reference, bool recurseUp = true)
boolTQTaggable::hasEquivalentTag(const TString& key, const TString& value)
boolTQTaggable::hasEquivalentTag(const TString& key, const double value)
boolTQTaggable::hasEquivalentTag(const TString& key, const int value)
boolTQTaggable::hasEquivalentTag(const TString& key, const bool value)
static boolTQTaggable::hasGlobalTaggable(const char* name)
static boolTQTaggable::hasGlobalTaggable(const TString& name)
virtual ULong_tTNamed::Hash() const
Bool_tTObject::HasInconsistentHash() const
boolTQTaggable::hasMatchingTag(const TString& name) const
boolTQTaggable::hasTag(const TString& key)
boolTQTaggable::hasTagBool(const TString& key)
boolTQTaggable::hasTagDouble(const TString& key)
boolTQTaggable::hasTagInteger(const TString& key)
boolTQTaggable::hasTagString(const TString& key)
boolTQTaggable::hasTagWithIndex(const TString& key)
boolTQTaggable::hasTagWithoutIndex(const TString& key)
virtual boolTQTaggable::hasUnreadKeys(const TString& filter = "")
intTQTaggable::importTag(TString tag, bool overwrite = true, bool keepStringQuotes = false)
intTQTaggable::importTags(TString tags, bool overwrite = true, bool keepStringQuotes = false)
intTQTaggable::importTags(const TQTaggable* tags, bool overwrite = true, bool recursive = false)
intTQTaggable::importTags(shared_ptr<TQTaggable> tags, bool overwrite = true, bool recursive = false)
intTQTaggable::importTags(const TQTaggable& tags, bool overwrite = true, bool recursive = false)
intTQTaggable::importTagsWithoutPrefix(const TQTaggable* tags, const TString& prefix, bool overwrite = true, bool recursive = false)
intTQTaggable::importTagsWithoutPrefix(const TQTaggable& tags, const TString& prefix, bool overwrite = true, bool recursive = false)
intTQTaggable::importTagsWithPrefix(TString tags, const TString& prefix, bool overwrite = true, bool keepStringQuotes = false, TString fallbackKey = "")
intTQTaggable::importTagsWithPrefix(const TQTaggable* tags, const TString& prefix, bool overwrite = true, bool recursive = false, TString fallbackKey = "")
intTQTaggable::importTagsWithPrefix(const TQTaggable& tags, const TString& prefix, bool overwrite = true, bool recursive = false, TString fallbackKey = "")
intTQTaggable::importTagWithPrefix(const TString& tag, const TString& prefix, bool overwrite = true, TString fallbackKey = "", bool keepStringQuotes = false)
virtual voidTObject::Info(const char* method, const char* msgfmt,...) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tTObject::IsDestructed() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
boolisGood()
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
boolTQTaggable::isTagOverwrittenByDescendants(TString key)
static boolTQTaggable::isValidKey(const TString& key)
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
static TList*TQTaggable::makeListOfTags(TList* unTags)
const TList&TQTable::makeTList(const TString& sep = ",")
TList*TQTable::makeTListPtr(const TString& sep = ",")
intTQTable::markDifferences(TQTable* other, const TString& color, int colID = -1, int rowID = -1, const TString& format = "plain")
voidTObject::MayNotUse(const char* method) const
voidTQTable::merge(TQTable* other)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
virtual voidTQTaggable::onAccess(TQValue* tag)
virtual voidTQTaggable::onRead(TQValue* tag)
virtual voidTQTaggable::onWrite(TQValue* tag)
const TList&TQTable::operator const TList &()
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TList*TQTable::operator TList *()
TQXSecParser&operator=(const TQXSecParser&)
virtual voidTObject::Paint(Option_t* option = "")
static TQTaggable*TQTaggable::parseFlags(const TString& flags)
boolTQTaggable::parseKey(TString key, TString& bareKey, int& opUp, int& opDown)
static TQTaggable*TQTaggable::parseParameterList(const TString& parameter, const TString& sep = ",", bool trim = true, const TString& blocks = "", const TString& quotes = "")
virtual voidTObject::Pop()
boolTQTable::print(TQTaggable& tags)
boolTQTable::print(TQTaggable* tags = __null)
boolTQTable::print(const TString& tags)
boolTQTable::print(const char* tags)
virtual voidTNamed::Print(Option_t* option = "") const
boolTQTable::print(ostream* out, TQTaggable tags)
boolTQTable::print(ostream* out, TQTaggable* tags = __null)
boolTQTable::print(ostream* out, const TString& tags)
boolTQTable::print(ostream* out, const char* tags)
boolTQTable::print(ostream* output, const TString& format, TQTaggable tags)
intTQTaggable::printClaim(const TString& definition)
boolTQTable::printCSV(TQTaggable& tags)
boolTQTable::printCSV(TQTaggable* tags = __null)
boolTQTable::printCSV(const TString& tags)
boolTQTable::printCSV(const char* tags)
boolTQTable::printCSV(ostream* out, TQTaggable tags)
boolTQTable::printCSV(ostream* out, TQTaggable* tags = __null)
boolTQTable::printCSV(ostream* out, const TString& tags)
boolTQTable::printCSV(ostream* out, const char* tags)
boolTQTaggable::printDiffOfTags(TQTaggable* tags, const TString& options = "")
boolTQTaggable::printDiffOfTags(TQTaggable* tags, TQTaggable& options)
boolTQTable::printHTML(TQTaggable& tags)
boolTQTable::printHTML(TQTaggable* tags = __null)
boolTQTable::printHTML(const TString& tags)
boolTQTable::printHTML(const char* tags)
boolTQTable::printHTML(ostream* out, TQTaggable tags)
boolTQTable::printHTML(ostream* out, TQTaggable* tags = __null)
boolTQTable::printHTML(ostream* out, const TString& tags)
boolTQTable::printHTML(ostream* out, const char* tags)
boolTQTable::printLaTeX(TQTaggable& tags)
boolTQTable::printLaTeX(TQTaggable* tags = __null)
boolTQTable::printLaTeX(const TString& tags)
boolTQTable::printLaTeX(const char* tags)
boolTQTable::printLaTeX(ostream* out, TQTaggable tags)
boolTQTable::printLaTeX(ostream* out, TQTaggable* tags = __null)
boolTQTable::printLaTeX(ostream* out, const TString& tags)
boolTQTable::printLaTeX(ostream* out, const char* tags)
voidprintPathVariants()
boolTQTable::printPlain(TQTaggable& tags)
boolTQTable::printPlain(TQTaggable* tags = __null)
boolTQTable::printPlain(const TString& tags)
boolTQTable::printPlain(const char* tags)
boolTQTable::printPlain(ostream* out, TQTaggable tags)
boolTQTable::printPlain(ostream* out, TQTaggable* tags = __null)
boolTQTable::printPlain(ostream* out, const TString& tags)
boolTQTable::printPlain(ostream* out, const char* tags)
voidTQTaggable::printTags(TString options = "r")
virtual Int_tTObject::Read(const char* name)
intTQTable::readColumn(TQTable* other, const TString& colname, const TString& matchcolname)
intTQTable::readColumn(TQTable* other, const TString& colname, int thismatchcol, int othermatchcol)
intTQTable::readColumn(TQTable* other, int col, int thismatchcol, int othermatchcol)
voidTQTable::readCSV(istream* input, const TString& sep = ",", const TString& leftquote = "\"", const TString& rightquote = "\"")
boolTQTable::readCSVfile(const TString& fname, const TString& sep = ",", const TString& leftquote = "\"", const TString& rightquote = "\"")
intreadFilePatternFromColumn(const TString& colname = "matchingName")
voidTQTable::readHTML(istream* input)
boolTQTable::readHTMLfile(const TString& fname)
voidTQTable::readLaTeX(istream* input)
boolTQTable::readLaTeXfile(const TString& fname)
intreadMapping(TQTable& tmp)
intreadMapping(const TString& filename, bool print = false)
intreadMappingFromColumn(const TString& colname = "path")
voidTQTable::readTSV(istream* input, const TString& seps = " \t", int nsepmin = 1)
boolTQTable::readTSVfile(const TString& fname, const TString& seps = " \t", int ignoreHeadLines = 0, int nsepmin = 1)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTQTable::removeEntry(unsigned int i, unsigned int j)
static boolTQTaggable::removeGlobalTaggable(const char* name)
static boolTQTaggable::removeGlobalTaggable(const TString& name)
intTQTaggable::removeTag(const TString& key)
boolremoveTagKeyToExport(const TString& key)
intTQTaggable::removeTags(const TString& key)
boolTQTaggable::renameTag(const TString& oldKey, const TString& newKey)
intTQTaggable::renameTags(const TString& oldPrefix, const TString& newPrefix)
stringTQTaggable::replaceInStandardString(const TString& in, bool keepQuotes = false)
stringTQTaggable::replaceInStandardString(const TString& in, const char* prefix, bool keepQuotes = false)
stringTQTaggable::replaceInStandardString(const TString& in, const TString& prefix, bool keepQuotes = false)
stringTQTaggable::replaceInStandardStringRecursive(TString in, const TString& prefix = "", bool keepQuotes = false)
intTQTaggable::replaceInTags(TQTaggable& params, const TString& tagFilter = "*")
TStringTQTaggable::replaceInText(const TString& in, bool keepQuotes = false)
TStringTQTaggable::replaceInText(const TString& in, const char* prefix, bool keepQuotes = false)
TStringTQTaggable::replaceInText(const TString& in, const TString& prefix, bool keepQuotes = false)
TStringTQTaggable::replaceInText(const TString& in, int& nReplaced, int& nFailed, bool keepQuotes = false)
TStringTQTaggable::replaceInText(TString in, int& nReplaced, int& nFailed, const TString& prefix, bool keepQuotes = false)
TStringTQTaggable::replaceInTextRecursive(TString in, const TString& prefix = "", bool keepQuotes = false)
voidTObject::ResetBit(UInt_t f)
virtual voidTQTaggable::resetReadFlags()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
static voidselectFirstColumn(vector<TString>* lines)
intTQTable::setAllEntriesWhere(const TString& searchCol, const TString& searchVal, const TString& setCol, const TString& setVal, const TString& searchFormat = "ascii", const TString& setFormat = "ascii")
voidTQTable::setAutoExpand(bool val)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidTQTable::setColAlign(unsigned int i, TString align)
voidTQTable::setColProperty(unsigned int j, const TString& key, const TString& value)
voidTQTable::setColProperty(unsigned int j, const TString& key, const char* value)
voidTQTable::setColProperty(unsigned int j, const TString& key, double value)
voidTQTable::setColProperty(unsigned int j, const TString& key, int value)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
boolTQTable::setEntry(unsigned int i, unsigned int j, const TString& content, const TString& format = "")
boolTQTable::setEntry(unsigned int i, unsigned int j, const char* content, const TString& format = "")
boolTQTable::setEntryValue(unsigned int i, unsigned int j, int content)
boolTQTable::setEntryValue(unsigned int i, unsigned int j, double content)
boolTQTable::setEntryValueAndSplitUncertainties(unsigned int i, unsigned int j, double value, double statUncert, double sysUncert)
boolTQTable::setEntryValueAndUncertainty(unsigned int i, unsigned int j, double value, double uncertainty)
voidTQTable::setFromTList(TList& l)
voidTQTable::setFromTList(TList* l)
voidTQTaggable::setGlobalIgnoreCase(bool globalIgnoreCase = true)
voidTQTaggable::setGlobalOverwrite(bool globalOverwrite = true)
boolTQTable::setHline(int row = 1, int type = 1)
voidTQTable::setListContents(TList* l, const TString& sep)
virtual voidTQNamedTaggable::setName(const TString& newName)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
boolTQTable::setProperty(unsigned int i, unsigned int j, const TString& key, const TString& value)
boolTQTable::setProperty(unsigned int i, unsigned int j, const TString& key, const char* value)
boolTQTable::setProperty(unsigned int i, unsigned int j, const TString& key, double value)
boolTQTable::setProperty(unsigned int i, unsigned int j, const TString& key, int value)
voidTQTable::setRowProperty(unsigned int i, const TString& key, const TString& value)
voidTQTable::setRowProperty(unsigned int i, const TString& key, const char* value)
voidTQTable::setRowProperty(unsigned int i, const TString& key, double value)
voidTQTable::setRowProperty(unsigned int i, const TString& key, int value)
voidsetSampleFolder(TQSampleFolder* sf)
intTQTaggable::setTag(const TString& key, double value, const TString& destination = "")
intTQTaggable::setTag(const TString& key, int value, const TString& destination = "")
intTQTaggable::setTag(const TString& key, bool value, const TString& destination = "")
intTQTaggable::setTag(const TString& key, const TString& value, const TString& destination = "")
intTQTaggable::setTag(const TString& key, const char* value, const TString& destination = "")
intTQTaggable::setTag(const char* key, double value, const TString& destination = "")
intTQTaggable::setTag(const char* key, int value, const TString& destination = "")
intTQTaggable::setTag(const char* key, bool value, const TString& destination = "")
intTQTaggable::setTag(const char* key, const TString& value, const TString& destination = "")
intTQTaggable::setTag(const char* key, const char* value, const TString& destination = "")
intTQTaggable::setTagAuto(const TString& key, TString value, const TString& destination = "")
intTQTaggable::setTagBool(TString key, bool value, const TString& destination = "")
intTQTaggable::setTagDouble(TString key, double value, const TString& destination = "")
intTQTaggable::setTagInteger(TString key, int value, const TString& destination = "")
intTQTaggable::setTagList(const TString& key, TString value, const TString& destination = "")
intTQTaggable::setTagString(TString key, const TString& value, const TString& destination = "")
virtual voidTQNamedTaggable::setTitle(const TString& newTitle)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
boolTQTable::setVline(int col = 1, int type = 1)
virtual voidShowMembers(TMemberInspector& insp) const
boolTQTable::shrink()
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt,...) const
boolTQTaggable::tagIsOfTypeBool(const TString& key)
boolTQTaggable::tagIsOfTypeDouble(const TString& key)
boolTQTaggable::tagIsOfTypeInteger(const TString& key)
boolTQTaggable::tagIsOfTypeString(const TString& key)
boolTQTaggable::tagsAreEquivalentTo(TQTaggable* tags, const TString& filter = "")
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TQXSecParser()
TQXSecParser(const TString& filename)
TQXSecParser(TQTable& tab)
TQXSecParser(TQTable* tab)
TQXSecParser(TQXSecParser& parser)
TQXSecParser(TQXSecParser* parser)
TQXSecParser(TQSampleFolder* sf)
TQXSecParser(TQSampleFolder* sf, const TString& xsecfilename)
static TQXSecParser::Unitunit(const TString& in)
static TStringunitName(TQXSecParser::Unit in)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt,...) const
boolTQTable::write(const TString& fname, TQTaggable& tags)
boolTQTable::write(const TString& fname, TQTaggable* tags = __null)
boolTQTable::write(const TString& fname, const TString& tags)
boolTQTable::write(const TString& fname, const char* tags)
boolTQTable::write(const TString& fname, const TString& format, TQTaggable& tags)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
boolTQTable::writeCSV(const TString& fname, TQTaggable& tags)
boolTQTable::writeCSV(const TString& fname, TQTaggable* tags = __null)
boolTQTable::writeCSV(const TString& fname, const TString& tags)
boolTQTable::writeCSV(const TString& fname, const char* tags)
boolTQTable::writeHTML(const TString& fname, TQTaggable& tags)
boolTQTable::writeHTML(const TString& fname, TQTaggable* tags = __null)
boolTQTable::writeHTML(const TString& fname, const TString& tags)
boolTQTable::writeHTML(const TString& fname, const char* tags)
boolTQTable::writeLaTeX(const TString& fname, TQTaggable& tags)
boolTQTable::writeLaTeX(const TString& fname, TQTaggable* tags = __null)
boolTQTable::writeLaTeX(const TString& fname, const TString& tags)
boolTQTable::writeLaTeX(const TString& fname, const char* tags)
intwriteMappingToColumn(const TString& colname = "path")
boolTQTable::writePlain(const TString& fname, TQTaggable& tags)
boolTQTable::writePlain(const TString& fname, TQTaggable* tags = __null)
boolTQTable::writePlain(const TString& fname, const TString& tags)
boolTQTable::writePlain(const TString& fname, const char* tags)
protected:
intTQTaggable::countTagDown(const TString& key)
intTQTaggable::countTagUp(const TString& key)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TQValue*TQTaggable::findTag(TString name)
TStringTQTable::formatEntryContents(TQTaggable* entry, const TString& format = "plain")
TQTaggable*TQTable::getEntryInternal(unsigned int i, unsigned int j) const
TQTaggable*TQTable::getEntryInternal(unsigned int i, unsigned int j, bool ensure)
TList*TQTaggable::getListOfTags()
boolTQTaggable::getOp(const TString& op, int& opCode)
boolTQTaggable::getTag(const TString& key, TQValue*& tag)
TStringTQTable::makeExpSuffix(int exponent, const TString& format, bool useSIsuffix)
voidTObject::MakeZombie()
boolTQTable::setContent(TQTaggable* entry, const TString& content, TString prior = "")
intTQTaggable::setTag(TQValue* tag, const TString& destination = "")
intTQTaggable::setTag(TQValue* tag, const TString& destination, bool overwrite)
voidTQTable::setup()
private:
virtual Bool_tCheckTObjectHashConsistency() const

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::(anonymous)TObject::kInconsistent
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EDeprecatedStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie

Class Charts

Inheritance Chart:
TObject
TNamed
TQTaggable
TQNamedTaggable
TQTable
TQXSecParser

Function documentation

TQXSecParser(TQSampleFolder* sf, const TString& xsecfilename)
 constructor receiving a sample folder and reading a tab-separated file
TQXSecParser(const TString& filename)
 constructor reading a tab-separated file
TQXSecParser(TQTable& tab)
 copy constructor based on TQTable
TQXSecParser(TQTable* tab)
 copy constructor based on TQTable (pointer variant)
void cloneSettingsFrom(TQXSecParser* parser)
 internal cloning helper
TQXSecParser(TQXSecParser* parser)
 copy constructor based on TQTable (pointer variant)
TQXSecParser(TQXSecParser& parser)
 copy constructor based on TQTable
TQXSecParser(TQSampleFolder* sf)
 constructor reading a tab-separated file
TQXSecParser()
 default constructor
~TQXSecParser()
 default destructor
void addPathVariant(const TString& replacements)
 add a path variant to the list
void addPathVariant(const TString& key, const TString& value)
 add a path variant to the list
void printPathVariants()
 print all registered path variants
void clearPathVariants()
 clear known path variants
TQSampleFolder* getSampleFolder()
 get the sample folder associated to this parser
void setSampleFolder(TQSampleFolder* sf)
 set the sample folder associated to this parser
int readMapping(const TString& filename, bool print = false)
 add mapping from an external TSV-formatted file
int writeMappingToColumn(const TString& colname = "path")
 copy paths to the given column
 creates a column with this name if necessary
int readMappingFromColumn(const TString& colname = "path")
 copy paths from the given column
int readMapping(TQTable& tmp)
 add a mapping from an external table
int enableSamplesWithColumnStringMatch(const TString& colname, const TString& pattern, bool verbose = false)
 enables all samples with string match in column
int disableSamplesWithColumnStringMatch(const TString& colname, const TString& pattern, bool verbose = false)
 disables all samples with string match in column
int enableSamplesWithPriorityLessThan(const TString& colname = "priority", int val = 2, bool verbose = false)
 enables all samples with priority (given by colname) less than the given value
int disableSamplesWithPriorityLessThan(const TString& colname = "priority", int val = 2, bool verbose = false)
 disables all samples with priority (given by colname) less than the given value
int enableSamplesWithPriorityGreaterThan(const TString& colname = "priority", int val = 1, bool verbose = false)
 enables all samples with priority (given by colname) greater than the given value
int disableSamplesWithPriorityGreaterThan(const TString& colname = "priority", int val = 1, bool verbose = false)
 disables all samples with priority (given by colname) greater than the given value
int applyWhitelist(const TString& filename)
 enables all listed samples
int applyWhitelist(vector<TString>* lines)
 enables all listed samples (all non-listed ones will be disabled)
 returns the number of enabled samples
void selectFirstColumn(vector<TString>* lines)
 remove all but the first column in a list of strings
int applyBlacklist(const TString& filename)
 disables all listed samples
int applyBlacklist(vector<TString>* lines)
 disables all listed samples
int enableAllSamples()
 enables all listed samples
int disableAllSamples()
 enables all listed samples
void addTagKeyToExport(const TString& key)
 add the key (name) of a tag possibly set on the XSecParser to be
 copied to TQSample instances created by this parser
bool removeTagKeyToExport(const TString& key)
 remvoe the key (name) of a tag possibly set on the XSecParser to *not* be
 copied to TQSample instances created by this parser (undoes a previous
 addTagKeyToExport call with the same argument)
const std::set<TString>& getTagKeysToExport() const
 get the set of tag keys marked for being copied to newly created
 TQSample instances
void clearTagKeysToExport()
 reset the set of tag keys marked for being copied to newly created
 TQSample instances
int addAllEnabledSamples()
 add all mapped samples to the folder
 an enabled sample is a mapped sample
 that has the 'enabled' flag set
int addAllMappedSamples()
 add all mapped samples to the folder
 a mapped sample is one that has a path assigned to it
int addAllListedSamples()
 add all listed samples to the folder
bool hasCompleteMapping(bool requireEnabled = true)
 return true if all samples are mapped to a path
 if requireEnabled=true, only enabled samples will be checked
int addAllSamples(bool requireEnabled = true, bool requirePath = true)
 add all samples to the folder
int addAllSamplesFromPath(const TString& filesystempath, const TString& folderpath = "data", const TString& namefilter = "*.root", const TString& pathfilter = "*", const TString& tagstring = "generator='ATLAS', processinfo='p-p-collisions'")
 search a file system path for all ntuples and add them to the sample folder
int addAllSamplesFromList(const TString& inputfile, const TString& folderpath = "data", const TString& tagstring = "generator='ATLAS', processinfo='p-p-collisions'")
 add the contents of a text file as samples to a sample folder
int addAllSamplesFromFolder(TQFolder* f, const TString& folderpath = "data", const TString& namefilter = "*.root", const TString& pathfilter = "./*", const TString& tagstring = "generator='ATLAS', processinfo='p-p-collisions'")
 search a file system path for all ntuples and add them to the sample folder
bool isGood()
 return true if this reader was properly initialized and is good to go
TString unitName(TQXSecParser::Unit in)
 convert a unit into a string
double convertUnit(double in, const TString& inUnit, const TString& outUnit)
 convert a cross section value from one unit to the other
double convertUnit(double in, TQXSecParser::Unit inUnit, TQXSecParser::Unit outUnit)
 convert a cross section value from one unit to the other
int readFilePatternFromColumn(const TString& colname = "matchingName")
 copy paths from the given column
Unit unit(const TString& in)