ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
top::NWSolution Class Reference

Holds the two solutions from the quadratic equation as TLorentVectors. More...

#include <NeutrinoWeighting.h>

Collaboration diagram for top::NWSolution:

Public Member Functions

void setSolutions (int num, const TLorentzVector &a, const TLorentzVector &b)
 
void setSolutions (int num)
 
int getNumSolutions () const
 
TLorentzVector getv1 () const
 
TLorentzVector getv2 () const
 

Private Attributes

int m_solutions
 Number of solutions. 0 or 2, one solution isn't possible due to the use of floats. More...
 
TLorentzVector m_v1
 First solution from the quadratic, check m_solutions is 2 first. More...
 
TLorentzVector m_v2
 Second solution from the quadratic, check m_solutions is 2 first. More...
 

Detailed Description

Holds the two solutions from the quadratic equation as TLorentVectors.

Filled when solving the quadratic equation to calculate the 4 Vectors for the two neutrinos in the event.

Definition at line 19 of file NeutrinoWeighting.h.

Member Function Documentation

◆ getNumSolutions()

int top::NWSolution::getNumSolutions ( ) const
inline

Definition at line 31 of file NeutrinoWeighting.h.

31  {
32  return m_solutions;
33  }

◆ getv1()

TLorentzVector top::NWSolution::getv1 ( ) const
inline

Definition at line 35 of file NeutrinoWeighting.h.

35  {
36  return m_v1;
37  }

◆ getv2()

TLorentzVector top::NWSolution::getv2 ( ) const
inline

Definition at line 39 of file NeutrinoWeighting.h.

39  {
40  return m_v2;
41  }

◆ setSolutions() [1/2]

void top::NWSolution::setSolutions ( int  num)
inline

Definition at line 27 of file NeutrinoWeighting.h.

27  {
28  m_solutions = num;
29  }

◆ setSolutions() [2/2]

void top::NWSolution::setSolutions ( int  num,
const TLorentzVector &  a,
const TLorentzVector &  b 
)
inline

Definition at line 21 of file NeutrinoWeighting.h.

21  {
22  m_v1 = a;
23  m_v2 = b;
24  m_solutions = num;
25  }

Member Data Documentation

◆ m_solutions

int top::NWSolution::m_solutions
private

Number of solutions. 0 or 2, one solution isn't possible due to the use of floats.

Definition at line 45 of file NeutrinoWeighting.h.

◆ m_v1

TLorentzVector top::NWSolution::m_v1
private

First solution from the quadratic, check m_solutions is 2 first.

Definition at line 48 of file NeutrinoWeighting.h.

◆ m_v2

TLorentzVector top::NWSolution::m_v2
private

Second solution from the quadratic, check m_solutions is 2 first.

Definition at line 51 of file NeutrinoWeighting.h.


The documentation for this class was generated from the following file:
top::NWSolution::m_v1
TLorentzVector m_v1
First solution from the quadratic, check m_solutions is 2 first.
Definition: NeutrinoWeighting.h:48
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
top::NWSolution::m_v2
TLorentzVector m_v2
Second solution from the quadratic, check m_solutions is 2 first.
Definition: NeutrinoWeighting.h:51
a
TList * a
Definition: liststreamerinfos.cxx:10
top::NWSolution::m_solutions
int m_solutions
Number of solutions. 0 or 2, one solution isn't possible due to the use of floats.
Definition: NeutrinoWeighting.h:45