Update 'BackgroundType Class'
							parent
							
								
									04c47c8435
								
							
						
					
					
						commit
						849e94a730
					
				@ -1,40 +1,42 @@
 | 
				
			|||||||
## Global variables:
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
*class BackgroundType{
 | 
					## Table of Contents
 | 
				
			||||||
*protected:
 | 
					 | 
				
			||||||
*public:
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* [Classes](#classes)
 | 
				
			||||||
 | 
					    * [BackgroundType](#backgroundtype)
 | 
				
			||||||
 | 
					* [Functions and their parameters:](#functions-and-their-parameters)
 | 
				
			||||||
 | 
					    * [void BackgroundType::setBackgroundType()](#void-backgroundtype-setbackgroundtype)
 | 
				
			||||||
 | 
					    * [vector<string> BackgroundType::getBkgListOfParams()](#vectorstring-backgroundtype-getbkglistofparams)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Classes
 | 
					# Classes
 | 
				
			||||||
### BackgroundType
 | 
					### BackgroundType
 | 
				
			||||||
* **Private members:**
 | 
					The protected members are booleans deciding what RooFit function should be used. Public memebrs are a boolean deciding whether to use crystal-ball as background or no backgorund at all, list of constrained parameters and their pdfs and the vector of the background fit variables. 
 | 
				
			||||||
 | 
					* **Protected members:**
 | 
				
			||||||
 | 
					    * bool SingleExponential
 | 
				
			||||||
 | 
					    * bool DoubleExponential
 | 
				
			||||||
 | 
					    * bool ExpGaus
 | 
				
			||||||
 | 
					    * bool FixBkgParameters
 | 
				
			||||||
 | 
					    * bool ConstrBkgParameters
 | 
				
			||||||
* **Public  members:**
 | 
					* **Public  members:**
 | 
				
			||||||
    * bool bkgOneCB
 | 
					    * bool bkgOneCB
 | 
				
			||||||
    * //Constrain PDFs
 | 
					    * RooArgSet \* BkgConsParameter = new RooArgSet()
 | 
				
			||||||
 | 
					    * RooArgList \* BkgConsPDF = new RooArgList()
 | 
				
			||||||
 | 
					    * bool BkgAtLeastOneConstrainFound = false
 | 
				
			||||||
 | 
					    * vector<RooRealVar *>BkgRooVars = {}
 | 
				
			||||||
 | 
					    * bool NoBackground    
 | 
				
			||||||
* **Functions:**
 | 
					* **Functions:**
 | 
				
			||||||
    * **RooArgSet \* BkgConsParameter = new RooArgSet()**
 | 
					    * [void setBackgroundType(string bkgType, bool TM, bool FixParams, bool ConstrParams)](#void-backgroundtype-setbackgroundtype)
 | 
				
			||||||
        * **Parameters**
 | 
					    * [vector\<string> getBkgListOfParams()](#vectorstring-backgroundtype-getbkglistofparams)
 | 
				
			||||||
            * );
 | 
					 | 
				
			||||||
        * **Return**
 | 
					 | 
				
			||||||
    * **RooArgList \* BkgConsPDF = new RooArgList()**
 | 
					 | 
				
			||||||
        * **Parameters**
 | 
					 | 
				
			||||||
            * );
 | 
					 | 
				
			||||||
        * **Return**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Functions and their parameters:
 | 
					# Functions and their parameters:
 | 
				
			||||||
### void BackgroundType::setBackgroundType()
 | 
					### void BackgroundType::setBackgroundType()
 | 
				
			||||||
 | 
					Parses the string bkgType and sets the Protected members of the class. 
 | 
				
			||||||
* **Parameters**
 | 
					* **Parameters**
 | 
				
			||||||
    * string bkgType
 | 
					    * string bkgType
 | 
				
			||||||
    * bool TM
 | 
					    * bool TM
 | 
				
			||||||
    * bool FixParams
 | 
					    * bool FixParams
 | 
				
			||||||
    * bool ConstrParams//construct from a string
 | 
					    * bool ConstrParams
 | 
				
			||||||
* **Return**
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
### vector<string> BackgroundType::getBkgListOfParams()
 | 
					### vector\<string> BackgroundType::getBkgListOfParams()
 | 
				
			||||||
 | 
					 | 
				
			||||||
* **Parameters**
 | 
					 | 
				
			||||||
    * 
 | 
					 | 
				
			||||||
* **Return**
 | 
					* **Return**
 | 
				
			||||||
 | 
					    * A vector of all variable names from BkgRooVars
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user