Update 'SignalType Class'

Renata Kopecná 2022-01-28 18:17:22 +01:00
parent 501b8ffcb8
commit fa2927652f

@ -1,54 +1,61 @@
## Global variables:
*class SignalType{ ## Table of Contents
*protected:
*public: * [Classes](#classes)
* [SignalType](#signaltype)
* [Functions and their parameters:](#functions-and-their-parameters)
* [void SignalType::setSignalType()](#void-signaltype-setsignaltype)
* [vector SignalType::getSigListOfParams()](#vector-signaltype-getsiglistofparams)
* [double SignalType::getEffSigmaFromResult()](#double-signaltype-geteffsigmafromresult)
# Classes # Classes
### SignalType ### SignalType
* **Private members:** The protected members are booleans deciding what RooFit function should be used. Public memebrs are a boolean deciding what signal part is used, whether there is any gaussian involved, whether there are any fixed or contrained paramatrs.
The public members are the list of constrained parameters and their pdfs, boolean checking whether there is any contrain, and the vector of the signal fit variables.
* **Protected members:**
* bool SingleGaussian;
* bool DoubleGaussian;
* bool DoubleCB;
* bool LeftCB;
* bool RightCB;
* bool OneCB;
* bool anyGaussain; //false => it's a CB
* bool FixParameters;
* bool ConstrParameters;
* **Public members:** * **Public members:**
* bool NoSig * bool NoSig
* //Constrain PDFs
* **Functions:**
* **RooArgSet \* ConsParameter = new RooArgSet()** * **RooArgSet \* ConsParameter = new RooArgSet()**
* **Parameters**
* );
* **Return**
* **RooArgList \* ConsPDF = new RooArgList()** * **RooArgList \* ConsPDF = new RooArgList()**
* **Parameters** * bool AtLeastOneConstrainFound = false;
* ); * vector<RooRealVar*> SigRooVars = {};
* **Return**
* **Functions:**
* SignalType() //default constructor
* [void setSignalType(string sigType, bool FixParams, bool ConstrParams)](#void-signaltype-setsignaltype) //construct from a string
* [vector\<string> getSigListOfParams()](#vector-signaltype-getsiglistofparams)
* [double getEffSigmaFromResult()](#double-signaltype-geteffsigmafromresult)
* ~SignalType() //default destructor
# Functions and their parameters: # Functions and their parameters:
### RooRealVar\* getVarFromResult()
* **Parameters**
* RooFitResult \*fitResult
* string name);
* **Return**
### void SignalType::setSignalType() ### void SignalType::setSignalType()
Parses the string sigType and sets the Protected members of the class.
* **Parameters** * **Parameters**
* string sigType * string sigType
* bool FixParams * bool FixParams
* bool ConstrParams //construct from a string * bool ConstrParams
* **Return** * **Return**
### vector<string> SignalType::getSigListOfParams() ### vector\<string> SignalType::getSigListOfParams()
* **Parameters**
*
* **Return** * **Return**
* A vector of all variable names from SigRooVars
### double SignalType::getEffSigmaFromResult() ### double SignalType::getEffSigmaFromResult()
Depending on the set type of pdf (calculates and) returns the sigma of the gauss/crysta ball.
* **Parameters**
* //Get effective sigma
* **Return** * **Return**
* Effective sigma of the gauss/crysta ball