|
ATLAS Offline Software
|
Go to the documentation of this file.
28 CHECK(m_clusterKey.initialize());
29 return initializeBase({
"AllTowers",
"UncorrSelTowers"});
34 const EventContext &context,
42 return StatusCode::FAILURE;
50 gridset += SignedKinematics::fromEnergyEtaPhi(
51 iclus->e(), iclus->eta(), iclus->phi());
72 std::vector<SignedKinematics> masked;
78 m_caloNoise * m_caloNoise +
79 tower.kinematics().absPt() * m_caloStoch * m_caloStoch;
83 masked.push_back(tower);
89 METComponent
sum = grid.sum(PufitGrid::SumStrategy::Masked);
91 sum.fillMETComponent(1,
met);
104 m_constraintImportance);
107 for (
const SignedKinematics &kin : corrections)
111 return StatusCode::SUCCESS;
Bins energy deposits into a grid.
Eigen::VectorXd pufit(const Eigen::Vector2d &pileupSum, const Eigen::Matrix2d &pileupCovariance, const Eigen::VectorXd &towerExpectations, const Eigen::VectorXd &towerVariances, const Eigen::VectorXd &correctionDirections, double constraintImportance)
Perform the pile-up fit.
Eigen::Vector2d sum
The sum.
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
Helper struct to contain a full set of grids.
Eigen::Matrix2d covariance
The covariance matrix.
Helper struct to hold the sum over pileup objects and its covariance.
@ NoDisplacement
The grid is not shifted.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
GridDisplacement
Enum to describe the positioning of the grid.
Description of a calorimeter cluster.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
::StatusCode StatusCode
StatusCode definition for legacy code.
Describes a single element of the grid.
GridDisplacement selectGrid(const PufitGridSet &grids)
Select the grid with the highest masked sumEt.
#define CHECK(...)
Evaluate an expression and check for errors.
void trimmedMeanAndVariance(const std::vector< double > &sorted, double trimFraction, double &mean, double &variance)
Calculate the trimmed mean and variance for a vector of tower sumEts.
CovarianceSum & add(const SignedKinematics &kin, double sigma)
Add a new contribution to the sum.
TCPufitFex(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Class holding the Missing ET trigger fex results.
StatusCode fillMET(xAOD::MissingET *&met, xAOD::MissingETContainer *metCont, const std::string &metKey, const MissingETBase::Types::bitmask_t metSource)