ATLAS Offline Software
Classes | Namespaces | Enumerations | Functions
AlgorithmHelper.h File Reference
#include <dqm_core/Result.h>
#include <dqm_core/AlgorithmConfig.h>
#include <dqm_core/exceptions.h>
#include <map>
#include <vector>
#include <deque>
#include <list>
#include <utility>
#include <TH1.h>
#include <TObject.h>
#include <TClass.h>
#include <boost/thread/once.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/locks.hpp>
#include <boost/thread.hpp>
#include <boost/utility.hpp>
#include <iostream>

Go to the source code of this file.

Classes

struct  dqm_algorithms::tools::binContainer
 
struct  dqm_algorithms::tools::binCluster
 

Namespaces

 dqm_algorithms
 
 dqm_algorithms::tools
 

Enumerations

enum  dqm_algorithms::tools::AxisType {
  dqm_algorithms::tools::XYAxes, dqm_algorithms::tools::XAxis, dqm_algorithms::tools::YAxis, dqm_algorithms::tools::XYZAxes,
  dqm_algorithms::tools::XZAxes, dqm_algorithms::tools::YZAxes, dqm_algorithms::tools::ZAxis
}
 
enum  dqm_algorithms::tools::Topology { dqm_algorithms::tools::Rectangle, dqm_algorithms::tools::CylinderX, dqm_algorithms::tools::CylinderY, dqm_algorithms::tools::Torus }
 

Functions

std::map< std::string, double > dqm_algorithms::tools::GetFitParams (const TF1 *func)
 
std::map< std::string, double > dqm_algorithms::tools::GetFitParamErrors (const TF1 *func)
 
dqm_core::Resultdqm_algorithms::tools::MakeComparisons (const std::map< std::string, double > &algparams, const std::map< std::string, double > &gthreshold, const std::map< std::string, double > &rthreshold)
 
dqm_core::Resultdqm_algorithms::tools::CompareWithErrors (const std::map< std::string, double > &algparams, const std::map< std::string, double > &paramErrors, const std::map< std::string, double > &gthreshold, const std::map< std::string, double > &rthreshold, double minSig)
 
dqm_core::Resultdqm_algorithms::tools::GetFitResult (const TF1 *func, const dqm_core::AlgorithmConfig &config, double minSig=0)
 
double dqm_algorithms::tools::GetFirstFromMap (const std::string &paramName, const std::map< std::string, double > &params)
 
double dqm_algorithms::tools::GetFirstFromMap (const std::string &paramName, const std::map< std::string, double > &params, double defaultValue)
 
const std::string & dqm_algorithms::tools::GetFirstFromMap (const std::string &paramName, const std::map< std::string, std::string > &params)
 
const std::string & dqm_algorithms::tools::GetFirstFromMap (const std::string &paramName, const std::map< std::string, std::string > &params, const std::string &defaultValue)
 
std::vector< int > dqm_algorithms::tools::GetBinRange (const TH1 *histogram, const std::map< std::string, double > &params)
 
void dqm_algorithms::tools::PublishBin (const TH1 *histogram, int xbin, int ybin, double content, dqm_core::Result *result)
 
TH1 * dqm_algorithms::tools::DivideByHistogram (const TH1 *hNumerator, const TH1 *hDenominator)
 
void dqm_algorithms::tools::ModifyHistogram (TH1 *histogram, const dqm_core::AlgorithmConfig &config)
 
std::string dqm_algorithms::tools::ExtractAlgorithmName (const dqm_core::AlgorithmConfig &config)
 
dqm_core::Resultdqm_algorithms::tools::ExecuteNamedAlgorithm (const std::string &name, const TObject &object, const dqm_core::AlgorithmConfig &config)
 
TH1 * dqm_algorithms::tools::BookHistogramByExample (const TH1 *histogram, const std::string &name, const std::string &title, AxisType axisType)
 
template<class T >
const T & dqm_algorithms::tools::GetFromMap (const std::string &pname, const std::map< std::string, T > &params)
 
void dqm_algorithms::tools::handleReference (const TObject &inputReference, const TObject *&firstReference, TObject *&secondReference)
 Helper function used to handle complex reference histograms This function gets as input a reference object and checks if it is a collection of references, in this case extracts and returns the first element. More...
 
void dqm_algorithms::tools::findOutliers (std::vector< binContainer > &input, double &mean, double &scale, int &nIn, int nIterations, double exponent, double threshold, double SBCF=1., double nStop=8.)
 
void dqm_algorithms::tools::findOutliersUsingErrors (std::vector< binContainer > &input, double &mean, double &meanError, int &nIn, double mindiff=0, int minNin=4)
 
binCluster dqm_algorithms::tools::buildCluster (binContainer &seed, const std::vector< std::vector< binContainer * > > &binMap, const std::vector< double > &xValues, const std::vector< double > &yValues, double threhold, int topology=CylinderX)
 
std::vector< std::vector< binContainer * > > dqm_algorithms::tools::makeBinMap (std::vector< dqm_algorithms::tools::binContainer > &bins, int ixmax, int iymax, int topology=CylinderX)
 
dqm_core::Result::Status dqm_algorithms::tools::WorstCaseAddStatus (dqm_core::Result::Status baseStatus, dqm_core::Result::Status addedStatus, float weight=1.0)
 
dqm_core::Result::Status dqm_algorithms::tools::BestCaseAddStatus (dqm_core::Result::Status baseStatus, dqm_core::Result::Status addedStatus, float weight=1.0)
 
std::pair< double, double > dqm_algorithms::tools::CalcBinsProbChisq (const std::vector< double > &inputval, const std::vector< double > &inputerr, double x0, double x0_err)
 
std::pair< double, double > dqm_algorithms::tools::CalcBinsProbChisq (const std::vector< double > &inputval, const std::vector< double > &inputerr, const std::vector< double > &x0, const std::vector< double > &x0_err)
 
void dqm_algorithms::tools::MergePastMinStat (std::vector< std::vector< tools::binContainer > > &strips, int minStat)
 
void dqm_algorithms::tools::MakeBinTag (const binContainer &bin, std::string &tag)
 
void dqm_algorithms::tools::FormatToSize (double value, int size, std::string &str, bool showSign=true)