ATLAS Offline Software
CalibrationDataContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // CalibrationDataContainer.h, (c) ATLAS Detector software
8 
9 #ifndef ANALYSISCALIBRATIONDATACONTAINER_H
10 #define ANALYSISCALIBRATIONDATACONTAINER_H
11 
12 #include <vector>
13 #include <map>
14 #include <string>
15 
16 #include "TMap.h"
17 #include "THashList.h"
18 
19 class TH1;
20 
22 
23 namespace Analysis {
24 
33  typedef std::pair<double, double> UncertaintyResult;
34 
40  const unsigned int MaxCalibrationVars = 10;
41 
51  class CalibrationDataContainer: public TMap {
52  public:
53  CalibrationDataContainer(const char* name = "default"); // default ctor needed for persistence
54  virtual ~CalibrationDataContainer(); // virtual dtor needed for persistence
55 
64  kPt = 0, // calibrated jet pt
65  kEta = 1, // jet eta
66  kAbsEta = 2, // jet |eta|
67  kTagWeight = 3 // tagging output (relevant for "continuous" calibration)
68  };
69 
74  std::vector<std::string> listUncertainties() const;
75 
82  std::map<std::string, Analysis::UncertaintyResult>& all);
83 
85  std::string getComment() const;
86 
88  std::string getHadronisation() const;
89 
91  std::string getExcludedUncertainties() const;
92 
102  double& result,
103  TObject* obj = 0, bool extrapolate = false) = 0;
104 
115  double& result) = 0;
116 
123  TObject* obj = 0);
124 
133  virtual CalibrationStatus getUncertainty(const std::string& unc,
135  UncertaintyResult& result, TObject* obj = 0) = 0;
136 
138  void setResult(TObject* obj);
139 
141  void setComment(const std::string& text);
142 
144  void setHadronisation(const std::string& text);
145 
149  void setExcludedUncertainties(const std::string& text);
150 
152  void setUncertainty(const std::string& unc, TObject* obj);
153 
159  void restrictToRange(bool restrict) { m_restrict = restrict; }
160 
162  bool isRangeRestricted() const { return m_restrict; }
163 
168  double getLowerBound(unsigned int vartype, bool extrapolate = false) const;
169 
174  double getUpperBound(unsigned int vartype, bool extrapolate = false) const;
175 
177  std::vector<std::pair<double, double> > getBounds();
178 
180  std::vector<unsigned int> getVariableTypes();
181 
183  static bool isNearlyEqual (double a, double b);
184 
185  protected:
186 
190  int typeFromString(const std::string& key) const;
191 
192  // /** compute the variables to be used for the given 'uncertainty'
193  // @param x user-supplied (kinematic or other) variables
194  // @param unc given source of uncertainty (can also be the central value)
195  // @return false if the given variables are outside the parametrisation's validity range
196  // */
197  // bool computeVariables(const std::string& unc,
198  // const CalibrationDataVariables& x) const;
199 
206 
208  virtual void computeVariableTypes() = 0;
209 
210  std::vector<double> m_lowerBounds; // lower validity bounds
211  std::vector<double> m_upperBounds; // upper validity bounds
212  // persistency not needed for the following (relevant for histogram uncertainties only and computed automatically)
213  std::vector<double> m_lowerBoundsExtrapolated;
214  std::vector<double> m_upperBoundsExtrapolated;
215 
217  TObject* m_objResult;
218  TObject* m_objSystematics;
219 
221 
223  std::vector<unsigned int> m_variables;
224  // mutable std::map<std::string, std::vector<unsigned int> > m_variables; //! persistency not needed for this variable
225  // mutable std::vector<unsigned int>* m_variablesResult; //! persistency not needed for this variable
226 
227  private:
228 
231 
232  ClassDef(CalibrationDataContainer, 1); // base class for calibration data objects
233 
234  };
235 
236 
237 
238 
245 //__________________________________________________________________________________________
246 
248  public:
249  CalibrationDataHistogramContainer(const char* name = "default"); // default ctor needed for persistence
250  virtual ~CalibrationDataHistogramContainer(); // virtual dtor needed for persistence
252  TObject* obj = 0, bool extrapolate = false);
254  virtual CalibrationStatus getUncertainty(const std::string& unc, const CalibrationDataVariables& x,
255  UncertaintyResult& result, TObject* obj = 0);
256 
259  bool isBinCorrelated(const std::string& unc) const;
260 
263  void setUncorrelated(const std::string& unc);
264 
267  void setInterpolated(bool doInterpolate);
268 
270  virtual bool isInterpolated() const;
271 
276  virtual int getTagWeightAxis();
277 
280  virtual std::vector<double> getBinBoundaries(unsigned int vartype);
281 
286  virtual int getEigenvectorReduction(unsigned int choice) const;
287 
288  protected:
289 
291  std::map<unsigned int, std::vector<double> > m_binBoundaries;
292 
293  private:
294 
297 
300 
302  double getInterpolatedResult(TH1* hist) const;
303 
305  double getInterpolatedUncertainty(TH1* hist) const;
306 
308  void checkBounds();
309 
310  // /** utility for determining global bin number, subject to extrapolation constraints.
311  // @param hist pointer to histogram containing actual bin boundary information
312  // @param doExtrapolate specifies whether or not an extrapolation uncertainty is being requested
313  // */
314  // Int_t findBin(const TH1* hist, bool doExtrapolate) const;
315 
317  virtual void computeVariableTypes();
318 
319  ClassDef(CalibrationDataHistogramContainer, 2); // histogram based calibration data object
320  };
321 
333 //__________________________________________________________________________________________
334 
336  public:
337  CalibrationDataMappedHistogramContainer(const char* name = "default"); // default ctor needed for persistence
338  virtual ~CalibrationDataMappedHistogramContainer(); // virtual dtor needed for persistence
340  TObject* obj = 0, bool extrapolate = false);
342  virtual CalibrationStatus getUncertainty(const std::string& unc, const CalibrationDataVariables& x,
343  UncertaintyResult& result, TObject* obj = 0);
344 
346  virtual bool isInterpolated() const { return false; }
347 
352  virtual int getTagWeightAxis();
353 
355  void setMappedVariables(const std::vector<std::string>& variables);
356 
358  const std::vector<std::string>& getMappedVariables() const;
359 
362  virtual std::vector<double> getBinBoundaries(unsigned int vartype);
363 
367  class Bin {
368  public:
369  Bin(); // default constructor (for persistency)
370  Bin(unsigned int dimension, const double* low, const double* up);
371  Bin(const Bin& other);
372  Bin& operator=(const Bin& other);
373  ~Bin();
374  // return the number of dimensions
375  unsigned int getDimension() const { return m_dimension; }
376  bool contains(const double* x) const;
377  double getUpperBound(unsigned int dim) const;
378  double getLowerBound(unsigned int dim) const;
379  private:
380  unsigned int m_dimension;
381  double* m_low; //[m_dimension]
382  double* m_up; //[m_dimension]
383  };
384 
387  unsigned int addBin(const Bin& bin);
388 
390  unsigned int getNMappedBins() const;
391 
392  private:
393 
396  std::vector<std::string> m_mapped;
397 
399  unsigned int m_beginMapped;
400 
402  std::vector<Bin> m_bins;
403  // cache index to the last used bin
404  unsigned int m_lastBin;
405 
407  Int_t findBin();
408  Int_t findMappedBin(const double* x);
409 
411  void checkBounds();
412 
414  virtual void computeVariableTypes();
415 
416  ClassDef(CalibrationDataMappedHistogramContainer, 1); // 'mapped' histogram based calibration data object
417  };
418 
419 
425 //__________________________________________________________________________________________
426 
428  public:
429  CalibrationDataFunctionContainer(const char* name = "default"); // default ctor needed for persistence
430  virtual ~CalibrationDataFunctionContainer(); // virtual dtor needed for persistence
432  TObject* obj = 0, bool /* extrapolate */ = false);
434  virtual CalibrationStatus getUncertainty(const std::string& unc, const CalibrationDataVariables& x,
435  UncertaintyResult& result, TObject* obj = 0);
436 
438  inline void setLowerBound(int vartype, double bound) {m_lowerBounds[vartype] = bound; }
439 
441  inline void setUpperBound(int vartype, double bound) {m_upperBounds[vartype] = bound; }
442 
443  private:
444 
445  TObject* m_objStatistics;
446 
448  virtual void computeVariableTypes();
449 
450  ClassDef(CalibrationDataFunctionContainer, 1); // function based calibration data object
451  };
452 
453 } // end of namespace
454 
455 #endif
Analysis::CalibrationDataHistogramContainer::getUncertainty
virtual CalibrationStatus getUncertainty(const std::string &unc, const CalibrationDataVariables &x, UncertaintyResult &result, TObject *obj=0)
retrieve the calibration uncertainty due to the given source.
Definition: CalibrationDataContainer.cxx:622
Analysis::CalibrationDataMappedHistogramContainer::Bin::m_dimension
unsigned int m_dimension
Definition: CalibrationDataContainer.h:380
Analysis::CalibrationDataContainer::getUncertainties
CalibrationStatus getUncertainties(const CalibrationDataVariables &x, std::map< std::string, Analysis::UncertaintyResult > &all)
retrieve the list of "uncertainties" accessible to this object.
Definition: CalibrationDataContainer.cxx:137
Analysis::CalibrationDataContainer::getUncertainty
virtual CalibrationStatus getUncertainty(const std::string &unc, const CalibrationDataVariables &x, UncertaintyResult &result, TObject *obj=0)=0
retrieve the calibration uncertainty due to the given source.
Analysis::CalibrationDataMappedHistogramContainer
Definition: CalibrationDataContainer.h:335
Analysis::CalibrationDataContainer::CalibrationParametrization
CalibrationParametrization
Definition: CalibrationDataContainer.h:63
Analysis::CalibrationDataFunctionContainer::getResult
virtual CalibrationStatus getResult(const CalibrationDataVariables &x, double &result, TObject *obj=0, bool=false)
retrieve the calibration result.
Definition: CalibrationDataContainer.cxx:1605
Analysis::CalibrationDataMappedHistogramContainer::Bin::operator=
Bin & operator=(const Bin &other)
Definition: CalibrationDataContainer.cxx:1480
Analysis::CalibrationDataContainer::isRangeRestricted
bool isRangeRestricted() const
allow the user to inspect the above information
Definition: CalibrationDataContainer.h:162
yodamerge_tmp.dim
dim
Definition: yodamerge_tmp.py:239
get_generator_info.result
result
Definition: get_generator_info.py:21
Analysis::CalibrationDataMappedHistogramContainer::CalibrationDataMappedHistogramContainer
CalibrationDataMappedHistogramContainer(const char *name="default")
Analysis::CalibrationDataContainer
Definition: CalibrationDataContainer.h:51
Analysis::CalibrationDataMappedHistogramContainer::~CalibrationDataMappedHistogramContainer
virtual ~CalibrationDataMappedHistogramContainer()
Definition: CalibrationDataContainer.cxx:1024
checkCoolLatestUpdate.variables
variables
Definition: checkCoolLatestUpdate.py:13
Analysis::CalibrationDataMappedHistogramContainer::Bin::getDimension
unsigned int getDimension() const
Definition: CalibrationDataContainer.h:375
Analysis::CalibrationDataHistogramContainer::getInterpolatedUncertainty
double getInterpolatedUncertainty(TH1 *hist) const
Retrieve interpolated result (utility function)
Definition: CalibrationDataContainer.cxx:777
Analysis::CalibrationDataMappedHistogramContainer::computeVariableTypes
virtual void computeVariableTypes()
decode the 'uncertainty' objects' names to determine the relevant variable types
Definition: CalibrationDataContainer.cxx:1030
Analysis::CalibrationDataHistogramContainer::getTagWeightAxis
virtual int getTagWeightAxis()
Test whether this calibration object is one for "continuous" calibration (this has some subtle conseq...
Definition: CalibrationDataContainer.cxx:935
Analysis::CalibrationDataContainer::CalibrationDataContainer
CalibrationDataContainer(const char *name="default")
Analysis::CalibrationDataContainer::m_restrict
bool m_restrict
persistency not needed for this variable
Definition: CalibrationDataContainer.h:230
Analysis::CalibrationDataContainer::setExcludedUncertainties
void setExcludedUncertainties(const std::string &text)
insert the set of uncertainties that are recommended for removal from the eigenvector decomposition.
Definition: CalibrationDataContainer.cxx:280
Analysis::CalibrationDataHistogramContainer::isBinCorrelated
bool isBinCorrelated(const std::string &unc) const
Indicate whether the given uncertainty is correlated from bin to bin or not (note that this function ...
Definition: CalibrationDataContainer.cxx:719
Analysis::CalibrationDataContainer::m_upperBounds
std::vector< double > m_upperBounds
Definition: CalibrationDataContainer.h:211
Analysis::CalibrationDataFunctionContainer::ClassDef
ClassDef(CalibrationDataFunctionContainer, 1)
Analysis::CalibrationDataMappedHistogramContainer::Bin::contains
bool contains(const double *x) const
Definition: CalibrationDataContainer.cxx:1505
plotmaker.hist
hist
Definition: plotmaker.py:148
Analysis::CalibrationDataContainer::getExcludedUncertainties
std::string getExcludedUncertainties() const
retrieve the (semicolon-separated) set of uncertainties that are recommended for removal from the eig...
Definition: CalibrationDataContainer.cxx:217
Analysis::CalibrationDataHistogramContainer::CalibrationDataHistogramContainer
CalibrationDataHistogramContainer(const char *name="default")
Analysis::CalibrationDataHistogramContainer::m_interpolate
bool m_interpolate
If true, interpolate between bins rather than doing a straight bin-wise evaluation.
Definition: CalibrationDataContainer.h:299
Analysis::CalibrationDataContainer::computeVariableTypes
virtual void computeVariableTypes()=0
decode the 'uncertainty' objects' names to determine the relevant variable types
Analysis::CalibrationDataFunctionContainer::setLowerBound
void setLowerBound(int vartype, double bound)
Set the lower bound of validity for the given variable.
Definition: CalibrationDataContainer.h:438
Analysis::CalibrationDataContainer::m_objSystematics
TObject * m_objSystematics
don't persistify
Definition: CalibrationDataContainer.h:218
bin
Definition: BinsDiffFromStripMedian.h:43
Analysis::CalibrationDataMappedHistogramContainer::Bin::m_up
double * m_up
Definition: CalibrationDataContainer.h:382
Analysis::CalibrationDataHistogramContainer::getStatUncertainty
virtual CalibrationStatus getStatUncertainty(const CalibrationDataVariables &x, double &result)
retrieve the calibration statistical uncertainty.
Definition: CalibrationDataContainer.cxx:582
Analysis::CalibrationDataContainer::setComment
void setComment(const std::string &text)
insert the given text as comment for this calibration
Definition: CalibrationDataContainer.cxx:255
Analysis::CalibrationDataContainer::getSystUncertainty
CalibrationStatus getSystUncertainty(const CalibrationDataVariables &x, UncertaintyResult &result, TObject *obj=0)
retrieve the calibration total systematic uncertainty
Definition: CalibrationDataContainer.cxx:101
CalibrationDataVariables.h
x
#define x
Analysis::CalibrationDataContainer::getResult
virtual CalibrationStatus getResult(const CalibrationDataVariables &x, double &result, TObject *obj=0, bool extrapolate=false)=0
retrieve the calibration result.
Analysis::CalibrationDataContainer::getLowerBound
double getLowerBound(unsigned int vartype, bool extrapolate=false) const
retrieve the lower bound of validity for the requested variable type
Definition: CalibrationDataContainer.cxx:366
Analysis::CalibrationDataFunctionContainer::computeVariableTypes
virtual void computeVariableTypes()
cached
Definition: CalibrationDataContainer.cxx:1572
Analysis::CalibrationDataContainer::kAbsEta
@ kAbsEta
Definition: CalibrationDataContainer.h:66
Analysis::CalibrationDataMappedHistogramContainer::Bin::getUpperBound
double getUpperBound(unsigned int dim) const
Definition: CalibrationDataContainer.cxx:1516
Analysis::CalibrationDataMappedHistogramContainer::getUncertainty
virtual CalibrationStatus getUncertainty(const std::string &unc, const CalibrationDataVariables &x, UncertaintyResult &result, TObject *obj=0)
retrieve the calibration uncertainty due to the given source.
Definition: CalibrationDataContainer.cxx:1209
Analysis::CalibrationDataFunctionContainer
Definition: CalibrationDataContainer.h:427
Analysis::CalibrationDataMappedHistogramContainer::Bin::getLowerBound
double getLowerBound(unsigned int dim) const
Definition: CalibrationDataContainer.cxx:1524
Analysis::CalibrationDataMappedHistogramContainer::m_mapped
std::vector< std::string > m_mapped
mapped variables.
Definition: CalibrationDataContainer.h:396
Analysis::CalibrationDataMappedHistogramContainer::setMappedVariables
void setMappedVariables(const std::vector< std::string > &variables)
Set (by hand) the variables that will be mapped onto a single histogram axis.
Definition: CalibrationDataContainer.cxx:1266
Analysis::CalibrationDataMappedHistogramContainer::ClassDef
ClassDef(CalibrationDataMappedHistogramContainer, 1)
Analysis::CalibrationDataFunctionContainer::~CalibrationDataFunctionContainer
virtual ~CalibrationDataFunctionContainer()
Definition: CalibrationDataContainer.cxx:1566
Analysis::CalibrationDataFunctionContainer::CalibrationDataFunctionContainer
CalibrationDataFunctionContainer(const char *name="default")
Analysis::CalibrationDataContainer::m_variables
std::vector< unsigned int > m_variables
don't persistify
Definition: CalibrationDataContainer.h:223
Analysis::CalibrationDataMappedHistogramContainer::getBinBoundaries
virtual std::vector< double > getBinBoundaries(unsigned int vartype)
Retrieve the bin boundaries for the specified variable type (which should be a CalibrationParametriza...
Definition: CalibrationDataContainer.cxx:1358
Analysis::CalibrationDataHistogramContainer::~CalibrationDataHistogramContainer
virtual ~CalibrationDataHistogramContainer()
Definition: CalibrationDataContainer.cxx:483
Analysis::CalibrationDataContainer::m_vars
double m_vars[MaxCalibrationVars]
don't persistify
Definition: CalibrationDataContainer.h:220
Analysis::CalibrationDataContainer::computeVariables
CalibrationStatus computeVariables(const CalibrationDataVariables &x, bool extrapolate=false)
Compute the variables to be used.
Definition: CalibrationDataContainer.cxx:307
Analysis::CalibrationDataMappedHistogramContainer::Bin
Helper class for the specification of custom binning.
Definition: CalibrationDataContainer.h:367
Analysis::CalibrationDataContainer::listUncertainties
std::vector< std::string > listUncertainties() const
retrieve the list of "uncertainties" accessible to this object.
Definition: CalibrationDataContainer.cxx:120
Analysis::CalibrationDataMappedHistogramContainer::getNMappedBins
unsigned int getNMappedBins() const
return the number of mapped bins
Definition: CalibrationDataContainer.cxx:1295
Analysis::CalibrationDataHistogramContainer::isInterpolated
virtual bool isInterpolated() const
Indicate whether histogram interpolation is used or not.
Definition: CalibrationDataContainer.cxx:751
Analysis::CalibrationDataContainer::kEta
@ kEta
Definition: CalibrationDataContainer.h:65
Analysis::CalibrationDataContainer::setHadronisation
void setHadronisation(const std::string &text)
insert the given text as the 'hadronisation reference' for this calibration
Definition: CalibrationDataContainer.cxx:268
Analysis::CalibrationDataHistogramContainer::m_uncorrelatedSyst
THashList m_uncorrelatedSyst
no need to persistify
Definition: CalibrationDataContainer.h:296
Analysis::CalibrationDataHistogramContainer::m_binBoundaries
std::map< unsigned int, std::vector< double > > m_binBoundaries
Cache for bin boundary information.
Definition: CalibrationDataContainer.h:291
Analysis::CalibrationDataContainer::setResult
void setResult(TObject *obj)
insert the main object for this calibration
Definition: CalibrationDataContainer.cxx:244
CalibCoolCompareRT.up
up
Definition: CalibCoolCompareRT.py:109
Analysis::CalibrationDataMappedHistogramContainer::addBin
unsigned int addBin(const Bin &bin)
Add mapping bin.
Definition: CalibrationDataContainer.cxx:1284
Analysis::UncertaintyResult
std::pair< double, double > UncertaintyResult
The following typedef is for convenience: most uncertainties can be asymmetric.
Definition: CalibrationDataContainer.h:33
Analysis::CalibrationDataHistogramContainer::getResult
virtual CalibrationStatus getResult(const CalibrationDataVariables &x, double &result, TObject *obj=0, bool extrapolate=false)
retrieve the calibration result.
Definition: CalibrationDataContainer.cxx:539
Analysis::CalibrationDataHistogramContainer::ClassDef
ClassDef(CalibrationDataHistogramContainer, 2)
Analysis::CalibrationDataFunctionContainer::m_objStatistics
TObject * m_objStatistics
Definition: CalibrationDataContainer.h:445
Analysis::CalibrationDataHistogramContainer::getInterpolatedResult
double getInterpolatedResult(TH1 *hist) const
Retrieve interpolated result (utility function)
Definition: CalibrationDataContainer.cxx:760
Analysis::CalibrationDataHistogramContainer::computeVariableTypes
virtual void computeVariableTypes()
decode the 'uncertainty' objects' names to determine the relevant variable types
Definition: CalibrationDataContainer.cxx:490
Analysis::CalibrationDataContainer::ClassDef
ClassDef(CalibrationDataContainer, 1)
Analysis::CalibrationDataMappedHistogramContainer::findBin
Int_t findBin()
don't persistify
Definition: CalibrationDataContainer.cxx:1326
Analysis::CalibrationDataContainer::m_objResult
TObject * m_objResult
(possibly looser) upper validity bounds for extrapolation
Definition: CalibrationDataContainer.h:217
Analysis::CalibrationDataContainer::m_lowerBoundsExtrapolated
std::vector< double > m_lowerBoundsExtrapolated
Definition: CalibrationDataContainer.h:213
Analysis::CalibrationDataFunctionContainer::setUpperBound
void setUpperBound(int vartype, double bound)
Set the lower bound of validity for the given variable.
Definition: CalibrationDataContainer.h:441
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::CalibrationStatus
CalibrationStatus
Definition: CalibrationDataVariables.h:56
Analysis::CalibrationDataMappedHistogramContainer::m_bins
std::vector< Bin > m_bins
don't persistify
Definition: CalibrationDataContainer.h:402
Analysis::CalibrationDataContainer::getVariableTypes
std::vector< unsigned int > getVariableTypes()
utility to retrieve variable types
Definition: CalibrationDataContainer.cxx:408
Analysis::CalibrationDataContainer::getHadronisation
std::string getHadronisation() const
retrieve the 'hadronisation reference' entered for this calibration, if any
Definition: CalibrationDataContainer.cxx:203
Analysis::CalibrationDataContainer::m_lowerBounds
std::vector< double > m_lowerBounds
Definition: CalibrationDataContainer.h:210
Analysis::CalibrationDataContainer::restrictToRange
void restrictToRange(bool restrict)
If true, this will restrict the variables used to be within the (specified) range of validity.
Definition: CalibrationDataContainer.h:159
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Analysis::MaxCalibrationVars
const unsigned int MaxCalibrationVars
Maximum dimensionality of the calibration parametrisation.
Definition: CalibrationDataContainer.h:40
Analysis::CalibrationDataHistogramContainer
Definition: CalibrationDataContainer.h:247
Analysis::CalibrationDataContainer::typeFromString
int typeFromString(const std::string &key) const
Connection between variable names (on histogram axes etc.) and variable 'types' as used in actual eva...
Definition: CalibrationDataContainer.cxx:292
Analysis::CalibrationDataContainer::kTagWeight
@ kTagWeight
Definition: CalibrationDataContainer.h:67
Analysis::CalibrationDataMappedHistogramContainer::Bin::~Bin
~Bin()
Definition: CalibrationDataContainer.cxx:1497
Analysis::CalibrationDataMappedHistogramContainer::checkBounds
void checkBounds()
check the bounds of validity for this calibration object
Definition: CalibrationDataContainer.cxx:1090
Cut::all
@ all
Definition: SUSYToolsAlg.cxx:67
Analysis::CalibrationDataContainer::setUncertainty
void setUncertainty(const std::string &unc, TObject *obj)
insert the relevant object for the requested source of 'uncertainty'
Definition: CalibrationDataContainer.cxx:231
Analysis::CalibrationDataMappedHistogramContainer::getTagWeightAxis
virtual int getTagWeightAxis()
Test whether this calibration object is one for "continuous" calibration (this has some subtle conseq...
Definition: CalibrationDataContainer.cxx:1249
Analysis::CalibrationDataMappedHistogramContainer::getResult
virtual CalibrationStatus getResult(const CalibrationDataVariables &x, double &result, TObject *obj=0, bool extrapolate=false)
retrieve the calibration result.
Definition: CalibrationDataContainer.cxx:1152
Analysis::CalibrationDataMappedHistogramContainer::isInterpolated
virtual bool isInterpolated() const
Indicate whether histogram interpolation is used or not.
Definition: CalibrationDataContainer.h:346
Analysis::CalibrationDataContainer::isNearlyEqual
static bool isNearlyEqual(double a, double b)
utility for comparison of doubles
Definition: CalibrationDataContainer.cxx:1744
Analysis::CalibrationDataMappedHistogramContainer::m_beginMapped
unsigned int m_beginMapped
starting position of mapped variables
Definition: CalibrationDataContainer.h:399
Analysis::CalibrationDataMappedHistogramContainer::getMappedVariables
const std::vector< std::string > & getMappedVariables() const
List which variables get mapped onto a single histogram axis.
Definition: CalibrationDataContainer.cxx:1275
Analysis::CalibrationDataHistogramContainer::checkBounds
void checkBounds()
check the bounds of validity for this calibration object
Definition: CalibrationDataContainer.cxx:673
Analysis::CalibrationDataHistogramContainer::setUncorrelated
void setUncorrelated(const std::string &unc)
Indicate that the given uncertainty is to be treated uncorrelated from bin to bin (note that the defa...
Definition: CalibrationDataContainer.cxx:728
Analysis::CalibrationDataFunctionContainer::getUncertainty
virtual CalibrationStatus getUncertainty(const std::string &unc, const CalibrationDataVariables &x, UncertaintyResult &result, TObject *obj=0)
retrieve the calibration uncertainty due to the given source.
Definition: CalibrationDataContainer.cxx:1633
a
TList * a
Definition: liststreamerinfos.cxx:10
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
Analysis::CalibrationDataContainer::getComment
std::string getComment() const
retrieve the comments entered for this calibration, if any
Definition: CalibrationDataContainer.cxx:190
Analysis::CalibrationDataContainer::~CalibrationDataContainer
virtual ~CalibrationDataContainer()
Definition: CalibrationDataContainer.cxx:95
Analysis::CalibrationDataContainer::getUpperBound
double getUpperBound(unsigned int vartype, bool extrapolate=false) const
retrieve the upper bound of validity for the requested variable type
Definition: CalibrationDataContainer.cxx:379
Analysis::CalibrationDataMappedHistogramContainer::m_lastBin
unsigned int m_lastBin
Definition: CalibrationDataContainer.h:404
Analysis::CalibrationDataMappedHistogramContainer::Bin::m_low
double * m_low
Definition: CalibrationDataContainer.h:381
Analysis::CalibrationDataContainer::getBounds
std::vector< std::pair< double, double > > getBounds()
allow the user to inspect the bounds of validity
Definition: CalibrationDataContainer.cxx:391
Analysis::CalibrationDataVariables
Definition: CalibrationDataVariables.h:42
python.AtlRunQueryAMI.choice
int choice
Definition: AtlRunQueryAMI.py:210
Analysis::CalibrationDataHistogramContainer::setInterpolated
void setInterpolated(bool doInterpolate)
Indicate whether results are to be interpolated between bins or not (this feature is thought to be us...
Definition: CalibrationDataContainer.cxx:740
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
Analysis::CalibrationDataMappedHistogramContainer::findMappedBin
Int_t findMappedBin(const double *x)
Definition: CalibrationDataContainer.cxx:1305
MuonHough::extrapolate
float extrapolate(const MuonLayerHough::Maximum &ref, const MuonLayerHough::Maximum &ex, bool doparabolic=false)
Definition: MuonLayerHough.cxx:521
Analysis::CalibrationDataContainer::kPt
@ kPt
Definition: CalibrationDataContainer.h:64
Analysis::CalibrationDataMappedHistogramContainer::getStatUncertainty
virtual CalibrationStatus getStatUncertainty(const CalibrationDataVariables &x, double &result)
retrieve the calibration statistical uncertainty.
Definition: CalibrationDataContainer.cxx:1185
Analysis::CalibrationDataHistogramContainer::getEigenvectorReduction
virtual int getEigenvectorReduction(unsigned int choice) const
Retrieve the number of eigenvectors to be retained for the purpose of eigenvector variation reduction...
Definition: CalibrationDataContainer.cxx:986
Analysis::CalibrationDataFunctionContainer::getStatUncertainty
virtual CalibrationStatus getStatUncertainty(const CalibrationDataVariables &x, double &result)
retrieve the calibration statistical uncertainty.
Definition: CalibrationDataContainer.cxx:1675
Analysis::CalibrationDataMappedHistogramContainer::Bin::Bin
Bin()
python.PyAthena.obj
obj
Definition: PyAthena.py:132
Analysis::CalibrationDataContainer::getStatUncertainty
virtual CalibrationStatus getStatUncertainty(const CalibrationDataVariables &x, double &result)=0
retrieve the calibration statistical uncertainty.
Analysis::CalibrationDataContainer::m_upperBoundsExtrapolated
std::vector< double > m_upperBoundsExtrapolated
(possibly looser) lower validity bounds for extrapolation
Definition: CalibrationDataContainer.h:214
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
Analysis::CalibrationDataHistogramContainer::getBinBoundaries
virtual std::vector< double > getBinBoundaries(unsigned int vartype)
Retrieve the bin boundaries for the specified variable type (which should be a CalibrationParametriza...
Definition: CalibrationDataContainer.cxx:952
Analysis::CalibrationDataMappedHistogramContainer::Bin::Bin
Bin(const Bin &other)