SFrame 3.6
|
Class describing a set of MC generator cuts. More...
#include <core/include/SGeneratorCut.h>
Public Member Functions | |
SGeneratorCut (const TString &treename="", const TString &formula="") | |
Constructor specifying a tree name and a formula. | |
virtual | ~SGeneratorCut () |
Default destructor. | |
const TString & | GetTreeName () const |
Get the name of the tree. | |
const TString & | GetFormula () const |
Get the formula of the generator cut. | |
SGeneratorCut & | operator= (const SGeneratorCut &parent) |
Assignment operator. | |
Bool_t | operator== (const SGeneratorCut &rh) const |
Equality operator. | |
Bool_t | operator!= (const SGeneratorCut &rh) const |
Non-equality operator. |
Class describing a set of MC generator cuts.
Class defining ensamble of cuts applied at MC-generation level. Used for normalising MC samples with different generator cuts to each other.
Definition at line 30 of file SGeneratorCut.h.
SGeneratorCut::SGeneratorCut | ( | const TString & | treename = "" , |
const TString & | formula = "" |
||
) |
Constructor specifying a tree name and a formula.
Not much to say about the constructor. It just initialises the member variables based on the parameters provided to it.
treename | Name of the tree holding the variables that we cut on |
formula | The formula describing the cut |
Definition at line 27 of file SGeneratorCut.cxx.
SGeneratorCut::~SGeneratorCut | ( | ) | [virtual] |
Default destructor.
Another one of the "I don't do anything" destructors.
Definition at line 35 of file SGeneratorCut.cxx.
const TString& SGeneratorCut::GetFormula | ( | ) | const [inline] |
Get the formula of the generator cut.
The cut formula follows the syntax accepted by TTreeFormula. This means that the user can specify formulas like he would when using TTree::Draw. For instance the following would be acceptable:
"MissingEt>10000" "Mu_p_T[0]>20000"
Definition at line 59 of file SGeneratorCut.h.
const TString& SGeneratorCut::GetTreeName | ( | ) | const [inline] |
Get the name of the tree.
Cuts can be defined on variables that are available in one of the input trees. (True particle pT, missing ET, etc.) This property specifies the name of the tree in the input file that holds the variables that we want to cut on.
Definition at line 46 of file SGeneratorCut.h.
Bool_t SGeneratorCut::operator!= | ( | const SGeneratorCut & | rh | ) | const |
Non-equality operator.
The non-equality operator is put in to make code such as
if( inputData1 != inputData2 ) ...
possible.
Definition at line 80 of file SGeneratorCut.cxx.
SGeneratorCut & SGeneratorCut::operator= | ( | const SGeneratorCut & | parent | ) |
Assignment operator.
It is only necessary for some technical affairs.
Definition at line 42 of file SGeneratorCut.cxx.
Bool_t SGeneratorCut::operator== | ( | const SGeneratorCut & | rh | ) | const |
Equality operator.
The equality operator is put in to make code such as
if( inputData1 == inputData2 ) ...
possible.
Definition at line 60 of file SGeneratorCut.cxx.