Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t > Struct Template Reference

Class for radiative corrections to the neutrino CC-DIS weights, based on references: More...

#include <JEvtWeightFactorRadiativeCorrections.hh>

Inheritance diagram for JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t >:
JLANG::JClonable< JClonable_t, JDerived_t >

Classes

struct  JEvtWeightFactorRadiativeCorrectionsHelper
 Auxiliary class for I/O of constant event-weight factor. More...
 

Public Types

typedef JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t > JEvtWeightFactorRadiativeCorrections_t
 
typedef JClonable< JClonable_t >::clone_type clone_type
 

Public Member Functions

 JEvtWeightFactorRadiativeCorrections ()
 Default constructor.
 
double getFactor (const Evt &evt) const override final
 Get event-weight factor of given event.
 
JProperties getProperties (const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) override final
 Get properties of this class.
 
JProperties getProperties (const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) const override final
 Get properties of this class.
 
virtual clone_type clone () const override
 Get clone of this object.
 

Static Public Member Functions

static std::pair< double, JElectricCharge > getQuarkParameters (const int pdg)
 Get the quark mass and charge corresponding to a given PDG code.
 
static double getChargedLeptonMass (const int pdg)
 Get the mass of a charged lepton corresponding to a given PDG code.
 

Detailed Description

template<class JEvtWeightFactor_t = JEvtWeightFactor>
struct JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t >

Class for radiative corrections to the neutrino CC-DIS weights, based on references:

  • JHEP06(2005)078, "Radiative corrections to neutrino deep inelastic scattering revisited" by Andrej B. Arbuzov, Dmitry Yu. Bardin and Lidia V. Kalinovskaya, and
  • JINR-E2-86-260 (1986), "On the radiative corrections to the neutrino deep inelastic scattering", by D. Yu Bardin and V.A. Dokuchaeva

The template argument refers to the type of event-weighter.

N.B.: Unless the primary quark PDG code is available in the Evt::usr vector, this class assumes a QE-like scenario, in which:

  • neutrinos are assumed to scatter exclusively on down-type quarks, whilst
  • anti-neutrinos are assumed to scatter exclusively on up-type quarks.

N.B.: Corrections for NC events are only calculated if the LoopTools software package is available.

Definition at line 63 of file JEvtWeightFactorRadiativeCorrections.hh.

Member Typedef Documentation

◆ JEvtWeightFactorRadiativeCorrections_t

template<class JEvtWeightFactor_t = JEvtWeightFactor>
JEvtWeightFactorRadiativeCorrections<JEvtWeightFactor_t> JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t >::JEvtWeightFactorRadiativeCorrections_t

Definition at line 66 of file JEvtWeightFactorRadiativeCorrections.hh.

◆ clone_type

template<class JClonable_t , class JDerived_t >
JClonable<JClonable_t>::clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone_type
inherited

Definition at line 61 of file JClonable.hh.

Constructor & Destructor Documentation

◆ JEvtWeightFactorRadiativeCorrections()

template<class JEvtWeightFactor_t = JEvtWeightFactor>
JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t >::JEvtWeightFactorRadiativeCorrections ( )
inline

Default constructor.

Definition at line 72 of file JEvtWeightFactorRadiativeCorrections.hh.

73 {}

Member Function Documentation

◆ getQuarkParameters()

template<class JEvtWeightFactor_t = JEvtWeightFactor>
static std::pair< double, JElectricCharge > JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t >::getQuarkParameters ( const int pdg)
inlinestatic

Get the quark mass and charge corresponding to a given PDG code.

Parameters
pdgPDG code
Returns
pair of quark mass [GeV] and quark charge [e/3]

Definition at line 82 of file JEvtWeightFactorRadiativeCorrections.hh.

83 {
84 static const JPDBSelection& quarks = getQuarks();
85
86 if (quarks.hasPDG(pdg)) {
87
88 const JParticle& quark = quarks.getPDG(pdg);
89
90 return std::make_pair(quark.mass, quark.charge);
91
92 } else {
93 THROW(JValueOutOfRange, "JEvtWeightFactorRadiativeCorrections::getQuarkParameter(): Invalid quark PDG code " << pdg);
94 }
95 }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
const JPDBSelection & getQuarks()
Retrieve quark entries from particle data book.
Definition JPDB.hh:317

◆ getChargedLeptonMass()

template<class JEvtWeightFactor_t = JEvtWeightFactor>
static double JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t >::getChargedLeptonMass ( const int pdg)
inlinestatic

Get the mass of a charged lepton corresponding to a given PDG code.

Parameters
pdgPDG code
Returns
charged lepton mass

Definition at line 104 of file JEvtWeightFactorRadiativeCorrections.hh.

105 {
106 static const JPDBSelection& charged_leptons = getChargedLeptons();
107
108 if (charged_leptons.hasPDG(pdg)) {
109
110 const JParticle& charged_lepton = charged_leptons.getPDG(pdg);
111
112 return charged_lepton.mass;
113
114 } else {
115 THROW(JValueOutOfRange, "JEvtWeightFactorRadiativeCorrections::getChargedLeptonMass(): Invalid charged lepton PDG code " << pdg);
116 }
117 }
const JPDBSelection & getChargedLeptons()
Retrieve charged lepton entries from particle data book.
Definition JPDB.hh:343

◆ getFactor()

template<class JEvtWeightFactor_t = JEvtWeightFactor>
double JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t >::getFactor ( const Evt & evt) const
inlinefinaloverride

Get event-weight factor of given event.

Parameters
evtevent
Returns
event-weight factor

< Squared invariant mass, multiplied by Björken-x

< Inelasticity threshold

< Radiative correction acceptance threshold

Definition at line 126 of file JEvtWeightFactorRadiativeCorrections.hh.

127 {
128 const Trk& neutrino = get_neutrino(evt);
129
130 if (evt.w2list.size() <= W2LIST_GSEAGEN_CC) {
131 THROW(JIndexOutOfRange, "JEvtWeightFactorRadiativeCorrections::getFactor(): W2LIST_GSEAGEN_CC unavailable");
132 }
133
134 const int interactionType = evt.w2list[W2LIST_GSEAGEN_CC];
135 const int scatteringType = evt.w2list[W2LIST_GSEAGEN_ICHAN];
136
137 if (scatteringType != (int) JGENIEScatteringType_t::DEEP_INELASTIC) { return 1.0; }
138
139 const double Q2 = getQ2(evt);
140
141 const double mN = get_target_nucleon_mass(evt);
142
143 const double x = evt.w2list[W2LIST_GSEAGEN_BX];
144 const double y = evt.w2list[W2LIST_GSEAGEN_BY];
145
146 const double Sx = Q2 / y + x * mN*mN; //!< Squared invariant mass, multiplied by Björken-x
147
148 const bool antiNeutrino = neutrino.type < 0;
149
150 auto [m1, q1] = (antiNeutrino ? // Assume neutrino-down or anti-neutrino-down scattering by default
153
154 const bool hasPrimaryQuarkInfo = evt.haveusr(PRIMARY_QUARK_PDG_KEY);
155
156 if (hasPrimaryQuarkInfo) { // Update quark parameters if primary quark PDG code is available
157 const int pdg = evt.getusr(PRIMARY_QUARK_PDG_KEY);
158 std::tie(m1, q1) = getQuarkParameters(pdg);
159 }
160
161 const int Ltype = neutrino.type + (antiNeutrino ? +1 : -1);
162 const double mL = getChargedLeptonMass(Ltype);
163
164 switch (interactionType) {
166
167 if (!antiNeutrino) {
168
169 return getRadiativeCorrectionCCDISNeutrino(y, Sx, mL, q1);
170
171 } else if (hasPrimaryQuarkInfo) {
172
173 return getRadiativeCorrectionCCDISAntiNeutrino(y, Sx, mL, q1);
174
175 } else { // Try valence up quark assumption for anti-neutrino CC DIS
176
177 static const double yThreshold = 0.95; //!< Inelasticity threshold
178 static const double RCthreshold = 1.1; //!< Radiative correction acceptance threshold
179
180 double RC = getRadiativeCorrectionCCDISAntiNeutrino(y, Sx, mL, q1);
181
182 // Very high values of RC * (1-y)^2 for anti-neutrino CC DIS at very high inelasticities
183 // off assumed valence up-quark, strongly suggest valence quark assumption was wrong;
184 // Retry with anti-down quark assumption.
185 if (y > yThreshold && RC * (1.0 - y) * (1.0 + y) > RCthreshold) {
186 std::tie(m1, q1) = getQuarkParameters(QUARK_TYPE_ANTIDOWN);
187 RC = getRadiativeCorrectionCCDISAntiNeutrino(y, Sx, mL, q1);
188 }
189
190 return RC < RCthreshold ? RC : 1.0;
191 }
192 }
194 return (!antiNeutrino ?
195 getRadiativeCorrectionNCDISNeutrino (y, Sx, Q2, mL, m1, q1) :
196 getRadiativeCorrectionNCDISAntiNeutrino(y, Sx, Q2, mL, m1, q1));
197 }
198 default:
199 return 1.0;
200 }
201 }
@ QUARK_TYPE_ANTIDOWN
static const char *const PRIMARY_QUARK_PDG_KEY
ID string for primary quark user info.
double get_target_nucleon_mass(const Evt &evt)
Get target nucleon mass.
@ WEAK_NEUTRAL_CURRENT
Weak neutral current interaction.
@ WEAK_CHARGED_CURRENT
Weak charged current interaction.
@ DEEP_INELASTIC
Deep Inelastic Scattering.
double getQ2(const Evt &event)
Get negative squared momentum transfer (Q^2 = -q^2 >= 0) of a neutrino interaction.
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
bool haveusr(const std::string &key) const
Check availability of user data of the item with given key.
Definition AAObject.hh:42
double getusr(const std::string &key) const
Get user data item with given key.
Definition AAObject.hh:72
std::vector< double > w2list
MC: factors that make up w[1]=w2 (see e.g. Tag list or km3net-dataformat/definitions)
Definition Evt.hh:43
static std::pair< double, JElectricCharge > getQuarkParameters(const int pdg)
Get the quark mass and charge corresponding to a given PDG code.
static double getChargedLeptonMass(const int pdg)
Get the mass of a charged lepton corresponding to a given PDG code.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
Definition Trk.hh:15
int type
MC: particle type in PDG encoding.
Definition Trk.hh:24
static const int W2LIST_GSEAGEN_BX
Bjorken x.
static const int W2LIST_GSEAGEN_CC
Charged current interaction flag.
static const int W2LIST_GSEAGEN_ICHAN
Interaction channel.
static const int W2LIST_GSEAGEN_BY
Bjorken y.

◆ getProperties() [1/2]

template<class JEvtWeightFactor_t = JEvtWeightFactor>
JProperties JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t >::getProperties ( const JEquationParameters & eqpars = JEvtWeightFactor::getEquationParameters())
inlinefinaloverride

Get properties of this class.

Parameters
eqparsequation parameters

Definition at line 209 of file JEvtWeightFactorRadiativeCorrections.hh.

210 {
211 return JEvtWeightFactorRadiativeCorrectionsHelper(*this, eqpars);
212 }

◆ getProperties() [2/2]

template<class JEvtWeightFactor_t = JEvtWeightFactor>
JProperties JAANET::JEvtWeightFactorRadiativeCorrections< JEvtWeightFactor_t >::getProperties ( const JEquationParameters & eqpars = JEvtWeightFactor::getEquationParameters()) const
inlinefinaloverride

Get properties of this class.

Parameters
eqparsequation parameters

Definition at line 220 of file JEvtWeightFactorRadiativeCorrections.hh.

221 {
222 return JEvtWeightFactorRadiativeCorrectionsHelper(*this, eqpars);
223 }

◆ clone()

template<class JClonable_t , class JDerived_t >
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlineoverridevirtualinherited

The documentation for this struct was generated from the following file: