| 
    GammaCombo
    Rev:Unversioneddirectory
    
   | 
 
The main GammaCombo scanning engine, controlling the application. More...
#include <GammaComboEngine.h>

Public Member Functions | |
| void | addCombiner (int id, Combiner *cmb) | 
| Add a Combiner to the GammaComboEngine object.  More... | |
| void | addPdf (int id, PDF_Abs *pdf, TString title="") | 
| Add a PDF to the GammaComboEngine object.  More... | |
| void | addSubsetPdf (int id, PDF_Abs *pdf, vector< int > &indices, TString title="") | 
| Add a pdf with a subset of the observables to the GammaComboEngine.  More... | |
| void | addSubsetPdf (int id, PDF_Abs *pdf, int i1, TString title="") | 
| void | addSubsetPdf (int id, PDF_Abs *pdf, int i1, int i2, TString title="") | 
| void | addSubsetPdf (int id, PDF_Abs *pdf, int i1, int i2, int i3, TString title="") | 
| void | addSubsetPdf (int id, PDF_Abs *pdf, int i1, int i2, int i3, int i4, TString title="") | 
| void | adjustRanges (Combiner *c, int cId) | 
| Helper function for scan().  More... | |
| void | cloneCombiner (int newId, int oldId, TString name, TString title) | 
| Add a new Combiner to the GammaComboEngine object, that is the clone of an existing one.  More... | |
| GammaComboEngine (TString name, int argc, char *argv[]) | |
| GammaComboEngine (TString name, int argc, char *argv[], bool _runOnDataSet) | |
| OptParser * | getArg () | 
| Combiner * | getCombiner (int id) const | 
| Get a combiner.  More... | |
| PDF_Abs * | getPdf (int id) | 
| Get a PDF.  More... | |
| void | newCombiner (int id, TString name, TString title, int pdf1=-1, int pdf2=-1, int pdf3=-1, int pdf4=-1, int pdf5=-1, int pdf6=-1, int pdf7=-1, int pdf8=-1, int pdf9=-1, int pdf10=-1, int pdf11=-1, int pdf12=-1, int pdf13=-1, int pdf14=-1, int pdf15=-1) | 
| Add a new Combiner, consisting of the specified PDFs.  More... | |
| PDF_Abs * | operator[] (int idx) | 
| void | print () | 
| Print the content of this engine.  More... | |
| void | printCombinations () | 
| Print the availabe Combinations.  More... | |
| void | printPdfs () | 
| Print the available PDFs.  More... | |
| void | run () | 
| run GammaComboEngine, main steering function  More... | |
| void | runApplication () | 
| run the ROOT application, if the -i flag for interactive mode was set.  More... | |
| void | scanStrategy1d (MethodProbScan *scanner, ParameterCache *pCache) | 
| Perform a 1D scan with the following scan strategy.  More... | |
| void | scanStrategy2d (MethodProbScan *scanner, ParameterCache *pCache) | 
| Define scan strategy for a 2D scan.  More... | |
| void | setPdf (PDF_Abs *pdf) | 
| Set the PDF (for datasets method) for the GammaComboEngine.  More... | |
| void | setRunOnDataSet (bool opt) | 
| void | setupToyVariationSets (Combiner *c, int cId) | 
| Helper function for scan(): Makes named sets for any toy variations that were requested.  More... | |
| ~GammaComboEngine () | |
Private Member Functions | |
| void | checkAsimovArg () | 
| Check Asimov arg: when only one –asimov argument is given with the ID 0, it won't do anything.  More... | |
| void | checkColorArg () | 
| Check color argument and exit if a non-existing color was requested through the –color argument.  More... | |
| void | checkCombinationArg () | 
| Check the combination argument (-c), exit if it is bad.  More... | |
| bool | combinerExists (int id) const | 
| Check if a Combiner with a certain ID exits.  More... | |
| void | configureAsimovCombinerNames (Combiner *c, int i) | 
| Configure the names and titles of Asimov combiners.  More... | |
| void | customizeCombinerTitles () | 
| Override default titles of the combinations, if requested on the command line.  More... | |
| void | defineColors () | 
| Define the colors of curves and numbers in the 1D plots.  More... | |
| void | disableSystematics () | 
| disable systematics  More... | |
| void | fixParameters (Combiner *c, int cId) | 
| Helper function for scan().  More... | |
| TString | getStartParFileName (int cId) | 
| Helper function for scan(): Checks if for a given combid (the running index of the -c argument) a start parameter file was configured (-l) argument.  More... | |
| bool | isScanVarObservable (Combiner *c, TString scanVar) | 
| Checks if a given variable name is in the list of observables of a combiner.  More... | |
| void | loadAsimovPoint (Combiner *c, int cId) | 
| Make an Asimov toy: set all observables set to truth values.  More... | |
| void | loadStartParameters (MethodProbScan *s, ParameterCache *pCache, int cId) | 
| Load start parameters.  More... | |
| void | make1dBergerBoosScan (MethodBergerBoosScan *scanner, int cId) | 
| Perform the 1D berger boos scan.  More... | |
| void | make1dCoveragePlot (MethodCoverageScan *scanner, int cId) | 
| Make the 1D coverage plot.  More... | |
| void | make1dCoverageScan (MethodCoverageScan *scanner, int cId) | 
| Perform the coverage scanner.  More... | |
| void | make1dPluginOnlyPlot (MethodPluginScan *sPlugin, int cId) | 
| Make the plugin-only plot that only shows the plugin as continuous lines.  More... | |
| void | make1dPluginPlot (MethodPluginScan *sPlugin, MethodProbScan *sProb, int cId) | 
| Make the default 1D plugin plot:  More... | |
| void | make1dPluginScan (MethodPluginScan *scannerPlugin, int cId) | 
| Perform the 1D plugin scan.  More... | |
| void | make1dProbPlot (MethodProbScan *scanner, int cId) | 
| Make a 1D plot of a Prob scanner.  More... | |
| void | make1dProbScan (MethodProbScan *scanner, int cId) | 
| Perform the prob scan.  More... | |
| void | make2dPluginOnlyPlot (MethodPluginScan *sPlugin, int cId) | 
| Make the plugin-only 2D plot.  More... | |
| void | make2dPluginPlot (MethodPluginScan *sPlugin, MethodProbScan *sProb, int cId) | 
| Make the default 2D plugin plot:  More... | |
| void | make2dPluginScan (MethodPluginScan *scannerPlugin, int cId) | 
| Perform the 2D plugin scan.  More... | |
| void | make2dProbPlot (MethodProbScan *scanner, int cId) | 
| Make the 2D plot for a prob scanner.  More... | |
| void | make2dProbScan (MethodProbScan *scanner, int cId) | 
| Make a 2D prob scan.  More... | |
| void | makeAddDelCombinations () | 
| Implement the logic needed to create new combinations on the fly using the -c 26:+12 syntax.  More... | |
| void | makeLatex (Combiner *c) | 
| make latex  More... | |
| bool | pdfExists (int id) | 
| Check if a PDF with a certain ID exits.  More... | |
| void | printBanner () | 
| print the initial banner  More... | |
| void | printCombinerStructure (Combiner *c) | 
| print parameter structure of the combinations into .dot file  More... | |
| void | savePlot () | 
| Save the plot to disc.  More... | |
| void | saveWorkspace (Combiner *c, int i) | 
| save workspace  More... | |
| void | scaleDownErrors () | 
| scale down errors  More... | |
| void | scan () | 
| scan engine  More... | |
| void | scanDataSet () | 
| void | setAsimovObservables (Combiner *c) | 
| Make an Asimov toy: set all observables set to truth values.  More... | |
| void | setObservablesFromFile (Combiner *c, int cId) | 
| Helper function for scan().  More... | |
| void | setUpPlot () | 
| Set up the plot.  More... | |
| void | tightenChi2Constraint (Combiner *c, TString scanVar) | 
| Helper function to set up a scan for an observable, tightens the chi2 constraint.  More... | |
| void | usage () | 
| print usage and exit  More... | |
| void | writebatchscripts () | 
| write batch scripts  More... | |
Private Attributes | |
| OptParser * | arg | 
| vector< Combiner * > | cmb | 
| vector< int > | colorsLine | 
| vector< int > | colorsText | 
| TString | execname | 
| vector< int > | fillStyles | 
| BatchScriptWriter * | m_batchscriptwriter | 
| FileNameBuilder * | m_fnamebuilder | 
| vector< PDF_Abs * > | |
| OneMinusClPlotAbs * | plot | 
| bool | runOnDataSet | 
| TStopwatch | t | 
| TApplication * | theApp | 
The main GammaCombo scanning engine, controlling the application.
Definition at line 41 of file GammaComboEngine.h.
| GammaComboEngine::GammaComboEngine | ( | TString | name, | 
| int | argc, | ||
| char * | argv[] | ||
| ) | 
Definition at line 6 of file GammaComboEngine.cpp.
| GammaComboEngine::GammaComboEngine | ( | TString | name, | 
| int | argc, | ||
| char * | argv[], | ||
| bool | _runOnDataSet | ||
| ) | 
Definition at line 36 of file GammaComboEngine.cpp.
| GammaComboEngine::~GammaComboEngine | ( | ) | 
Definition at line 42 of file GammaComboEngine.cpp.
| void GammaComboEngine::addCombiner | ( | int | id, | 
| Combiner * | cmb | ||
| ) | 
Add a Combiner to the GammaComboEngine object.
Definition at line 218 of file GammaComboEngine.cpp.
| void GammaComboEngine::addPdf | ( | int | id, | 
| PDF_Abs * | pdf, | ||
| TString | title = ""  | 
        ||
| ) | 
Add a PDF to the GammaComboEngine object.
Definition at line 98 of file GammaComboEngine.cpp.
| void GammaComboEngine::addSubsetPdf | ( | int | id, | 
| PDF_Abs * | pdf, | ||
| vector< int > & | indices, | ||
| TString | title = ""  | 
        ||
| ) | 
Add a pdf with a subset of the observables to the GammaComboEngine.
Definition at line 121 of file GammaComboEngine.cpp.
| void GammaComboEngine::addSubsetPdf | ( | int | id, | 
| PDF_Abs * | pdf, | ||
| int | i1, | ||
| TString | title = ""  | 
        ||
| ) | 
Definition at line 181 of file GammaComboEngine.cpp.
| void GammaComboEngine::addSubsetPdf | ( | int | id, | 
| PDF_Abs * | pdf, | ||
| int | i1, | ||
| int | i2, | ||
| TString | title = ""  | 
        ||
| ) | 
Definition at line 188 of file GammaComboEngine.cpp.
| void GammaComboEngine::addSubsetPdf | ( | int | id, | 
| PDF_Abs * | pdf, | ||
| int | i1, | ||
| int | i2, | ||
| int | i3, | ||
| TString | title = ""  | 
        ||
| ) | 
Definition at line 196 of file GammaComboEngine.cpp.
| void GammaComboEngine::addSubsetPdf | ( | int | id, | 
| PDF_Abs * | pdf, | ||
| int | i1, | ||
| int | i2, | ||
| int | i3, | ||
| int | i4, | ||
| TString | title = ""  | 
        ||
| ) | 
Definition at line 205 of file GammaComboEngine.cpp.
| void GammaComboEngine::adjustRanges | ( | Combiner * | c, | 
| int | cId | ||
| ) | 
Helper function for scan().
Adjusts ranges, if requested (only possible before combining).
Definition at line 1361 of file GammaComboEngine.cpp.
      
  | 
  private | 
Check Asimov arg: when only one –asimov argument is given with the ID 0, it won't do anything.
Print a warning in that case.
Definition at line 690 of file GammaComboEngine.cpp.
      
  | 
  private | 
Check color argument and exit if a non-existing color was requested through the –color argument.
Colors for one-dimensional plots are defined in GammaComboEngine::defineColors(). Colors for two-dimensional pltos are defined in OneMinusClPlot2d::OneMinusClPlot2d().
Definition at line 706 of file GammaComboEngine.cpp.
      
  | 
  private | 
Check the combination argument (-c), exit if it is bad.
Definition at line 660 of file GammaComboEngine.cpp.
| void GammaComboEngine::cloneCombiner | ( | int | newId, | 
| int | oldId, | ||
| TString | name, | ||
| TString | title | ||
| ) | 
Add a new Combiner to the GammaComboEngine object, that is the clone of an existing one.
After that, the clone can be modified using, e.g., getCombiner(newId)->addPdf(...)
Definition at line 246 of file GammaComboEngine.cpp.
      
  | 
  private | 
Check if a Combiner with a certain ID exits.
Definition at line 63 of file GammaComboEngine.cpp.
      
  | 
  private | 
Configure the names and titles of Asimov combiners.
It adds things like "Asimov3" to the combiner name, where 3 means the 3rd Asimov point from the configured Asimov parameter file (typically *_genpoints.dat).
Definition at line 507 of file GammaComboEngine.cpp.
      
  | 
  private | 
Override default titles of the combinations, if requested on the command line.
Definition at line 806 of file GammaComboEngine.cpp.
      
  | 
  private | 
Define the colors of curves and numbers in the 1D plots.
It is important to call this only after new combinations were made using the makeAddDelCombinations() mechanism.
Definition at line 848 of file GammaComboEngine.cpp.
      
  | 
  private | 
disable systematics
Definition at line 382 of file GammaComboEngine.cpp.
      
  | 
  private | 
Helper function for scan().
Fixes parameters, if requested (only possible before combining).
Definition at line 1348 of file GammaComboEngine.cpp.
      
  | 
  inline | 
Definition at line 62 of file GammaComboEngine.h.
| Combiner * GammaComboEngine::getCombiner | ( | int | id | ) | const | 
Get a combiner.
| id | - combiner ID, set when defining the combiner using addCombiner(), cloneCombiner(), or newCombiner() | 
Definition at line 268 of file GammaComboEngine.cpp.
| PDF_Abs * GammaComboEngine::getPdf | ( | int | id | ) | 
Get a PDF.
| id | - PDF ID, set when adding the PDF using addPdf() | 
Definition at line 281 of file GammaComboEngine.cpp.
      
  | 
  private | 
Helper function for scan(): Checks if for a given combid (the running index of the -c argument) a start parameter file was configured (-l) argument.
If so, it is returned, else the default name is returned.
Definition at line 1405 of file GammaComboEngine.cpp.
      
  | 
  private | 
Checks if a given variable name is in the list of observables of a combiner.
The check is slightly sloppy as it ignores the unique ID.
| c | - the combiner | 
| scanVar | - the scan variable name | 
Definition at line 1421 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make an Asimov toy: set all observables set to truth values.
The truth values are loaded from a parameter file.
Definition at line 523 of file GammaComboEngine.cpp.
      
  | 
  private | 
Load start parameters.
| s | - the scanner | 
| cId | - combiner id | 
| pCache | - parameter cache | 
Definition at line 449 of file GammaComboEngine.cpp.
      
  | 
  private | 
Perform the 1D berger boos scan.
Runs toys in batch mode, and reads them back in.
| scannerPlugin | - the scanner to run the scan with | 
| cId | - the id of this combination on the command line | 
Definition at line 1071 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make the 1D coverage plot.
| scanner | - the coverage scanner | 
| cId | - the id of this combination on the command line | 
Definition at line 1277 of file GammaComboEngine.cpp.
      
  | 
  private | 
Perform the coverage scanner.
| scanner | - the scanner to run the scan with | 
| cId | - the id of this combination on the command line | 
Definition at line 1091 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make the plugin-only plot that only shows the plugin as continuous lines.
| sPlugin | - the plugin scanner | 
| cId | - the id of this combination on the command line | 
Definition at line 1244 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make the default 1D plugin plot:
| sPlugin | - the plugin scanner | 
| sProb | - the prob scanner | 
| cId | - the id of this combination on the command line | 
Definition at line 1185 of file GammaComboEngine.cpp.
      
  | 
  private | 
Perform the 1D plugin scan.
Runs toys in batch mode, and reads them back in.
| scannerPlugin | - the scanner to run the scan with | 
| cId | - the id of this combination on the command line | 
Definition at line 1023 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make a 1D plot of a Prob scanner.
The scanner can either be a "fresh" one, as made in make1dProbScan(), or a loaded one.
| scanner | - the scanner to plot | 
| cId | - the id of this combination on the command line | 
Definition at line 1120 of file GammaComboEngine.cpp.
      
  | 
  private | 
Perform the prob scan.
| scanner | - the scanner to run the scan with | 
| cId | - the id of this combination on the command line | 
Definition at line 985 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make the plugin-only 2D plot.
| sPlugin | - the plugin scanner | 
| cId | - the id of this combination on the command line | 
Definition at line 1264 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make the default 2D plugin plot:
| sPlugin | - the plugin scanner | 
| sProb | - the prob scanner | 
| cId | - the id of this combination on the command line | 
Definition at line 1213 of file GammaComboEngine.cpp.
      
  | 
  private | 
Perform the 2D plugin scan.
Runs toys in batch mode, and reads them back in.
| scannerPlugin | - the scanner to run the scan with | 
| cId | - the id of this combination on the command line | 
Definition at line 1046 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make the 2D plot for a prob scanner.
Definition at line 1309 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make a 2D prob scan.
| scanner | - the scanner | 
| cId | - the id of this combination on the command line | 
Definition at line 1291 of file GammaComboEngine.cpp.
      
  | 
  private | 
Implement the logic needed to create new combinations on the fly using the -c 26:+12 syntax.
Definition at line 732 of file GammaComboEngine.cpp.
      
  | 
  private | 
make latex
Definition at line 1542 of file GammaComboEngine.cpp.
| void GammaComboEngine::newCombiner | ( | int | id, | 
| TString | name, | ||
| TString | title, | ||
| int | pdf1 = -1,  | 
        ||
| int | pdf2 = -1,  | 
        ||
| int | pdf3 = -1,  | 
        ||
| int | pdf4 = -1,  | 
        ||
| int | pdf5 = -1,  | 
        ||
| int | pdf6 = -1,  | 
        ||
| int | pdf7 = -1,  | 
        ||
| int | pdf8 = -1,  | 
        ||
| int | pdf9 = -1,  | 
        ||
| int | pdf10 = -1,  | 
        ||
| int | pdf11 = -1,  | 
        ||
| int | pdf12 = -1,  | 
        ||
| int | pdf13 = -1,  | 
        ||
| int | pdf14 = -1,  | 
        ||
| int | pdf15 = -1  | 
        ||
| ) | 
Add a new Combiner, consisting of the specified PDFs.
The pdf arguments refer to the GammaComboEngine ID of the PDFs that should be combined. Add them before using addPdf(). Also an empty combiner is possible, that has no PDFs, so it can be filled later. In that case, leave all pdf arguments at -1.
Definition at line 308 of file GammaComboEngine.cpp.
| PDF_Abs * GammaComboEngine::operator[] | ( | int | idx | ) | 
Definition at line 290 of file GammaComboEngine.cpp.
      
  | 
  private | 
Check if a PDF with a certain ID exits.
Definition at line 52 of file GammaComboEngine.cpp.
| void GammaComboEngine::print | ( | ) | 
Print the content of this engine.
Definition at line 651 of file GammaComboEngine.cpp.
      
  | 
  private | 
print the initial banner
Definition at line 1957 of file GammaComboEngine.cpp.
| void GammaComboEngine::printCombinations | ( | ) | 
Print the availabe Combinations.
Definition at line 635 of file GammaComboEngine.cpp.
      
  | 
  private | 
print parameter structure of the combinations into .dot file
Definition at line 795 of file GammaComboEngine.cpp.
| void GammaComboEngine::printPdfs | ( | ) | 
Print the available PDFs.
Definition at line 619 of file GammaComboEngine.cpp.
| void GammaComboEngine::run | ( | ) | 
run GammaComboEngine, main steering function
Definition at line 1969 of file GammaComboEngine.cpp.
| void GammaComboEngine::runApplication | ( | ) | 
run the ROOT application, if the -i flag for interactive mode was set.
Definition at line 1946 of file GammaComboEngine.cpp.
      
  | 
  private | 
Save the plot to disc.
Definition at line 837 of file GammaComboEngine.cpp.
      
  | 
  private | 
save workspace
Definition at line 1554 of file GammaComboEngine.cpp.
      
  | 
  private | 
scale down errors
As it is, it is only useful for the LHCb gamma combination.
Definition at line 341 of file GammaComboEngine.cpp.
      
  | 
  private | 
scan engine
Definition at line 1588 of file GammaComboEngine.cpp.
      
  | 
  private | 
Definition at line 1845 of file GammaComboEngine.cpp.
| void GammaComboEngine::scanStrategy1d | ( | MethodProbScan * | scanner, | 
| ParameterCache * | pCache | ||
| ) | 
Perform a 1D scan with the following scan strategy.
If no starting values loaded do the default thing:
Definition at line 1145 of file GammaComboEngine.cpp.
| void GammaComboEngine::scanStrategy2d | ( | MethodProbScan * | scanner, | 
| ParameterCache * | pCache | ||
| ) | 
Define scan strategy for a 2D scan.
Definition at line 911 of file GammaComboEngine.cpp.
      
  | 
  private | 
Make an Asimov toy: set all observables set to truth values.
The Asimov point needs to be loaded in the combiner before.
| c | - combiner which should be set to an asimov toy | 
Definition at line 398 of file GammaComboEngine.cpp.
      
  | 
  private | 
Helper function for scan().
Set observables to values from file (only possible before combining).
Definition at line 1458 of file GammaComboEngine.cpp.
| void GammaComboEngine::setPdf | ( | PDF_Abs * | ) | 
Set the PDF (for datasets method) for the GammaComboEngine.
Definition at line 74 of file GammaComboEngine.cpp.
      
  | 
  inline | 
Definition at line 74 of file GammaComboEngine.h.
      
  | 
  private | 
Set up the plot.
Definition at line 823 of file GammaComboEngine.cpp.
| void GammaComboEngine::setupToyVariationSets | ( | Combiner * | c, | 
| int | cId | ||
| ) | 
Helper function for scan(): Makes named sets for any toy variations that were requested.
Definition at line 1387 of file GammaComboEngine.cpp.
      
  | 
  private | 
Helper function to set up a scan for an observable, tightens the chi2 constraint.
| c | - the combiner | 
| scanVar | - the scan variable name (must be an observable) | 
Definition at line 1437 of file GammaComboEngine.cpp.
      
  | 
  private | 
print usage and exit
Definition at line 580 of file GammaComboEngine.cpp.
      
  | 
  private | 
write batch scripts
Definition at line 1533 of file GammaComboEngine.cpp.
      
  | 
  private | 
Definition at line 122 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 123 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 124 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 125 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 127 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 126 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 129 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 128 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 130 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 131 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 134 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 132 of file GammaComboEngine.h.
      
  | 
  private | 
Definition at line 133 of file GammaComboEngine.h.
 1.8.12