Common Analysis Framework » QFRAMEWORK » TQMVA

class TQMVA: public TQNamedTaggable


 TQMVA

 The TQMVA is a wrapper class providing an interface of the TQSampleFolder structure
 to a TMVA object.

 This class can be used as follows:
 1. Instantiate an object of TQMVA, providing a TQSampleFolder
 either directly to the constructor or via setSampleFolder
 2. Call the member function createFactory, providing the name of
 the desired output file and the TMVA options to be passed through.
 You may also set the factory manually via setFactory instead.
 The factory may at any time be retrieved via getFactory.
 3. Setup the TQMVA
 - Aquire or define an instance of TQCut and assign it
 to the TQMVA via the member function setBaseCut.
 You may instruct the TQMVA to use a derived cut by calling
 the TQMVA::useCut function on some cut name
 - Add the variables using TQMVA::bookVariable
 - Call the addSignal and addBackground functions to announce
 paths under which signal/background trees may be found.
 This method is superior to adding the trees directly because
 the trees will automatically be obtained from the samples.
 4. Call TQMVA::readSamples to propagate the setup to the TMVA::Factory
 and read the input samples. As an argument, you may pass an EventSelector,
 a simple class-type object that will sort your events into a
 'training' and a 'testing' category. By default, an even-odd-rule will
 be used.
 5. Call TQMVA::prepareTrees("XYZ") to replace TMVA::prepareTrainingAndTestTree,
 where the option string "XYZ" will be forwarded to the latter function.
 6. Retrieve the TMVA::Factory via TQMVA::getFactory.
 7. Perform your analysis on the TMVA::Factory directly.

 Please note that after retrieving the TMVA::Factory, you may delete the TQMVA object.
 This will NOT delete your TMVA::Factory, which you can use for further analysis.
 It is the users responsibility to delete the TMVA::Factory and close and delete
 the output file. If the TMVA::Factory was created with TQMVA::createFactory,
 this can be achieved by calling TQMVA::deleteFactory and TQMVA::closeOutputFile.


Function Members (Methods)

public:
virtual~TQMVA()
voidTObject::AbstractMethod(const char* method) const
voidaddBackground(const TString& path)
voidaddSignal(const TString& path)
boolTQTaggable::allTagsOfTypeBool()
boolTQTaggable::allTagsOfTypeDouble()
boolTQTaggable::allTagsOfTypeInteger()
boolTQTaggable::allTagsOfTypeString()
boolTQTaggable::allTagsValidBools()
boolTQTaggable::allTagsValidDoubles()
boolTQTaggable::allTagsValidIntegers()
virtual voidTObject::AppendPad(Option_t* option = "")
voidbookSpectator(const TString& name, const TString& expression, double min = 0, double max = 0)
voidbookSpectator(const char* name, const char* expression, double min = 0, double max = 0)
voidbookSpectator(const TString& name, const TString& expression, const TString& title, double min = 0, double max = 0)
voidbookSpectator(const char* name, const char* expression, const char* title, double min = 0, double max = 0)
voidbookSpectator(const TString& name, const TString& expression, const TString& title, const TString& unit, double min = 0, double max = 0)
voidbookSpectator(const char* name, const char* expression, const char* title, const char* unit, double min = 0, double max = 0)
voidbookVariable(const TString& name, const TString& expression, double min = 0, double max = 0)
voidbookVariable(const char* name, const char* expression, double min = 0, double max = 0)
voidbookVariable(const TString& name, const TString& expression, const TString& title, double min = 0, double max = 0)
voidbookVariable(const char* name, const char* expression, const char* title, double min = 0, double max = 0)
voidbookVariable(const TString& name, const TString& expression, const TString& title, const TString& unit, double min = 0, double max = 0)
voidbookVariable(const char* name, const char* expression, const char* title, const char* unit, double min = 0, double max = 0)
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
voidTQTaggable::clear()
virtual voidTNamed::Clear(Option_t* option = "")
voidclearBackground()
voidclearSignal()
intTQTaggable::clearTags()
virtual TObject*TNamed::Clone(const char* newname = "") const
voidcloseOutputFile()
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
intTQTaggable::countMatchingTags(const TString& name) const
boolcreateFactory(const TString& outFileName, const TString& options = "")
virtual voidTObject::Delete(Option_t* option = "")MENU
voiddeleteFactory()
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
virtual voidTObject::Dump() constMENU
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)
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)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TQTaggable*getAliases()
virtual TQCut*getBaseCut()
virtual TQTaggable*TQTaggable::getBaseTaggable() const
virtual TList*TQTaggable::getDescendantTaggables()
virtual Option_t*TObject::GetDrawOption() const
static Longptr_tTObject::GetDtorOnly()
TMVA::Factory*getFactory()
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 = "")
TList*getListOfSamples(TQMVA::SampleType type)
virtual TList*TQTaggable::getListOfTaggables(const TString& name)
TList*TQTaggable::getListOfTagNames()
virtual TList*TQTaggable::getListOfUnreadKeys(const TString& filter = "")
virtual TStringTQNamedTaggable::getName() const
virtual const char*TNamed::GetName() const
virtual const TString&TQNamedTaggable::getNameConst() const
intTQTaggable::getNTags() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
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)
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 = ", ")
TStringgetVariableExpression(const TString& var)
TStringgetVariableExpression(const char* var)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
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
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)
voidTObject::MayNotUse(const char* method) const
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)
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)
TQMVA&operator=(const TQMVA&)
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()
voidprepareTrees(const TString& options = "")
virtual voidTNamed::Print(Option_t* option = "") const
intTQTaggable::printClaim(const TString& definition)
boolTQTaggable::printDiffOfTags(TQTaggable* tags, const TString& options = "")
boolTQTaggable::printDiffOfTags(TQTaggable* tags, TQTaggable& options)
voidprintInternalVariables() const
voidprintListOfSamples(TQMVA::SampleType type)
voidprintListOfVariables() const
voidTQTaggable::printTags(TString options = "r")
virtual Int_tTObject::Read(const char* name)
intreadSample(TQSample* s, TQMVA::SampleType type, const TQMVA::EventSelector& sel)
intreadSamples()
intreadSamples(const TQMVA::EventSelector& evtsel)
intreadSamplesOfType(TQMVA::SampleType type)
intreadSamplesOfType(TQMVA::SampleType type, const TQMVA::EventSelector& sel)
virtual voidTObject::RecursiveRemove(TObject* obj)
static boolTQTaggable::removeGlobalTaggable(const char* name)
static boolTQTaggable::removeGlobalTaggable(const TString& name)
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)
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 = "")
voidsetAliases(TQTaggable* aliases)
virtual voidsetBaseCut(TQCut* cut)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidsetFactory(TMVA::Factory* mva)
voidTQTaggable::setGlobalIgnoreCase(bool globalIgnoreCase = true)
voidTQTaggable::setGlobalOverwrite(bool globalOverwrite = true)
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)
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)
voidsetVerbose(int verbose)
virtual voidShowMembers(TMemberInspector& insp) const
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
TQMVA()
TQMVA(const TString& name_)
TQMVA(TQSampleFolder* sf)
TQMVA(const TQMVA&)
TQMVA(const TString& name_, TQSampleFolder* sf)
virtual voidTObject::UseCurrentStyle()
virtual TQCut*useCut(const TString& name)
virtual voidTObject::Warning(const char* method, const char* msgfmt,...) const
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
protected:
voidaddVariable(const TString& name, const TString& title, const TString& expression, const TString& unit, char vtype, double min, double max, bool spectator)
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)
TList*TQTaggable::getListOfTags()
boolTQTaggable::getOp(const TString& op, int& opCode)
boolTQTaggable::getTag(const TString& key, TQValue*& tag)
voidinit()
voidTObject::MakeZombie()
intTQTaggable::setTag(TQValue* tag, const TString& destination = "")
intTQTaggable::setTag(TQValue* tag, const TString& destination, bool overwrite)
private:
virtual Bool_tCheckTObjectHashConsistency() const

Data Members

public:
static TQMVA::SampleTypeBackground
static TQMVA::SampleTypeSignal
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
protected:
TQCut*fActiveCut
TQTaggable*fAliases
TQCut*fBaseCut
vector<TString>fBkgPaths
TMVA::DataLoader*fDataLoader
vector<TString>fExpressions
boolTQTaggable::fGlobalIgnoreCase!
boolTQTaggable::fGlobalOverwrite!
TMVA::Factory*fMVA
TStringTNamed::fNameobject identifier
vector<TString>fNames
TFile*fOutputFile
TList*TQTaggable::fReadFlags!
TQSampleFolder*fSampleFolder
vector<TString>fSigPaths
TList*TQTaggable::fTags
TStringTNamed::fTitleobject title
intfVerbose
static TObject::(anonymous)TObject::kOnlyPrepStep
static TQTaggable::(anonymous)TQTaggable::kOpADD
static TQTaggable::(anonymous)TQTaggable::kOpAND
static TQTaggable::(anonymous)TQTaggable::kOpCNT
static TQTaggable::(anonymous)TQTaggable::kOpMULT
static TQTaggable::(anonymous)TQTaggable::kOpNone
static TQTaggable::(anonymous)TQTaggable::kOpOR
static TQTaggable::(anonymous)TQTaggable::kOpRec
static map<TString,shared_ptr<TQTaggable> >TQTaggable::sGlobalTaggables

Class Charts

Inheritance Chart:
TObject
TNamed
TQTaggable
TQNamedTaggable
TQMVA

Function documentation

TQMVA()
 default constructor
TQMVA(const TString& name_)
 constructor taking a job name
TQMVA(TQSampleFolder* sf)
 constructor taking a sample folder
TQMVA(const TString& name_, TQSampleFolder* sf)
 constructor taking a job name and sample folder
void init()
~TQMVA()
 default destructor
void printListOfVariables() const
 print the list of currently booked variables
TString getVariableExpression(const TString& var)
 return the full expression for the variable with a given name
TString getVariableExpression(const char* var)
 return the full expression for the variable with a given name
void setBaseCut(TQCut* cut)
 set the base cut
TQCut* getBaseCut()
 get the base cut
TQCut* useCut(const TString& name)
 set and return the active cut (by name)
TMVA::Factory* getFactory()
 get the TMVA::Factory embedded in this class
void setFactory(TMVA::Factory* mva)
 set the embedded TMVA::Factory
TQSampleFolder* getSampleFolder()
 get the TQSampleFolder embedded in this class
void setSampleFolder(TQSampleFolder* sf)
 set the embedded sample folder
void deleteFactory()
 delete the TMVA::Factory embedded in this class
void closeOutputFile()
 close the output file of the TMVA::Factory
 will only work as desired if the factory
 was created with TQMVA::createFactory
bool createFactory(const TString& outFileName, const TString& options = "")
 create an instance of TMVA::Factory
 will open an output file in RECREATE mode
 neither the TMVA nor the TFile will be deleted
 when the TQMVA is deleted, they need to be
 closed/deleted with closeOutputFile and deleteFactory
void addVariable(const TString& name, const TString& title, const TString& expression, const TString& unit, char vtype, double min, double max, bool spectator)
 internal function mapping to the TMVA::Factory/DataLoader management functions
void printInternalVariables() const
 print the list of currently booked variables
 this function accesses the internal variables of the TMVA::Factory
void prepareTrees(const TString& options = "")
 wrapper for TMVA::prepareTrainingAndTestTree (with empty cut)
void bookVariable(const TString& name, const TString& expression, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookVariable(const TString& name, const TString& expression, const TString& title, const TString& unit, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookVariable(const TString& name, const TString& expression, const TString& title, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookVariable(const char* name, const char* expression, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookVariable(const char* name, const char* expression, const char* title, const char* unit, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookVariable(const char* name, const char* expression, const char* title, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookSpectator(const TString& name, const TString& expression, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookSpectator(const TString& name, const TString& expression, const TString& title, const TString& unit, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookSpectator(const TString& name, const TString& expression, const TString& title, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookSpectator(const char* name, const char* expression, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookSpectator(const char* name, const char* expression, const char* title, const char* unit, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void bookSpectator(const char* name, const char* expression, const char* title, double min = 0, double max = 0)
 book a variable
 will internally call TMVA::Factory::addVariable
void addSignal(const TString& path)
 add a signal path
void addBackground(const TString& path)
 add a background path
void clearSignal()
 clear all signal paths
void clearBackground()
 clear all background paths
int readSamples()
 initialize the TMVA::Factory instance
 this will open all required files and access the trees
 and return the number of successfully read events
int readSamples(const TQMVA::EventSelector& evtsel)
 initialize the TMVA::Factory instance
 this will open all required files and access the trees
 and return the number of successfully read events
int readSamplesOfType(TQMVA::SampleType type)
 read all samples of the given type (Signal or Background), using the default (Even-Odd) event selector
int readSamplesOfType(TQMVA::SampleType type, const TQMVA::EventSelector& sel)
 read all samples of the given type (Signal or Background), using the
 given event selector
int readSample(TQSample* s, TQMVA::SampleType type, const TQMVA::EventSelector& sel)
 read a specific sample, assigning it to the given type (Signal or
 Background), using the given event selector
void printListOfSamples(TQMVA::SampleType type)
 print the list of all samples of the given type (Signal or Background)
TList* getListOfSamples(TQMVA::SampleType type)
 get the list of all samples of the given type (Signal or Background)
void setVerbose(int verbose)
 control verbosity
TQTaggable* getAliases()
 retrieve a pointer to the alias container
void setAliases(TQTaggable* aliases)
 set the alias container
TQMVA()