Common Analysis Framework » QFRAMEWORK » TQTreeFormulaObservable

class TQTreeFormulaObservable: public TQTreeObservable


 TQTreeFormulaObservable:

 When you specify an arithmetic expression using some branch names
 in a cut definition file, in a histogram definition file, in an
 event list definition file or somewhere in the code, ultimately,
 TQObservable::getObservable will be called on your expression and
 check if another observable with the same expression already exists
 - in which case it will return a pointer to that one - or if it
 needs to instantiate a new TQObservable. In the latter case, it
 will usually instantiate a TQTreeFormulaObservable, which
 internerally uses a TTreeFormula to retrieve its data from the
 tree, but there are other observable classes as well.


Function Members (Methods)

public:
virtual~TQTreeFormulaObservable()
voidTObject::AbstractMethod(const char* method) const
static boolTQObservable::addObservable(TQObservable* obs)
static boolTQObservable::addObservable(TQObservable* obs, const TString& name)
static voidTQObservable::allowErrorMessages(bool val)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
ULong_tTObject::CheckedHash()
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
static voidTQObservable::clearAll()
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
static TStringTQObservable::compileExpression(const TString& input, TQTaggable* tags, bool replaceBools = true)
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
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)
virtual voidTObject::Fatal(const char* method, const char* msgfmt,...) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual boolTQTreeObservable::finalize()
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual TStringgetActiveExpression() const
virtual TObjArray*getBranchNames() const
virtual TQObservable*TQObservable::getClone() const
virtual TStringTQObservable::getCompiledExpression(TQTaggable* tags) const
virtual Long64_tTQTreeObservable::getCurrentEntry() const
virtual Option_t*TObject::GetDrawOption() const
static Longptr_tTObject::GetDtorOnly()
virtual const TString&getExpression() const
static const TQObservable::FactoryBase*getFactory()
virtual const char*TObject::GetIconName() const
static TQObservable::Manager&TQObservable::getManager()
TStringTQObservable::getName() const
virtual const char*TNamed::GetName() const
const TString&TQObservable::getNameConst() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
static TQObservable*TQObservable::getObservable(const TString& exprname, TQTaggable* tags)
virtual Option_t*TObject::GetOption() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual doublegetValue() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual boolhasExpression() const
virtual boolhasFactory() const
virtual ULong_tTNamed::Hash() const
Bool_tTObject::HasInconsistentHash() const
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 boolTQTreeObservable::initialize(TQSample* sample)
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
boolTQObservable::isInitialized() const
Bool_tTObject::IsOnHeap() const
virtual boolTQObservable::isPrefixRequired() const
virtual boolTQObservable::isSetup() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
static TStringTQObservable::makeObservableName(const TString& name)
static boolTQObservable::matchExpressions(const TString& ex1, const TString& ex2, bool requirePrefix = false)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
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)
TQTreeFormulaObservable&operator=(const TQTreeFormulaObservable&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTQTreeObservable::print() const
virtual voidTNamed::Print(Option_t* option = "") const
static voidTQObservable::printObservables(const TString& filter = "*")
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
static TStringTQObservable::replaceBools(TString expression)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
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)
virtual voidsetExpression(const TString& expr)
voidTQObservable::setName(const TString& name)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
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
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TQTreeFormulaObservable()
TQTreeFormulaObservable(const TQTreeFormulaObservable&)
TQTreeFormulaObservable(const TString& expression, bool vectorObs = false)
static TQObservable*tryCreateInstance(TString expr)
virtual TQObservable*tryCreateInstanceVirtual(const TString& expr) const
static TStringTQObservable::unreplaceBools(TString expression)
virtual voidTObject::UseCurrentStyle()
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:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual boolfinalizeSelf()
virtual intgetNevaluations() const
virtual TQObservable::ObservableTypegetObservableType() const
virtual doublegetValueAt(int index) const
virtual boolinitializeSelf()
voidTObject::MakeZombie()
private:
virtual Bool_tCheckTObjectHashConsistency() const

Data Members

public:
static TQObservable::Factory<TQTreeFormulaObservable>Factory
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
static TQObservable::ManagerTQObservable::manager
static TQObservable::ObservableTypeTQObservable::scalar
static TQObservable::ObservableTypeTQObservable::unknown
static TQObservable::ObservableTypeTQObservable::vector
protected:
TStringfExpression
TTreeFormula*fFormula
TStringfFullExpressionhelper variable for getExpression since we need to prepend the prefix
boolTQObservable::fIsInitialized
boolTQObservable::fIsManaged
TStringTNamed::fNameobject identifier
TQSample*TQObservable::fSample!
TStringTNamed::fTitleobject title
TTree*TQTreeObservable::fTree
TQToken*TQTreeObservable::fTreeToken
boolfVectorObs
boolfcallGetNdata
static boolTQObservable::gAllowErrorMessages
static TObject::(anonymous)TObject::kOnlyPrepStep

Class Charts

Inheritance Chart:
TObject
TNamed
TQObservable
TQTreeObservable
TQTreeFormulaObservable

Function documentation

TQTreeFormulaObservable()
 default constructor
TQTreeFormulaObservable(const TString& expression, bool vectorObs = false)
 default constructor
bool initializeSelf()
 initialize the formula of this observable
bool finalizeSelf()
 finalize self, delete TTreeFormula member
TString getActiveExpression() const
 retrieve the expression associated with this observable
~TQTreeFormulaObservable()
double getValueAt(int index) const
 retrieve the value of this tree observable
 return NaN in case of failure
int getNevaluations() const
double getValue() const
 retrieve the value of this tree observable
 return NaN in case of failure
TObjArray* getBranchNames() const
 retrieve the list of branch names
 ownership of the list belongs to the caller of the function
const TString& getExpression() const
 retrieve the expression associated with this observable
bool hasExpression() const
 check if this observable type knows expressions (default false)
void setExpression(const TString& expr)
 set the expression to a given string
getObservableType() const
TQTreeFormulaObservable()