![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef NEUTRINOWEIGHTING_H_
6 #define NEUTRINOWEIGHTING_H_
64 std::string
name()
const override {
return "RECO:NEUTRINOWEIGHTING";}
87 double neutrino_weight(
const TLorentzVector&,
const TLorentzVector&,
double,
double)
const;
TLorentzVector getv1() const
double m_bmass
B jet mass constraint.
TopConfig A simple configuration that is NOT a singleton.
int getNumSolutions() const
bool apply(const top::Event &) const override
This does stuff based on the information in an event.
double neutrinos[2000][3]
Sampling points.
std::string name() const override
A human readable name.
TLorentzVector getv2() const
virtual ~NeutrinoWeighting()
TLorentzVector m_v1
First solution from the quadratic, check m_solutions is 2 first.
void setSolutions(int num)
double neutrino_weight(const TLorentzVector &, const TLorentzVector &, double, double) const
Calculate the weight for this combination of particles by comparing with Met.
double m_wmass
W jet mass constraint.
int etaSize
Delta eta sampling size. For the mass we don't need to sample so many points.
This should apply event-level cuts and perform simple plotting on top::Event objects.
Holds the two solutions from the quadratic equation as TLorentVectors.
TLorentzVector m_v2
Second solution from the quadratic, check m_solutions is 2 first.
NWSolution solveForNeutrinoEta(const TLorentzVector &lepton, const TLorentzVector &bJet, double topMass, int index) const
void setSolutions(int num, const TLorentzVector &a, const TLorentzVector &b)
Very simple class to hold event data after reading from a file.
int m_solutions
Number of solutions. 0 or 2, one solution isn't possible due to the use of floats.