ATLAS Offline Software
Classes | Namespaces | Functions
PufitUtils.h File Reference
#include <Eigen/Dense>
#include "TrigEFMissingET/SignedKinematics.h"
#include "TrigEFMissingET/PufitGrid.h"
#include "TrigEFMissingET/PufitMultiGrid.h"
#include <vector>
#include "TrigEFMissingET/PufitUtils.icc"
Include dependency graph for PufitUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HLT::MET::PufitUtils::CovarianceSum
 Helper struct to hold the sum over pileup objects and its covariance. More...
 

Namespaces

 HLT
 It used to be useful piece of code for replacing actual SG with other store of similar functionality In fact it used to be more like interface adapter for ARA objects access, nevertheless since the ARA project is gone it is only an unnecessary extra layer.
 
 HLT::MET
 
 HLT::MET::PufitUtils
 

Functions

void HLT::MET::PufitUtils::trimmedMeanAndVariance (const std::vector< double > &sorted, double trimFraction, double &mean, double &variance)
 Calculate the trimmed mean and variance for a vector of tower sumEts. More...
 
void HLT::MET::PufitUtils::trimmedMeanAndVariance (const PufitGrid &grid, double trimFraction, double &mean, double &variance)
 Calculate the trimmed mean and variance for a vector of tower sumEts. More...
 
template<std::size_t N>
void HLT::MET::PufitUtils::trimmedMeanAndVariance (const PufitMultiGrid< N > &grid, std::size_t type, double trimFraction, double &mean, double &variance)
 Calculate the trimmed mean and variance for a vector of tower sumEts. More...
 
void HLT::MET::PufitUtils::unmaskedMeanAndVariance (const PufitGrid &grid, double &mean, double &variance)
 Calculate the mean and variance of unmasked towers. More...
 
template<std::size_t N>
void HLT::MET::PufitUtils::unmaskedMeanAndVariance (const PufitMultiGrid< N > &grid, int type, double &mean, double &variance)
 Calculate the mean and variance of unmasked towers. More...
 
GridDisplacement HLT::MET::PufitUtils::selectGrid (const PufitGridSet &grids)
 Select the grid with the highest masked sumEt. More...
 
template<typename Grid >
GridDisplacement HLT::MET::PufitUtils::selectGrid (const PufitMultiGridSet< Grid > &grids, std::size_t type)
 Select the grid with the highest masked sumEt. More...
 
Eigen::VectorXd HLT::MET::PufitUtils::pufit (const Eigen::Vector2d &pileupSum, const Eigen::Matrix2d &pileupCovariance, const Eigen::VectorXd &towerExpectations, const Eigen::VectorXd &towerVariances, const Eigen::VectorXd &correctionDirections, double constraintImportance=1)
 Perform the pile-up fit. More...
 
Eigen::VectorXd HLT::MET::PufitUtils::pufit (const Eigen::Vector2d &pileupSum, const Eigen::Matrix2d &pileupCovariance, const Eigen::VectorXd &towerExpectations, const Eigen::VectorXd &towerVariances, const Eigen::Matrix< double, 2, Eigen::Dynamic > &cosSin, double constraintImportance=1)
 Perform the pile-up fit. More...
 
std::vector< SignedKinematics > HLT::MET::PufitUtils::pufit (const Eigen::Vector2d &pileupSum, const Eigen::Matrix2d &pileupCovariance, const std::vector< double > &towerExpectations, const std::vector< double > &towerVariances, const std::vector< SignedKinematics > &toCorrect, double constraintImportance=1)
 Perform the pile-up fit. More...
 
Eigen::VectorXd HLT::MET::PufitUtils::pufit (const Eigen::Vector2d &pileupSum, const Eigen::Matrix2d &pileupCovariance, double towerMean, double towerVariance, const Eigen::VectorXd &correctionDirections, double constraintImportance=1)
 Perform the pile-up fit. More...
 
Eigen::VectorXd HLT::MET::PufitUtils::pufit (const Eigen::Vector2d &pileupSum, const Eigen::Matrix2d &pileupCovariance, double towerMean, double towerVariance, const Eigen::Matrix< double, 2, Eigen::Dynamic > &cosSin, double constraintImportance=1)
 Perform the pile-up fit. More...
 
std::vector< SignedKinematics > HLT::MET::PufitUtils::pufit (const Eigen::Vector2d &pileupSum, const Eigen::Matrix2d &pileupCovariance, double towerMean, double towerVariance, const std::vector< SignedKinematics > &toCorrect, double constraintImportance=1)
 Perform the pile-up fit. More...