Common Analysis Framework » QFRAMEWORK » TQCutflowPrinter

class TQCutflowPrinter: public TQPresenter


 TQCutflowPrinter:

 The TQCutflowPrinter class uses an TQSampleDataReader to obtain
 cutflow numbers to print cutflow tables in ordinary text style, in
 latex style or in HTML style.


Function Members (Methods)

public:
virtual~TQCutflowPrinter()
virtual voidTQPresenter::addCut(const TString& tags)
virtual voidTQPresenter::addCut(TQTaggable& tags)
virtual voidTQPresenter::addCut(const TString& cutName, const TString& tags)
virtual voidTQPresenter::addCut(const TString& cutName, TQTaggable& tags)
virtual voidTQPresenter::addCut(const TString& cutName, const TString& cutTitle, const TString& tags)
virtual voidTQPresenter::addCut(const TString& cutName, const TString& cutTitle, TQTaggable& tags)
voidaddCutflowCut(TString cutName, TString cutTitle, int sfPolicy = 0)
voidaddCutflowProcess(TString processName, TString processTitle)
virtual voidTQPresenter::addProcess(const TString& tags)
virtual voidTQPresenter::addProcess(TQTaggable& tags)
virtual voidTQPresenter::addProcess(const TString& processName, const TString& tags)
virtual voidTQPresenter::addProcess(const TString& processName, TQTaggable& tags)
virtual voidTQPresenter::addProcess(const TString& processName, TQTaggable* tags)
virtual voidTQPresenter::addProcess(const TString& processName, const TString& processTitle, const TString& tags)
virtual voidTQPresenter::addProcess(const TString& processName, const TString& processTitle, TQTaggable& tags)
boolTQTaggable::allTagsOfTypeBool()
boolTQTaggable::allTagsOfTypeDouble()
boolTQTaggable::allTagsOfTypeInteger()
boolTQTaggable::allTagsOfTypeString()
boolTQTaggable::allTagsValidBools()
boolTQTaggable::allTagsValidDoubles()
boolTQTaggable::allTagsValidIntegers()
virtual intTQPresenter::appendProcessPaths(const TString& processFilter, vector<TString>* paths) const
virtual intTQPresenter::appendProcessPaths(const TString& processFilter, vector<TString>& paths) const
boolTQTaggable::canSetThisTag(const TString& key, bool& treatAsList)
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()
voidTQTaggable::clear()
virtual voidTQPresenter::clearCuts()
virtual voidTQPresenter::clearProcesses()
intTQTaggable::clearTags()
intTQTaggable::countMatchingTags(const TString& name) const
TQTable*createTable(const TString& tags = "")
TQTable*createTable(TQTaggable* tags)
TQTable*createTable(TQTaggable tags)
voiddumpCuts(ostream& out)
voiddumpProcesses(ostream& out)
boolTQTaggable::exportConfigFile(bool writeUnreadKeys = true)
boolTQTaggable::exportConfigFile(const TString& filename, bool writeUnreadKeys = true)
boolTQTaggable::exportConfigFile(const TString& filename, const TString& prefix, bool writeUnreadKeys = true)
virtual intTQPresenter::exportCutsToFile(const TString& fileName, const TString& tags = "")
virtual intTQPresenter::exportCutsToFile(const TString& fileName, TQTaggable& tags)
virtual intTQPresenter::exportProcessesToFile(const TString& fileName, const TString& tags = "")
virtual intTQPresenter::exportProcessesToFile(const TString& fileName, TQTaggable& tags)
virtual voidTQPresenter::exportScheme(TQTaggable* tags)
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 TQTaggable*TQTaggable::getBaseTaggable() const
virtual TStringTQPresenter::getCutTags(const TString& cutName) const
virtual TStringTQPresenter::getCutTitle(const TString& cutName) const
virtual TList*TQTaggable::getDescendantTaggables()
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 TCollection*TQPresenter::getListOfCutNames() const
TList*TQTaggable::getListOfKeys(const TString& filter = "")
virtual TCollection*TQPresenter::getListOfProcessNames() const
virtual TList*TQTaggable::getListOfTaggables(const TString& name)
TList*TQTaggable::getListOfTagNames()
virtual TList*TQTaggable::getListOfUnreadKeys(const TString& filter = "")
TQFolder*TQPresenter::getNormalizationInfo()
intTQTaggable::getNTags() const
virtual TStringTQPresenter::getProcessPath(const TString& processName) const
virtual vector<TString>TQPresenter::getProcessPaths(const TString& processFilter) const
virtual TStringTQPresenter::getProcessTags(const TString& processName) const
virtual TStringTQPresenter::getProcessTitle(const TString& processName) const
virtual TQSampleDataReader*TQPresenter::getReader()
virtual TQSampleFolder*TQPresenter::getSampleFolder()
TQFolder*TQPresenter::getSystematics(const TString& id)
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)
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)
boolTQTaggable::getTypeOfTagAsString(const TString& key, TString& type)
static const TString&TQTaggable::getValidKeyCharacters()
boolTQTaggable::getValueOfTagAsString(const TString& key, TString& value)
TStringTQTaggable::getValuesOfTags(const TString& keys, const TString& sep = ", ")
virtual boolTQPresenter::hasCut(const TString& name) const
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)
boolTQTaggable::hasMatchingTag(const TString& name) const
virtual boolTQPresenter::hasProcess(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 = "")
virtual intTQPresenter::importCuts(const TQPresenter* other)
virtual intTQPresenter::importCutsFromFile(const TString& fileName, const TString& tags = "")
virtual intTQPresenter::importCutsFromFile(const TString& fileName, TQTaggable& tags)
virtual intTQPresenter::importProcesses(const TQPresenter* other)
virtual intTQPresenter::importProcessesFromFile(const TString& fileName, const TString& tags = "")
virtual intTQPresenter::importProcessesFromFile(const TString& fileName, TQTaggable& tags)
virtual voidTQPresenter::importScheme(TQTaggable* tags)
virtual voidTQPresenter::importSchemeFromPath(const TString& path)
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 TClass*IsA() const
boolTQTaggable::isTagOverwrittenByDescendants(TString key)
static boolTQTaggable::isValidKey(const TString& key)
virtual boolTQPresenter::loadSystematics(const TString& importPath)
boolTQPresenter::loadSystematics(TQFolder* f)
virtual boolTQPresenter::loadSystematics(const TString& path, const TString& id)
static TList*TQTaggable::makeListOfTags(TList* unTags)
virtual intTQPresenter::nCuts() const
virtual intTQPresenter::nProcesses() const
virtual voidTQTaggable::onAccess(TQValue* tag)
virtual voidTQTaggable::onRead(TQValue* tag)
virtual voidTQTaggable::onWrite(TQValue* tag)
TQCutflowPrinter&operator=(const TQCutflowPrinter&)
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 = "")
intTQTaggable::printClaim(const TString& definition)
virtual voidTQPresenter::printCuts()
boolTQTaggable::printDiffOfTags(TQTaggable* tags, const TString& options = "")
boolTQTaggable::printDiffOfTags(TQTaggable* tags, TQTaggable& options)
virtual voidTQPresenter::printProcesses()
voidTQTaggable::printTags(TString options = "r")
boolreadCutsFromFile(TString fileName, bool addscline = false)
boolreadProcessesFromFile(TString fileName, TString channel)
voidTQPresenter::removeCutsByName(const TString& nameFilter)
static boolTQTaggable::removeGlobalTaggable(const char* name)
static boolTQTaggable::removeGlobalTaggable(const TString& name)
voidTQPresenter::removeProcessesByName(const TString& nameFilter)
intTQTaggable::removeTag(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)
virtual voidTQPresenter::reset()
virtual voidTQPresenter::resetCuts()
virtual voidTQPresenter::resetProcesses()
virtual voidTQTaggable::resetReadFlags()
virtual intsanitizeCuts()
virtual intsanitizeProcesses()
voidTQTaggable::setGlobalIgnoreCase(bool globalIgnoreCase = true)
voidTQTaggable::setGlobalOverwrite(bool globalOverwrite = true)
TQFolder*TQPresenter::setNormalizationInfo(const TString& path)
voidTQPresenter::setNormalizationInfo(TQFolder* f)
virtual voidTQPresenter::setReader(TQSampleDataReader* reader)
virtual voidTQPresenter::setSampleFolder(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 = "")
voidsetVerbose(bool v)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
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 = "")
TQCutflowPrinter()
TQCutflowPrinter(TQSampleFolder* samples)
TQCutflowPrinter(TQSampleDataReader* reader)
TQCutflowPrinter(const TQCutflowPrinter&)
protected:
intTQTaggable::countTagDown(const TString& key)
intTQTaggable::countTagUp(const TString& key)
TQValue*TQTaggable::findTag(TString name)
voidgetCounterValueAndErrors(const TString& processName, const TString& cutName, double& count, double& statErr, double& theoSysErr, int& raw, TString& info, TQTaggable tags, TList* sfList)
voidgetCounterValueAndStatError(const TString& processName, const TString& cutName, double& count, double& statErr, int& raw, TString& info, TQTaggable tags, TList* sfList)
virtual TQNamedTaggable*TQPresenter::getCut(const TString& name)
virtual const TQNamedTaggable*TQPresenter::getCutConst(const TString& name) const
TList*TQTaggable::getListOfTags()
boolTQTaggable::getOp(const TString& op, int& opCode)
virtual TQNamedTaggable*TQPresenter::getProcess(const TString& name)
virtual const TQNamedTaggable*TQPresenter::getProcessConst(const TString& name) const
boolgetScaleFactors(TQTaggable& tags, TQNamedTaggable* cut, TList* sfList, double& value, double& error, bool& applied, bool& equal, TString& info)
boolgetScaleFactors(TQTaggable& tags, TQNamedTaggable* cut, TQNamedTaggable* process, double& value, double& error, bool& applied, bool& equal, TString& info)
boolTQTaggable::getTag(const TString& key, TQValue*& tag)
boolgetValues(TQTaggable& tags, TQNamedTaggable* cut, TQNamedTaggable* process, double& value, double& error, int& raw, TString& info, TString& defaultTitle, TList* sfList)
boolgetValues(TQTaggable& tags, TQNamedTaggable* cut, TQNamedTaggable* process, double& number, double& statError, double& expSysError, double& theoSysError, bool includeScaleUncertainty, int& raw, TString& info, TString& defaultTitle, TList* sfList)
TStringmakeCellContents(TQTaggable& tags, TQNamedTaggable* cut, TQNamedTaggable* process)
TStringmakeSFCellContents(TQTaggable& tags, TQNamedTaggable* cut, TQNamedTaggable* process, TString& info)
intTQTaggable::setTag(TQValue* tag, const TString& destination = "")
intTQTaggable::setTag(TQValue* tag, const TString& destination, bool overwrite)
private:
virtual Bool_tCheckTObjectHashConsistency() const

Data Members

Class Charts

Inheritance Chart:
TQTaggable
TQPresenter
TQCutflowPrinter

Function documentation

TQCutflowPrinter()
 Default constructor of TQCutflowPrinter class:
TQCutflowPrinter(TQSampleFolder* samples)
 Constructor of TQCutflowPrinter class:
TQCutflowPrinter(TQSampleDataReader* reader)
 Constructor of TQCutflowPrinter class:
void addCutflowCut(TString cutName, TString cutTitle, int sfPolicy = 0)
 add a cut to be listed in the cutflow.
void addCutflowProcess(TString processName, TString processTitle)
 Add a process to be listed in the cutflow. The first argument (processName)
 specifies the process path (e.g. "bkg/ee/top"), the second (optional) argument
 may be used to specify a title shown in the table for this process. You can
 specify additional format specifications (e.g. "bkg/ee/top,raw" to obtain raw
 numbers).

 There are several additional numbers which can be plotted:

 - the ratio of two processes at a given cut stage

 addCutflowProcess("$ratio(data/ee,bkg/ee)");

 - the signal significance at a given cut stage

 addCutflowProcess("$signif(sig/ee,bkg/ee)");

 - the pull of two processes

 addCutflowProcess("$pull(data/ee,bkg/ee)");

TQTable * createTable(const TString& tags = "")
 create a TQTable object
TQTable * createTable(TQTaggable* tags)
 create a TQTable object
bool getScaleFactors(TQTaggable& tags, TQNamedTaggable* cut, TList* sfList, double& value, double& error, bool& applied, bool& equal, TString& info)
 retrieve scale factors for some cut/process combination
bool getValues(TQTaggable& tags, TQNamedTaggable* cut, TQNamedTaggable* process, double& value, double& error, int& raw, TString& info, TString& defaultTitle, TList* sfList)
bool getValues(TQTaggable& tags, TQNamedTaggable* cut, TQNamedTaggable* process, double& number, double& statError, double& expSysError, double& theoSysError, bool includeScaleUncertainty, int& raw, TString& info, TString& defaultTitle, TList* sfList)
 retrieve counter values for some cut/process combination
void getCounterValueAndStatError(const TString& processName, const TString& cutName, double& count, double& statErr, int& raw, TString& info, TQTaggable tags, TList* sfList)
void getCounterValueAndErrors(const TString& processName, const TString& cutName, double& count, double& statErr, double& theoSysErr, int& raw, TString& info, TQTaggable tags, TList* sfList)
void setVerbose(bool v)
int sanitizeProcesses()
 sanitize all processes
int sanitizeCuts()
 sanitize all cuts
TQTable * createTable(TQTaggable tags)
 create a TQTable object
~TQCutflowPrinter()
 Destructor of TQCutflowPrinter class:
bool readProcessesFromFile(TString fileName, TString channel)
 read processes from a config file (deprecated, please use importProcessesFromFile)
bool readCutsFromFile(TString fileName, bool addscline = false)
 read cuts from a config file (deprecated, please use importCutsFromFile)
void dumpProcesses(ostream& out)
 dump processes to a config file (deprecated, please use exportProcessesToFile)
void dumpCuts(ostream& out)
 dump cuts to a config file (deprecated, please use exportCutsToFile)
bool getScaleFactors(TQTaggable& tags, TQNamedTaggable* cut, TList* sfList, double& value, double& error, bool& applied, bool& equal, TString& info)
TString makeCellContents(TQTaggable& tags, TQNamedTaggable* cut, TQNamedTaggable* process)
TString makeSFCellContents(TQTaggable& tags, TQNamedTaggable* cut, TQNamedTaggable* process, TString& info)
TQCutflowPrinter()