Common Analysis Framework » QFRAMEWORK » TQPlotter

class TQPlotter: public TQPresenter


 TQPlotter:

 The abstract TQPlotter class provides a base class for custom plotters.
 By inheriting from the TQPlotter, a base data management interface is provided.
 For plotting with the ROOT graphics interface, refer to TQROOTPlotter.


Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~TQPlotter()
virtual booladdBackground(TString path, TString options = "")
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)
virtual booladdData(TString path, TString options = "")
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)
virtual booladdSignal(TString path, TString options = "")
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
static voidapplyErrors(const TH1* hSource, TH1* hTarget, const TH1* hSys, TQTaggable& tags)
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
static TQTaggable*createAxisTags(const TString& prefix, const TString& title, double xCoeff, double yCoeff, double constCoeff, double wMin, double wMax, double xCoord, double yCoord, int nDiv = 101)
static boolcreateAxisTags(TQTaggable& tags, const TString& prefix, const TString& title, double xCoeff, double yCoeff, double constCoeff, double wMin, double wMax, double xCoord, double yCoord, int nDiv = 101)
static TStringcreateAxisTagsAsConfigString(const TString& prefix, const TString& title, double xCoeff, double yCoeff, double constCoeff, double wMin, double wMax, double xCoord, double yCoord, int nDiv = 101)
static TStringcreateAxisTagsAsString(const TString& prefix, const TString& title, double xCoeff, double yCoeff, double constCoeff, double wMin, double wMax, double xCoord, double yCoord, int nDiv = 101)
static voidestimateRangeY(TH1* h, double& min, double& max, double tolerance = std::numeric_limits<double>::infinity())
static voidestimateRangeY(TGraphErrors* g, double& min, double& max, double tolerance = std::numeric_limits<double>::infinity())
static voidestimateRangeY(TGraphAsymmErrors* g, double& min, double& max, double tolerance = std::numeric_limits<double>::infinity())
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()
virtual intgetNProcesses(const TString& tagFilter)
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
static voidgetRange(TGraphErrors* g, double& xlow, double& xhigh, double& ylow, double& yhigh, bool get_xrange = true, bool get_yrange = true, double maxQerr = std::numeric_limits<double>::infinity())
TGraphAsymmErrors*getRatioErrorGraph(TH1* hTotakBkg)
TGraphAsymmErrors*getRatioGraph(TH1* h_data, TH1* hTotakBkg, bool invert, double ratioContentThreshold, bool verbose)
virtual TQSampleDataReader*TQPresenter::getReader()
virtual TQSampleFolder*TQPresenter::getSampleFolder()
TStringgetScaleFactorList(TString histname)
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)
TObject*getTObject(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)
static TH1*includeSystematics(const TH1* hTotalBkg, TQFolder* sysFolder, TQTaggable& tags)
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)
TQPlotter&operator=(const TQPlotter&)
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 boolplotAndSaveAs(const TString& histogram, const TString& saveAs, const char* inputTags)
virtual boolplotAndSaveAs(const TString& histogram, const TString& saveAs, const TString& inputTags)
virtual boolplotAndSaveAs(const TString& histogram, const TString& saveAs, TQTaggable& inputTags)
virtual boolplotAndSaveAs(const TString& histogram, const TString& saveAs, TQTaggable* inputTags = 0)
intTQTaggable::printClaim(const TString& definition)
virtual voidTQPresenter::printCuts()
boolTQTaggable::printDiffOfTags(TQTaggable* tags, const TString& options = "")
boolTQTaggable::printDiffOfTags(TQTaggable* tags, TQTaggable& options)
virtual voidprintObjects()
virtual voidTQPresenter::printProcesses()
voidTQTaggable::printTags(TString options = "r")
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 voidreset()
virtual voidTQPresenter::resetCuts()
virtual voidTQPresenter::resetProcesses()
virtual voidTQTaggable::resetReadFlags()
virtual intTQPresenter::sanitizeCuts()
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 = "")
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 = "")
TQPlotter()
TQPlotter(TQSampleFolder* baseSampleFolder)
TQPlotter(TQSampleDataReader* dataSource)
TQPlotter(const TQPlotter&)
protected:
virtual voidaddObject(TNamed* obj, const TString& key = "")
virtual voidaddObject(TGraph* obj, TString key = "")
virtual voidaddObject(TH1* obj, const TString& key = "")
virtual voidaddObject(TCollection* obj, const TString& key = "")
voidapplyBlinding(TQTaggable& tags, TCollection* sigHistos, TCollection* backgroundHistos, TCollection* dataHistos)
virtual voidapplyGeometry(TQTaggable& tags, TAxis* a, const TString& key, double distscaling = 1., double sizescaling = 1., bool force = true)
virtual voidapplyGeometry(TQTaggable& tags, TH1* hist, const TString& key, double xscaling = 1., double yscaling = 1., bool force = true)
virtual voidapplyGeometry(TQTaggable& tags, TGraph* g, const TString& key, double xscaling = 1., double yscaling = 1., bool force = true)
virtual voidapplyStyle(TQTaggable& tags, TAxis* a, const TString& key, double distscaling = 1., double sizescaling = 1.)
virtual voidapplyStyle(TQTaggable& tags, TH1* hist, const TString& key, double xscaling = 1., double yscaling = 1.)
virtual voidapplyStyle(TQTaggable& tags, TGraph* g, const TString& key, double xscaling = 1., double yscaling = 1.)
virtual boolcheckConsistency(TH1*& hMaster, TObjArray* histograms)
virtual voidclearObjects()
virtual TObjArray*collectHistograms(TQTaggable& tags)
virtual boolcollectOptScanSimplifiedSystHistograms(vector<TH1*>& histos, TQTaggable& tags)
intTQTaggable::countTagDown(const TString& key)
intTQTaggable::countTagUp(const TString& key)
virtual voiddeleteObjects()
virtual voiddrawLabels(TQTaggable& tags)
TQValue*TQTaggable::findTag(TString name)
virtual TQNamedTaggable*TQPresenter::getCut(const TString& name)
virtual const TQNamedTaggable*TQPresenter::getCutConst(const TString& name) const
virtual TObjArray*getHistograms(TObjArray* processes, const TString& tagFilter, const TString& histogramName, const TString& namePrefix, TQTaggable& aliases, TQTaggable& options)
virtual doublegetHistogramUpperLimit(TQTaggable& tags, TList* histograms, double lower, bool includeErrors = false)
TList*TQTaggable::getListOfTags()
TH1*getMaximumHistogram(TCollection* histos)
boolTQTaggable::getOp(const TString& op, int& opCode)
virtual TQNamedTaggable*TQPresenter::getProcess(const TString& name)
virtual const TQNamedTaggable*TQPresenter::getProcessConst(const TString& name) const
boolTQTaggable::getTag(const TString& key, TQValue*& tag)
boolincludeSystematics(TQTaggable& tags)
TStringmakeHistogramIdentifier(TQNamedTaggable* process)
virtual boolplotAndSaveAsInternal(const TString& histogram, const TString& saveAs, TQTaggable& tags)
virtual voidremoveObject(const TString& key, bool deleteObject = false)
voidsetAxisLabels(TQTaggable& tags)
voidsetErrors(TQTaggable& tags, const TString& hname)
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
TQPlotter
TQROOTPlotter
TQCompPlotter
TQDefaultPlotter
TQHWWPlotter
TQTikZPlotter

Function documentation

TQPlotter()
 Constructor of TQPlotter class
TQPlotter(TQSampleFolder* baseSampleFolder)
 Constructor of TQPlotter class
TQPlotter(TQSampleDataReader* dataSource)
 Constructor of TQPlotter class
void reset()
TString makeHistogramIdentifier(TQNamedTaggable* process)
bool addData(TString path, TString options = "")
 add a new data process to the plotter
bool addBackground(TString path, TString options = "")
 add a new background process to the plotter
bool addSignal(TString path, TString options = "")
 add a new signal process to the plotter
TString getScaleFactorList(TString histname)
 retrieve a comma-separated list of the scaled contributions (titles only)
bool includeSystematics(TQTaggable& tags)
 include the systematics entry from the systematics folder
TH1* includeSystematics(const TH1* hTotalBkg, TQFolder* sysFolder, TQTaggable& tags)
TObjArray * getHistograms(TObjArray* processes, const TString& tagFilter, const TString& histogramName, const TString& namePrefix, TQTaggable& aliases, TQTaggable& options)
 retrieve histograms using the internal reader
 histogram options can be controlled by tags
bool collectOptScanSimplifiedSystHistograms(vector<TH1*>& histos, TQTaggable& tags)
 collect one or multiple histograms based on a simplified systematics estimation
 for use in optimizations (intended for optScan subplots).
 Note: caller has to take ownership of histograms being placed in the
 referenced vector<TH1*> !
bool checkConsistency(TH1*& hMaster, TObjArray* histograms)
 check the consistency of an array of histograms with the master histogram
 will create the master histogram if not present
double getHistogramUpperLimit(TQTaggable& tags, TList* histograms, double lower, bool includeErrors = false)
 calculate the "blocks" (x-axis ranges and corresponding y-values)
 these are employed to avoid collisions of the bins with labels and other graphic elements (i.e. the legend)
bool plotAndSaveAs(const TString& histogram, const TString& saveAs, const TString& inputTags)
 plot and save the given histogram using the given tags
 the tags are forwarded to and interpreted by the makeplot function
bool plotAndSaveAs(const TString& histogram, const TString& saveAs, const char* inputTags)
 plot and save the given histogram using the given tags
 the tags are forwarded to and interpreted by the makeplot function
bool plotAndSaveAs(const TString& histogram, const TString& saveAs, TQTaggable& inputTags)
 plot and save the given histogram using the given tags
 the tags are forwarded to and interpreted by the makeplot function
bool plotAndSaveAs(const TString& histogram, const TString& saveAs, TQTaggable* inputTags = 0)
 plot and save the given histogram using the given tags
 the tags are forwarded to and interpreted by the makeplot function
~TQPlotter()
 Destructor of TQPlotter class:
 this->clearObjects();
 if(this->objects) delete this->objects;
void estimateRangeY(TH1* h, double& min, double& max, double tolerance = std::numeric_limits<double>::infinity())
void estimateRangeY(TGraphErrors* g, double& min, double& max, double tolerance = std::numeric_limits<double>::infinity())
 estimate the y-range of a TGraphErrors
void estimateRangeY(TGraphAsymmErrors* g, double& min, double& max, double tolerance = std::numeric_limits<double>::infinity())
 estimate the y-range of a TGraphAsymmErrors
void getRange(TGraphErrors* g, double& xlow, double& xhigh, double& ylow, double& yhigh, bool get_xrange = true, bool get_yrange = true, double maxQerr = std::numeric_limits<double>::infinity())
 extract the range from a TGraphErrors
void applyErrors(const TH1* hSource, TH1* hTarget, const TH1* hSys, TQTaggable& tags)
void setErrors(TQTaggable& tags, const TString& hname)
 the histograms retrieved using the TQSampleDataReader class
 have the statistical uncertainty filled into bin errors by default
 this function either sets them to zero (for statMCerrors=false)
 or adds the systematic uncertainties in quadrature (for sysMCerrors=true)
void addObject(TNamed* obj, const TString& key = "")
 add an object to the list of graphics objects maintained by the plotter
void addObject(TGraph* obj, TString key = "")
 add an object to the list of graphics objects maintained by the plotter
void addObject(TCollection* obj, const TString& key = "")
 add a collection to the list of graphics objects maintained by the plotter
void addObject(TH1* obj, const TString& key = "")
 add a histogram to the list of graphics objects maintained by the plotter
void removeObject(const TString& key, bool deleteObject = false)
 remove an object from the list of graphics object maintained by the plotter
void clearObjects()
 clear all objects maintained by the plotter
void deleteObjects()
 clear all objects maintained by the plotter
void printObjects()
 print all objects maintained by the plotter
TObject* getTObject(const TString& key)
 retrieve a graphics object by name
void applyStyle(TQTaggable& tags, TAxis* a, const TString& key, double distscaling = 1., double sizescaling = 1.)
 apply a tag-defined style to an axis
 tags are read by the given key
 sizes and distances are scaled according to the given parameters
@tags: style.*.showTitle: control whether axis title will be shown
@tags: style.*.showLabels: control whether axis labels will be shown
@tags: style.*.showTicks: control whether axis ticks
@tags: style.*.nDiv: number of divisions (encoded in 5 digit number, default 00510) for this axis
void applyGeometry(TQTaggable& tags, TAxis* a, const TString& key, double distscaling = 1., double sizescaling = 1., bool force = true)
 apply a tag-defined geometry to an axis
 tags are read by the given key
 sizes and distances are scaled according to the given parameters
@tags: style.textSize: text size (default 0.05)
@tags: geometry.*.titleSize: title size (default:textSize)
@tags: geometry.*.labelSize: label size (default:textSize)
@tags: geometry.*.titleOffset: title offset
@tags: geometry.*.labelOffset: label offset
@tags: geometry.*.tickLength: label offset
void applyGeometry(TQTaggable& tags, TH1* hist, const TString& key, double xscaling = 1., double yscaling = 1., bool force = true)
 apply a tag-defined geometry to a histogram
 tags are read by the given key
 sizes and distances are scaled according to the given parameters
void applyGeometry(TQTaggable& tags, TGraph* g, const TString& key, double xscaling = 1., double yscaling = 1., bool force = true)
 apply a tag-defined geometry to a graph
 tags are read by the given key
 sizes and distances are scaled according to the given parameters
void applyStyle(TQTaggable& tags, TH1* hist, const TString& key, double xscaling = 1., double yscaling = 1.)
 apply a tag-defined style to a histogram
 tags are read by the given key
 sizes and distances are scaled according to the given parameters
@tags: style.*.fillColor: set fill color using TH1::SetFillColor
@tags: style.*.fillStyle: set fill style using TH1::SetFillStyle
@tags: style.*.lineColor: set line color using TH1::SetLineColor
@tags: style.*.lineStyle: set line style using TH1::SetLineStyyle
@tags: style.*.markerColor: set marker color using TH1::SetMarkerColor
@tags: style.*.markerSize: set marker size using TH1::SetMarkerSize
@tags: style.*.markerStyle: set marker size using TH1::SetMarkerStyle
void applyStyle(TQTaggable& tags, TGraph* g, const TString& key, double xscaling = 1., double yscaling = 1.)
 apply a tag-defined style to a graph
 tags are read by the given key
 sizes and distances are scaled according to the given parameters
void setAxisLabels(TQTaggable& tags)
 set the labels of the master histogram according to the avialable tags
TString createAxisTagsAsString(const TString& prefix, const TString& title, double xCoeff, double yCoeff, double constCoeff, double wMin, double wMax, double xCoord, double yCoord, int nDiv = 101)
 convert a variable definition into tags for an additional axis
TString createAxisTagsAsConfigString(const TString& prefix, const TString& title, double xCoeff, double yCoeff, double constCoeff, double wMin, double wMax, double xCoord, double yCoord, int nDiv = 101)
 convert a variable definition into tags for an additional axis
TQTaggable* createAxisTags(const TString& prefix, const TString& title, double xCoeff, double yCoeff, double constCoeff, double wMin, double wMax, double xCoord, double yCoord, int nDiv = 101)
 convert a variable definition into tags for an additional axis
bool createAxisTags(TQTaggable& tags, const TString& prefix, const TString& title, double xCoeff, double yCoeff, double constCoeff, double wMin, double wMax, double xCoord, double yCoord, int nDiv = 101)
 convert a variable definition into tags for an additional axis
int getNProcesses(const TString& tagFilter)
 return the number of added processes matching the tag filter
int sanitizeProcesses()
 sanitize all processes
void applyBlinding(TQTaggable& tags, TCollection* sigHistos, TCollection* backgroundHistos, TCollection* dataHistos)
determine total background and total signal to apply dynamic blinding criteria
 note that this function modifies the data histograms in-place, i.e., you must pass in a TCollection of the data histograms to be (potentially) blinded. No internal lists of histos are updated/changed in this function!
TObjArray* collectHistograms(TQTaggable& tags)
 use the TQSampleDataReader to retrieve all histograms from the sample folder
void drawLabels(TQTaggable& tags)
 draw the labels given by the tags
 does nothing by default, can be overridden by derived classes
TGraphAsymmErrors* getRatioErrorGraph(TH1* hTotakBkg)
 get a TGraphAsymmErrors with the relative errors of a histogram
TGraphAsymmErrors* getRatioGraph(TH1* h_data, TH1* hTotakBkg, bool invert, double ratioContentThreshold, bool verbose)
 produce a TGraphAsymmErrors as the ratio between a data and an MC histogram
TH1* getMaximumHistogram(TCollection* histos)
bool plotAndSaveAsInternal(const TString& histogram, const TString& saveAs, TQTaggable& tags)
TQPlotter()