QSigExCuts
class description - header file - source file - inheritance tree (.pdf)
protected:
virtual void FormatDir()
Int_t GetCuts()
Int_t GetEquivalences()
public:
QSigExCuts()
QSigExCuts(const QSigExCuts& rhs)
QSigExCuts(TDirectory* dir, const Char_t* cardfilename = "NULL")
virtual ~QSigExCuts()
void AddCut(const Char_t* name, const Char_t* expression)
void AddEquivalence(const Char_t* name, const Char_t* expression)
static TClass* Class()
virtual void CleanDir()
virtual void ClearCardBuf()
void DelCut(const Char_t* name)
void DelEquivalence(const Char_t* name)
virtual Int_t Get()
virtual TClass* IsA() const
virtual void LoadCardFile(const Char_t* cardfilename = "NULL")
void ShowCuts()
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
TDirectory* fCutsDir Pointer to the TDirectory that contains the cuts
QList<QList<TString> > fCutsCard List of cuts in card file format
QList<QList<TString> > fEqCard List of equivalences in card file format
QSigExCuts
This class loads a set of cuts into the TDirectory structure. The
cuts can be defined as ROOT selection expressions. To simplify
these expressions, equivalences (alias expresions) can be created.
The output of this class is a set of TNamed objects located in
subfolders "Cuts Expressions" or "Equivalences" in "Cuts"
void FormatDir()
This protected member function gives to the fMyDir TDirectory the
structure that is needed to store the information produced by this
class. It creates the TDirectory "Event Info" into fMyDir.
void CleanDir()
This function reinitializes the part of the fMyDir TDirectory structure that
belongs to QSigExCuts. It removes the TDirectory "Event Info" and calls
FormatDir().
void ClearCardBuf()
This member function clears the internal variables used to store the
configuration information of this class in card file format
void LoadCardFile(const Char_t* cardfilename)
This function reads the card file with filename cardfilename and saves the
information related to the cuts and equivalences in QSigexCuts internal
member variables.
Equivalences: Syntax of card file entries:
equivalence [name] [expression]
where [name] is the name assigned to the equivalence and where
[expression] is its expression
Cuts: Syntax of card file entries:
cut [name] [cexpr]
where [name] is the name of the cut and where [cexpr] is the
conditional expression representing the cut
WARNING: DON'T USE SPACES/TABS IN YOUR EQUIVALENCES/CUTS EXPRESSIONS
Example: If you want to set an upper limit of 10 on a radius defined by the
3 coordinates x,y,z, you can define the following entries in the card file:
equivalence R sqrt(x*x+y*y+z*z)
cut cutR R<10
Int_t GetEquivalences()
This protected function loads the equivalences and stores the information
into the TDirectory "Cuts/Equivalences" of fMyDir TDirectory structure. The
function returns the number of equivalences that have been loaded.
Int_t GetCuts()
This protected function loads the cuts and stores the information in the
TDirectory "Cuts/Cuts Expressions" of fMyDir TDirectory structure.
Int_t Get()
This function stores the equivalences and cuts of internal member variables
in the TDirectory structure, by calling protected functions
GetEquivalences() and GetCuts()
void AddCut(const Char_t* name, const Char_t* expression)
This function adds a cut in the internal member variables, given its name
and its expression
void AddEquivalence(const Char_t* name, const Char_t* expression)
This function adds an equivalence in the internal member variables, given its name
and its expression
void DelCut(const Char_t* name)
This function removes a cut from the TDirectory structure and from the card file entries in the
internal member variables, given its name
void DelEquivalence(const Char_t* name)
This function removes an equivalence from the TDirectory structure and from the card file entries in the
internal member variables, given its name
void ShowCuts()
This function prints the list of cuts that are stored
in the TDirectory "Event Info".
Author: Pierre-Luc Drouin
Last update: Fri Nov 17 16:35:13 2006
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.