GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
genie::Kinematics Class Reference

Generated/set kinematical variables for an event. More...

#include <Kinematics.h>

Inheritance diagram for genie::Kinematics:
Inheritance graph
[legend]
Collaboration diagram for genie::Kinematics:
Collaboration graph
[legend]

Public Member Functions

 Kinematics ()
 
 Kinematics (const Kinematics &kv)
 
 Kinematics (TRootIOCtor *)
 
 ~Kinematics ()
 
double x (bool selected=false) const
 
double y (bool selected=false) const
 
double Q2 (bool selected=false) const
 
double q2 (bool selected=false) const
 
double W (bool selected=false) const
 
double t (bool selected=false) const
 
double Logx (bool selected=false) const
 
double Logy (bool selected=false) const
 
double LogQ2 (bool selected=false) const
 
double LogW (bool selected=false) const
 
double Log10x (bool selected=false) const
 
double Log10y (bool selected=false) const
 
double Log10Q2 (bool selected=false) const
 
double Log10W (bool selected=false) const
 
const TLorentzVector & FSLeptonP4 (void) const
 
const TLorentzVector & HadSystP4 (void) const
 
void Setx (double x, bool selected=false)
 
void Sety (double y, bool selected=false)
 
void SetQ2 (double Q2, bool selected=false)
 
void Setq2 (double q2, bool selected=false)
 
void SetW (double W, bool selected=false)
 
void Sett (double t, bool selected=false)
 
void SetFSLeptonP4 (const TLorentzVector &p4)
 
void SetFSLeptonP4 (double px, double py, double pz, double E)
 
void SetHadSystP4 (const TLorentzVector &p4)
 
void SetHadSystP4 (double px, double py, double pz, double E)
 
bool KVSet (KineVar_t kv) const
 
double GetKV (KineVar_t kv) const
 
void SetKV (KineVar_t kv, double value)
 
void ClearRunningValues (void)
 
void UseSelectedKinematics (void)
 
void Reset (void)
 
void Copy (const Kinematics &kine)
 
void Print (ostream &stream) const
 
Kinematicsoperator= (const Kinematics &kine)
 

Private Member Functions

void Init (void)
 initialize More...
 
void CleanUp (void)
 clean-up More...
 

Private Attributes

map< KineVar_t, double > fKV
 selected kinematics More...
 
TLorentzVector * fP4Fsl
 generated final state primary lepton 4-p (LAB) More...
 
TLorentzVector * fP4HadSyst
 generated final state hadronic system 4-p (LAB) More...
 

Friends

ostream & operator<< (ostream &stream, const Kinematics &kine)
 

Detailed Description

Generated/set kinematical variables for an event.

Author
Costas Andreopoulos <c.andreopoulos cern.ch> University of Liverpool
Created:
May 08, 2004
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 39 of file Kinematics.h.

Constructor & Destructor Documentation

Kinematics::Kinematics ( )

Definition at line 33 of file Kinematics.cxx.

References Init().

33  :
34 TObject()
35 {
36  this->Init();
37 }
void Init(void)
initialize
Definition: Kinematics.cxx:59
Kinematics::Kinematics ( const Kinematics kv)

Definition at line 39 of file Kinematics.cxx.

References Copy(), and Init().

39  :
40 TObject()
41 {
42  this->Init();
43  this->Copy(kinematics);
44 }
void Copy(const Kinematics &kine)
Definition: Kinematics.cxx:83
void Init(void)
initialize
Definition: Kinematics.cxx:59
Kinematics::Kinematics ( TRootIOCtor *  )

Definition at line 46 of file Kinematics.cxx.

46  :
47 TObject(),
48 fP4Fsl(0),
49 fP4HadSyst(0)
50 {
51 
52 }
TLorentzVector * fP4HadSyst
generated final state hadronic system 4-p (LAB)
Definition: Kinematics.h:104
TLorentzVector * fP4Fsl
generated final state primary lepton 4-p (LAB)
Definition: Kinematics.h:103
Kinematics::~Kinematics ( )

Definition at line 54 of file Kinematics.cxx.

References CleanUp().

55 {
56  this->CleanUp();
57 }
void CleanUp(void)
clean-up
Definition: Kinematics.cxx:67

Member Function Documentation

void Kinematics::CleanUp ( void  )
private

clean-up

Definition at line 67 of file Kinematics.cxx.

References fKV, fP4Fsl, and fP4HadSyst.

Referenced by ~Kinematics().

68 {
69  fKV.clear();
70 
71  delete fP4Fsl;
72  delete fP4HadSyst;
73 }
TLorentzVector * fP4HadSyst
generated final state hadronic system 4-p (LAB)
Definition: Kinematics.h:104
map< KineVar_t, double > fKV
selected kinematics
Definition: Kinematics.h:102
TLorentzVector * fP4Fsl
generated final state primary lepton 4-p (LAB)
Definition: Kinematics.h:103
void Kinematics::ClearRunningValues ( void  )

Definition at line 347 of file Kinematics.cxx.

References fKV, genie::kKVQ2, genie::kKVq2, genie::kKVt, genie::kKVW, genie::kKVx, and genie::kKVy.

Referenced by genie::COHKinematicsGenerator::CalculateKin_AlvarezRuso(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgalFM(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), genie::CEvNSEventGenerator::GenerateKinematics(), genie::COHDNuEventGenerator::GenerateKinematics(), main(), genie::HELeptonKinematicsGenerator::ProcessEventRecord(), genie::NuEKinematicsGenerator::ProcessEventRecord(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::DMEKinematicsGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::ProcessEventRecord(), genie::DMELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::SPPEventGenerator::ProcessEventRecord(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::RSPPResonanceSelector::SelectResonance(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), and genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode().

348 {
349 // clear the running values (leave the selected ones)
350 //
351  fKV.erase( kKVx );
352  fKV.erase( kKVy );
353  fKV.erase( kKVQ2 );
354  fKV.erase( kKVq2 );
355  fKV.erase( kKVW );
356  fKV.erase( kKVt );
357 }
map< KineVar_t, double > fKV
selected kinematics
Definition: Kinematics.h:102
void Kinematics::Copy ( const Kinematics kine)

Definition at line 83 of file Kinematics.cxx.

References fKV, fP4Fsl, fP4HadSyst, Reset(), SetFSLeptonP4(), SetHadSystP4(), and SetKV().

Referenced by Kinematics(), operator=(), and genie::Interaction::SetKine().

84 {
85  this->Reset();
86 
87  map<KineVar_t, double>::const_iterator iter;
88 
89  for(iter = kinematics.fKV.begin(); iter != kinematics.fKV.end(); ++iter) {
90  KineVar_t kv = iter->first;
91  double val = iter->second;
92  this->SetKV(kv,val);
93  }
94 
95  this->SetFSLeptonP4 (*kinematics.fP4Fsl);
96  this->SetHadSystP4 (*kinematics.fP4HadSyst);
97 }
void Reset(void)
Definition: Kinematics.cxx:75
void SetFSLeptonP4(const TLorentzVector &p4)
Definition: Kinematics.cxx:297
enum genie::EKineVar KineVar_t
void SetKV(KineVar_t kv, double value)
Definition: Kinematics.cxx:335
void SetHadSystP4(const TLorentzVector &p4)
Definition: Kinematics.cxx:307
const TLorentzVector& genie::Kinematics::FSLeptonP4 ( void  ) const
inline
double Kinematics::GetKV ( KineVar_t  kv) const

Definition at line 323 of file Kinematics.cxx.

References genie::KineVar::AsString(), fKV, KVSet(), LOG, and pWARN.

Referenced by genie::SKHadronicSystemGenerator::CalculateHadronicSystem_AtharSingleKaon(), genie::LabFrameHadronTensorI::contraction(), genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::SmithMonizQELCCPXSec::d3sQES_dQ2dvdkF_SM(), genie::TabulatedLabFrameHadronTensor::dSigma_dT_dCosTheta(), genie::TabulatedLabFrameHadronTensor::dSigma_dT_dCosTheta_rosenbluth(), genie::MECScaleVsW::GetScaling(), genie::utils::kinematics::Jacobian(), genie::SuSAv2MECPXSec::PairRatio(), genie::HENuElGenerator::ProcessEventRecord(), genie::PhotonCOHGenerator::ProcessEventRecord(), genie::PhotonRESGenerator::ProcessEventRecord(), genie::GLRESGenerator::ProcessEventRecord(), Q2(), q2(), t(), W(), x(), genie::EmpiricalMECPXSec2015::XSec(), genie::GLRESPXSec::XSec(), genie::PhotonCOHPXSec::XSec(), genie::AlamSimoAtharVacasSKPXSec2014::XSec(), genie::HENuElPXSec::XSec(), genie::PhotonRESPXSec::XSec(), genie::SuSAv2QELPXSec::XSec(), genie::NievesSimoVacasMECPXSec2016::XSec(), genie::SuSAv2MECPXSec::XSec(), genie::MKSPPPXSec2020::XSec(), and y().

324 {
325  if(this->KVSet(kv)) {
326  map<KineVar_t, double>::const_iterator iter = fKV.find(kv);
327  return iter->second;
328  } else {
329  LOG("Interaction", pWARN)
330  << "Kinematic variable: " << KineVar::AsString(kv) << " was not set";
331  }
332  return -99999;
333 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
bool KVSet(KineVar_t kv) const
Definition: Kinematics.cxx:317
map< KineVar_t, double > fKV
selected kinematics
Definition: Kinematics.h:102
#define pWARN
Definition: Messenger.h:60
static string AsString(KineVar_t kv)
Definition: KineVar.h:77
const TLorentzVector& genie::Kinematics::HadSystP4 ( void  ) const
inline
void Kinematics::Init ( void  )
private

initialize

Definition at line 59 of file Kinematics.cxx.

References fKV, fP4Fsl, and fP4HadSyst.

Referenced by Kinematics().

60 {
61  fKV.clear();
62 
63  fP4Fsl = new TLorentzVector;
64  fP4HadSyst = new TLorentzVector;
65 }
TLorentzVector * fP4HadSyst
generated final state hadronic system 4-p (LAB)
Definition: Kinematics.h:104
map< KineVar_t, double > fKV
selected kinematics
Definition: Kinematics.h:102
TLorentzVector * fP4Fsl
generated final state primary lepton 4-p (LAB)
Definition: Kinematics.h:103
bool Kinematics::KVSet ( KineVar_t  kv) const
double Kinematics::Log10Q2 ( bool  selected = false) const

Definition at line 219 of file Kinematics.cxx.

References Q2().

220 {
221  double Q2s = this->Q2(selected);
222  return (Q2s>0) ? TMath::Log10(Q2s) : -99999;
223 }
double Q2(bool selected=false) const
Definition: Kinematics.cxx:125
double Kinematics::Log10W ( bool  selected = false) const

Definition at line 225 of file Kinematics.cxx.

References W().

226 {
227  double Ws = this->W(selected);
228  return (Ws>0) ? TMath::Log10(Ws) : -99999;
229 }
double W(bool selected=false) const
Definition: Kinematics.cxx:157
double Kinematics::Log10x ( bool  selected = false) const

Definition at line 207 of file Kinematics.cxx.

References x().

208 {
209  double xs = this->x(selected);
210  return (xs>0) ? TMath::Log10(xs) : -99999;
211 }
double x(bool selected=false) const
Definition: Kinematics.cxx:99
double Kinematics::Log10y ( bool  selected = false) const

Definition at line 213 of file Kinematics.cxx.

References y(), and genie::units::ys.

214 {
215  double ys = this->y(selected);
216  return (ys>0) ? TMath::Log10(ys) : -99999;
217 }
double y(bool selected=false) const
Definition: Kinematics.cxx:112
static constexpr double ys
Definition: Units.h:103
double Kinematics::LogQ2 ( bool  selected = false) const

Definition at line 195 of file Kinematics.cxx.

References Q2().

196 {
197  double Q2s = this->Q2(selected);
198  return (Q2s>0) ? TMath::Log(Q2s) : -99999;
199 }
double Q2(bool selected=false) const
Definition: Kinematics.cxx:125
double Kinematics::LogW ( bool  selected = false) const

Definition at line 201 of file Kinematics.cxx.

References W().

202 {
203  double Ws = this->W(selected);
204  return (Ws>0) ? TMath::Log(Ws) : -99999;
205 }
double W(bool selected=false) const
Definition: Kinematics.cxx:157
double Kinematics::Logx ( bool  selected = false) const

Definition at line 183 of file Kinematics.cxx.

References x().

184 {
185  double xs = this->x(selected);
186  return (xs>0) ? TMath::Log(xs) : -99999;
187 }
double x(bool selected=false) const
Definition: Kinematics.cxx:99
double Kinematics::Logy ( bool  selected = false) const

Definition at line 189 of file Kinematics.cxx.

References y(), and genie::units::ys.

190 {
191  double ys = this->y(selected);
192  return (ys>0) ? TMath::Log(ys) : -99999;
193 }
double y(bool selected=false) const
Definition: Kinematics.cxx:112
static constexpr double ys
Definition: Units.h:103
Kinematics & Kinematics::operator= ( const Kinematics kine)

Definition at line 391 of file Kinematics.cxx.

References Copy().

392 {
393  this->Copy(kinematics);
394  return (*this);
395 }
void Copy(const Kinematics &kine)
Definition: Kinematics.cxx:83
void Kinematics::Print ( ostream &  stream) const

Definition at line 378 of file Kinematics.cxx.

References genie::KineVar::AsString(), and fKV.

Referenced by genie::operator<<().

379 {
380  stream << "[-] [Kinematics]" << endl;
381 
382  map<KineVar_t, double>::const_iterator iter;
383 
384  for(iter = fKV.begin(); iter != fKV.end(); ++iter) {
385  KineVar_t kv = iter->first;
386  double val = iter->second;
387  stream << " |--> " << KineVar::AsString(kv) << " = " << val << endl;
388  }
389 }
map< KineVar_t, double > fKV
selected kinematics
Definition: Kinematics.h:102
enum genie::EKineVar KineVar_t
static string AsString(KineVar_t kv)
Definition: KineVar.h:77
double Kinematics::Q2 ( bool  selected = false) const

Definition at line 125 of file Kinematics.cxx.

References GetKV(), genie::kKVQ2, genie::kKVq2, genie::kKVSelQ2, genie::kKVSelq2, KVSet(), LOG, and pWARN.

Referenced by genie::MECGenerator::AddFinalStateLepton(), genie::HEDISGenerator::AddPrimaryLepton(), genie::COHHadronicSystemGenerator::CalculateHadronicSystem_BergerSehgalFM(), genie::DFRKinematicsGenerator::ComputeMaxXSec(), ConvertToGST(), genie::KovalenkoQELCharmPXSec::DR(), genie::BergerSehgalFMCOHPiPXSec2015::ExactKinematicTerm(), genie::BergerSehgalCOHPiPXSec2015::ExactKinematicTerm(), GenerateEvent(), genie::TransverseEnhancementFFModel::GetTransEnhMagFF(), genie::KPhaseSpace::IsAllowed(), genie::utils::kinematics::Jacobian(), Log10Q2(), LogQ2(), genie::utils::nuclear::NuclQELXSecSuppression(), genie::BergerSehgalFMCOHPiPXSec2015::PionCOMAbsMomentum(), genie::BergerSehgalCOHPiPXSec2015::PionCOMAbsMomentum(), genie::PrimaryLeptonGenerator::ProcessEventRecord(), genie::OutgoingDarkGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::DMELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::QPMDISStrucFuncBase::Q2(), genie::QPMDMDISStrucFuncBase::Q2(), genie::utils::kinematics::Q2(), genie::KPhaseSpace::TLim(), genie::utils::kinematics::UpdateWYFromXQ2(), genie::utils::kinematics::UpdateXFromQ2Y(), genie::utils::kinematics::UpdateXYFromWQ2(), genie::BostedChristyEMPXSec::ValidKinematics(), genie::MKSPPPXSec2020::ValidKinematics(), genie::EmpiricalMECPXSec2015::XSec(), genie::PattonCEvNSPXSec::XSec(), genie::HEDISPXSec::XSec(), genie::AhrensNCELPXSec::XSec(), genie::RosenbluthPXSec::XSec(), genie::BergerSehgalFMCOHPiPXSec2015::XSec(), genie::BertuzzoDNuCOHPXSec::XSec(), genie::BergerSehgalCOHPiPXSec2015::XSec(), genie::AhrensDMELPXSec::XSec(), genie::P33PaschosLalakulichPXSec::XSec(), genie::BostedChristyEMPXSec::XSec(), genie::KovalenkoQELCharmPXSec::XSec(), genie::MKSPPPXSec2020::XSec(), and genie::KPhaseSpace::YLim().

126 {
127 // returns the running or selected value of momentum transfer Q2 (>0)
128 
129  if(selected) {
130  if (this->KVSet(kKVSelQ2) ) { return this->GetKV(kKVSelQ2); }
131  else if (this->KVSet(kKVSelq2) ) { return -1* this->GetKV(kKVSelq2); }
132  } else {
133  if (this->KVSet(kKVQ2) ) { return this->GetKV(kKVQ2); }
134  else if (this->KVSet(kKVq2) ) { return -1* this->GetKV(kKVq2); }
135  }
136 
137  LOG("Interaction", pWARN) << "Kinematic variable Q2 was not set";
138  return -99999;
139 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
bool KVSet(KineVar_t kv) const
Definition: Kinematics.cxx:317
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:323
#define pWARN
Definition: Messenger.h:60
double Kinematics::q2 ( bool  selected = false) const

Definition at line 141 of file Kinematics.cxx.

References GetKV(), genie::kKVQ2, genie::kKVq2, genie::kKVSelQ2, genie::kKVSelq2, KVSet(), LOG, and pWARN.

Referenced by CalculateFormFactor(), genie::SmithMonizQELCCPXSec::dsQES_dQ2_SM(), genie::DipoleAxialFormFactorModel::FA(), genie::ZExpAxialFormFactorModel::FA(), genie::MArunAxialFormFactorModel::FA(), genie::LwlynSmithFFNC::Fp(), genie::LwlynSmithFF::Fp(), genie::GalsterELFormFactorsModel::Gen(), genie::BBA03ELFormFactorsModel::Gen(), genie::BBA07ELFormFactorsModel::Gen(), genie::DipoleELFormFactorsModel::Gep(), genie::GalsterELFormFactorsModel::Gep(), genie::BBA03ELFormFactorsModel::Gep(), genie::BBA07ELFormFactorsModel::Gep(), genie::DipoleELFormFactorsModel::Gmn(), genie::BBA03ELFormFactorsModel::Gmn(), genie::BBA07ELFormFactorsModel::Gmn(), genie::DipoleELFormFactorsModel::Gmp(), genie::BBA03ELFormFactorsModel::Gmp(), genie::BBA07ELFormFactorsModel::Gmp(), genie::utils::nuclear::NuclQELXSecSuppression(), genie::MKFFCC::tau(), genie::MKFFEM::tau(), genie::BBA05ELFormFactorsModel::tau(), genie::LwlynSmithFF::tau(), genie::StrumiaVissaniIBDPXSec::XSec(), genie::LwlynSmithQELCCPXSec::XSec(), genie::PaisQELLambdaPXSec::XSec(), genie::ReinSehgalRESPXSec::XSec(), and genie::BSKLNBaseRESPXSec2014::XSec().

142 {
143 // returns the running or selected value of momentum transfer q2 (<0)
144 
145  if(selected) {
146  if (this->KVSet(kKVSelQ2) ) { return -1* this->GetKV(kKVSelQ2); }
147  else if (this->KVSet(kKVSelq2) ) { return this->GetKV(kKVSelq2); }
148  } else {
149  if (this->KVSet(kKVQ2) ) { return -1* this->GetKV(kKVQ2); }
150  else if (this->KVSet(kKVq2) ) { return this->GetKV(kKVq2); }
151  }
152 
153  LOG("Interaction", pWARN) << "Kinematic variable q2 was not set";
154  return -99999;
155 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
bool KVSet(KineVar_t kv) const
Definition: Kinematics.cxx:317
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:323
#define pWARN
Definition: Messenger.h:60
void Kinematics::Reset ( void  )

Definition at line 75 of file Kinematics.cxx.

References fKV, SetFSLeptonP4(), and SetHadSystP4().

Referenced by Copy().

76 {
77  fKV.clear();
78 
79  this->SetFSLeptonP4 (0,0,0,0);
80  this->SetHadSystP4 (0,0,0,0);
81 }
void SetFSLeptonP4(const TLorentzVector &p4)
Definition: Kinematics.cxx:297
map< KineVar_t, double > fKV
selected kinematics
Definition: Kinematics.h:102
void SetHadSystP4(const TLorentzVector &p4)
Definition: Kinematics.cxx:307
void Kinematics::SetFSLeptonP4 ( const TLorentzVector &  p4)
void Kinematics::SetFSLeptonP4 ( double  px,
double  py,
double  pz,
double  E 
)

Definition at line 302 of file Kinematics.cxx.

References fP4Fsl.

303 {
304  fP4Fsl->SetPxPyPzE(px,py,pz,E);
305 }
TLorentzVector * fP4Fsl
generated final state primary lepton 4-p (LAB)
Definition: Kinematics.h:103
void Kinematics::SetHadSystP4 ( const TLorentzVector &  p4)
void Kinematics::SetHadSystP4 ( double  px,
double  py,
double  pz,
double  E 
)

Definition at line 312 of file Kinematics.cxx.

References fP4HadSyst.

313 {
314  fP4HadSyst->SetPxPyPzE(px,py,pz,E);
315 }
TLorentzVector * fP4HadSyst
generated final state hadronic system 4-p (LAB)
Definition: Kinematics.h:104
void Kinematics::SetKV ( KineVar_t  kv,
double  value 
)

Definition at line 335 of file Kinematics.cxx.

References genie::KineVar::AsString(), fKV, KVSet(), LOG, and pDEBUG.

Referenced by genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::HELeptonKinematicsGenerator::ComputeMaxXSec(), genie::SKKinematicsGenerator::ComputeMaxXSec(), genie::QELEventGeneratorSM::ComputeMaxXSec(), Copy(), genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::utils::gsl::d2Xsec_dQ2dv::DoEval(), genie::utils::gsl::d3XSecSM_dQ2dvdkF_E::DoEval(), genie::utils::mec::gsl::d2Xsec_dTCosth::DoEval(), genie::utils::gsl::d1XSecSM_dQ2_E::DoEval(), genie::utils::gsl::d2Xsec_dn1dn2_E::DoEval(), genie::utils::gsl::d2Xsec_dn1dn2dn3_E::DoEval(), genie::utils::mec::GetMaxXSecTlctl(), genie::HELeptonKinematicsGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::QELEventGeneratorSuSA::SelectLeptonKinematics(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::MECGenerator::SelectSuSALeptonKinematics(), SetQ2(), Setq2(), Sett(), SetW(), Setx(), Sety(), and genie::NievesSimoVacasMECPXSec2016::XSec().

336 {
337  LOG("Interaction", pDEBUG)
338  << "Setting " << KineVar::AsString(kv) << " to " << value;
339 
340  if(this->KVSet(kv)) {
341  fKV[kv] = value;
342  } else {
343  fKV.insert( map<KineVar_t, double>::value_type(kv,value) );
344  }
345 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
bool KVSet(KineVar_t kv) const
Definition: Kinematics.cxx:317
map< KineVar_t, double > fKV
selected kinematics
Definition: Kinematics.h:102
static string AsString(KineVar_t kv)
Definition: KineVar.h:77
#define pDEBUG
Definition: Messenger.h:63
void Kinematics::SetQ2 ( double  Q2,
bool  selected = false 
)

Definition at line 255 of file Kinematics.cxx.

References genie::kKVQ2, genie::kKVSelQ2, LOG, pWARN, and SetKV().

Referenced by BuildStdNtuple(), CalculateFormFactor(), genie::COHKinematicsGenerator::CalculateKin_AlvarezRuso(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgalFM(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), genie::NievesQELCCPXSec::CompareNievesTensors(), genie::utils::ComputeFullDMELPXSec(), genie::utils::ComputeFullQELPXSec(), genie::RESKinematicsGenerator::ComputeMaxXSec(), genie::QELKinematicsGenerator::ComputeMaxXSec(), genie::IBDKinematicsGenerator::ComputeMaxXSec(), genie::DMELKinematicsGenerator::ComputeMaxXSec(), genie::utils::gsl::dXSec_dEDNu_E::DoEval(), genie::evtlib::EventLibraryInterface::FillKinematics(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), genie::CEvNSEventGenerator::GenerateKinematics(), genie::COHDNuEventGenerator::GenerateKinematics(), GetCrossSection(), main(), genie::COHKinematicsGenerator::MaxXSec_BergerSehgal(), genie::COHKinematicsGenerator::MaxXSec_BergerSehgalFM(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::ProcessEventRecord(), genie::DMELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::SPPEventGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::Scan(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::QELEventGeneratorSuSA::SelectLeptonKinematics(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::MECGenerator::SelectSuSALeptonKinematics(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::hnl::Decayer::UpdateEventRecord(), genie::utils::kinematics::UpdateWQ2FromXY(), UseSelectedKinematics(), VerticalSlice(), genie::EmpiricalMECPXSec2015::XSec(), and genie::NievesQELCCPXSec::XSec().

256 {
257 // sets the running or selected value of momentum transfer Q2 (>0)
258 
259  if(Qsqrd<0) {
260  LOG("Interaction", pWARN)
261  << "Setting unphysical value for Q2 (Q2 = " << Qsqrd << ")";
262  }
263  KineVar_t kvar = (selected) ? kKVSelQ2 : kKVQ2;
264  this->SetKV(kvar, Qsqrd);
265 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
#define pWARN
Definition: Messenger.h:60
enum genie::EKineVar KineVar_t
void SetKV(KineVar_t kv, double value)
Definition: Kinematics.cxx:335
void Kinematics::Setq2 ( double  q2,
bool  selected = false 
)

Definition at line 267 of file Kinematics.cxx.

References genie::kKVq2, genie::kKVSelq2, LOG, pWARN, and SetKV().

Referenced by UseSelectedKinematics().

268 {
269 // sets the running or selected value of momentum transfer q2 (<0)
270 
271  if(qsqrd>0) {
272  LOG("Interaction", pWARN)
273  << "Setting unphysical value for q2 (q2 = " << qsqrd << ")";
274  }
275  KineVar_t kvar = (selected) ? kKVSelq2 : kKVq2;
276  this->SetKV(kvar, qsqrd);
277 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
#define pWARN
Definition: Messenger.h:60
enum genie::EKineVar KineVar_t
void SetKV(KineVar_t kv, double value)
Definition: Kinematics.cxx:335
void Kinematics::Sett ( double  t,
bool  selected = false 
)
void Kinematics::SetW ( double  W,
bool  selected = false 
)

Definition at line 279 of file Kinematics.cxx.

References genie::kKVSelW, genie::kKVW, LOG, pWARN, and SetKV().

Referenced by genie::COHKinematicsGenerator::CalculateKin_AlvarezRuso(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgalFM(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), genie::RESKinematicsGenerator::ComputeMaxXSec(), genie::KNOTunedQPMDISPXSec::DISRESJoinSuppressionFactor(), genie::evtlib::EventLibraryInterface::FillKinematics(), GetCrossSection(), genie::LeptoHadronization::Hadronize(), main(), genie::utils::kinematics::PhaseSpaceVolume(), genie::DISHadronicSystemGenerator::ProcessEventRecord(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::ProcessEventRecord(), genie::DMELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::SPPEventGenerator::ProcessEventRecord(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::QELEventGeneratorSuSA::SelectLeptonKinematics(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::MECGenerator::SelectSuSALeptonKinematics(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::hnl::Decayer::UpdateEventRecord(), genie::utils::kinematics::UpdateWQ2FromXY(), genie::utils::kinematics::UpdateWYFromXQ2(), UseSelectedKinematics(), and genie::EmpiricalMECPXSec2015::XSec().

280 {
281 // sets the running or selected value of invariant hadronic mass W
282 
283  if(hadr_mass_W<0) {
284  LOG("Interaction", pWARN)
285  << "Setting unphysical value for W (W = " << hadr_mass_W << ")";
286  }
287  KineVar_t kvar = (selected) ? kKVSelW : kKVW;
288  this->SetKV(kvar, hadr_mass_W);
289 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
#define pWARN
Definition: Messenger.h:60
enum genie::EKineVar KineVar_t
void SetKV(KineVar_t kv, double value)
Definition: Kinematics.cxx:335
void Kinematics::Setx ( double  x,
bool  selected = false 
)

Definition at line 231 of file Kinematics.cxx.

References genie::kKVSelx, genie::kKVx, LOG, pWARN, and SetKV().

Referenced by BuildStdNtuple(), genie::COHKinematicsGenerator::CalculateKin_AlvarezRuso(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), genie::DFRKinematicsGenerator::ComputeMaxXSec(), genie::DISKinematicsGenerator::ComputeMaxXSec(), genie::DMDISKinematicsGenerator::ComputeMaxXSec(), genie::utils::gsl::d5XSecAR::DoEval(), genie::utils::gsl::d5Xsec_dEldOmegaldOmegapi::DoEval(), genie::utils::gsl::d4Xsec_dEldThetaldOmegapi::DoEval(), genie::utils::gsl::d3Xsec_dOmegaldThetapi::DoEval(), genie::evtlib::EventLibraryInterface::FillKinematics(), GetCrossSection(), main(), genie::COHKinematicsGenerator::MaxXSec_ReinSehgal(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::ProcessEventRecord(), genie::DMELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::SPPEventGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::Scan(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::QELEventGeneratorSuSA::SelectLeptonKinematics(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::MECGenerator::SelectSuSALeptonKinematics(), genie::COHKinematicsGenerator::SetKinematics(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::utils::kinematics::UpdateXFromQ2Y(), genie::utils::kinematics::UpdateXYFromWQ2(), UseSelectedKinematics(), and VerticalSlice().

232 {
233 // sets the running or selected value of Bjorken scaling variable x
234 
235  if(xbj<0 || xbj>1) {
236  LOG("Interaction", pWARN)
237  << "Setting unphysical value for x (x = " << xbj << ")";
238  }
239  KineVar_t kvar = (selected) ? kKVSelx : kKVx;
240  this->SetKV(kvar, xbj);
241 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
#define pWARN
Definition: Messenger.h:60
enum genie::EKineVar KineVar_t
void SetKV(KineVar_t kv, double value)
Definition: Kinematics.cxx:335
void Kinematics::Sety ( double  y,
bool  selected = false 
)

Definition at line 243 of file Kinematics.cxx.

References genie::kKVSely, genie::kKVy, LOG, pWARN, and SetKV().

Referenced by genie::COHKinematicsGenerator::CalculateKin_AlvarezRuso(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgalFM(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), genie::DFRKinematicsGenerator::ComputeMaxXSec(), genie::NuEKinematicsGenerator::ComputeMaxXSec(), genie::DMEKinematicsGenerator::ComputeMaxXSec(), genie::DISKinematicsGenerator::ComputeMaxXSec(), genie::DMDISKinematicsGenerator::ComputeMaxXSec(), genie::utils::gsl::d5XSecAR::DoEval(), genie::utils::gsl::d5Xsec_dEldOmegaldOmegapi::DoEval(), genie::utils::gsl::d4Xsec_dEldThetaldOmegapi::DoEval(), genie::utils::gsl::d3Xsec_dOmegaldThetapi::DoEval(), genie::evtlib::EventLibraryInterface::FillKinematics(), GetCrossSection(), main(), genie::COHKinematicsGenerator::MaxXSec_BergerSehgal(), genie::COHKinematicsGenerator::MaxXSec_BergerSehgalFM(), genie::COHKinematicsGenerator::MaxXSec_ReinSehgal(), genie::NuEKinematicsGenerator::ProcessEventRecord(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::DMEKinematicsGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::ProcessEventRecord(), genie::DMELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::SPPEventGenerator::ProcessEventRecord(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::QELEventGeneratorSuSA::SelectLeptonKinematics(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::MECGenerator::SelectSuSALeptonKinematics(), genie::COHKinematicsGenerator::SetKinematics(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::utils::kinematics::UpdateWYFromXQ2(), genie::utils::kinematics::UpdateXYFromWQ2(), and UseSelectedKinematics().

244 {
245 // sets the running or selected value of inelasticity y
246 
247  if(inel_y<0 || inel_y>1) {
248  LOG("Interaction", pWARN)
249  << "Setting unphysical value for y (y = " << inel_y << ")";
250  }
251  KineVar_t kvar = (selected) ? kKVSely : kKVy;
252  this->SetKV(kvar, inel_y);
253 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
#define pWARN
Definition: Messenger.h:60
enum genie::EKineVar KineVar_t
void SetKV(KineVar_t kv, double value)
Definition: Kinematics.cxx:335
double Kinematics::t ( bool  selected = false) const

Definition at line 170 of file Kinematics.cxx.

References GetKV(), genie::kKVSelt, genie::kKVt, KVSet(), LOG, and pWARN.

Referenced by genie::COHHadronicSystemGenerator::CalculateHadronicSystem_BergerSehgalFM(), genie::COHHadronicSystemGenerator::CalculateHadronicSystem_ReinSehgal(), ConvertToGST(), genie::KPhaseSpace::IsAllowed(), genie::DFRHadronicSystemGenerator::ProcessEventRecord(), genie::ReinDFRPXSec::XSec(), and genie::BergerSehgalFMCOHPiPXSec2015::XSec().

171 {
172 // returns the running or selected value of invariant hadronic mass W
173 
174  KineVar_t kvar = (selected) ? kKVSelt : kKVt;
175 
176  if(this->KVSet(kvar)) { return this->GetKV(kvar); }
177  else {
178  LOG("Interaction", pWARN) << "Kinematic variable t was not set";
179  }
180  return -99999;
181 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
bool KVSet(KineVar_t kv) const
Definition: Kinematics.cxx:317
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:323
#define pWARN
Definition: Messenger.h:60
enum genie::EKineVar KineVar_t
void Kinematics::UseSelectedKinematics ( void  )

Definition at line 359 of file Kinematics.cxx.

References fKV, genie::kKVSelQ2, genie::kKVSelq2, genie::kKVSelt, genie::kKVSelW, genie::kKVSelx, genie::kKVSely, SetQ2(), Setq2(), Sett(), SetW(), Setx(), and Sety().

Referenced by main(), and genie::RSPPResonanceSelector::SelectResonance().

360 {
361 // copy the selected kinematics into the running ones
362 //
363  map<KineVar_t, double>::const_iterator iter;
364  iter = fKV.find(kKVSelx);
365  if(iter != fKV.end()) this->Setx(iter->second);
366  iter = fKV.find(kKVSely);
367  if(iter != fKV.end()) this->Sety(iter->second);
368  iter = fKV.find(kKVSelQ2);
369  if(iter != fKV.end()) this->SetQ2(iter->second);
370  iter = fKV.find(kKVSelq2);
371  if(iter != fKV.end()) this->Setq2(iter->second);
372  iter = fKV.find(kKVSelW);
373  if(iter != fKV.end()) this->SetW(iter->second);
374  iter = fKV.find(kKVSelt);
375  if(iter != fKV.end()) this->Sett(iter->second);
376 }
void SetQ2(double Q2, bool selected=false)
Definition: Kinematics.cxx:255
void Setq2(double q2, bool selected=false)
Definition: Kinematics.cxx:267
void Sett(double t, bool selected=false)
Definition: Kinematics.cxx:291
map< KineVar_t, double > fKV
selected kinematics
Definition: Kinematics.h:102
void Setx(double x, bool selected=false)
Definition: Kinematics.cxx:231
void SetW(double W, bool selected=false)
Definition: Kinematics.cxx:279
void Sety(double y, bool selected=false)
Definition: Kinematics.cxx:243
double Kinematics::W ( bool  selected = false) const

Definition at line 157 of file Kinematics.cxx.

References GetKV(), genie::kKVSelW, genie::kKVW, KVSet(), LOG, and pWARN.

Referenced by genie::DFRKinematicsGenerator::ComputeMaxXSec(), ConvertToGHad(), ConvertToGST(), GenerateEvent(), genie::Pythia6Hadro2019::Hadronize(), genie::Pythia8Hadro2019::Hadronize(), genie::LeptoHadronization::Hadronize(), genie::AGCharm2019::Hadronize(), genie::KPhaseSpace::IsAllowed(), genie::utils::kinematics::Jacobian(), Log10W(), LogW(), genie::PythiaBaseHadro2019::MakeQuarkDiquarkAssignments(), genie::AGKYLowW2019::MaxMult(), genie::utils::ghep::NeutReactionCode(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::AGKY2019::SelectHadronizer(), genie::utils::kinematics::UpdateXYFromWQ2(), genie::BostedChristyEMPXSec::ValidKinematics(), genie::MKSPPPXSec2020::ValidKinematics(), genie::utils::kinematics::W(), genie::EmpiricalMECPXSec2015::XSec(), genie::HEDISPXSec::XSec(), genie::P33PaschosLalakulichPXSec::XSec(), genie::BostedChristyEMPXSec::XSec(), genie::ReinSehgalRESPXSec::XSec(), genie::BSKLNBaseRESPXSec2014::XSec(), and genie::MKSPPPXSec2020::XSec().

158 {
159 // returns the running or selected value of invariant hadronic mass W
160 
161  KineVar_t kvar = (selected) ? kKVSelW : kKVW;
162 
163  if(this->KVSet(kvar)) { return this->GetKV(kvar); }
164  else {
165  LOG("Interaction", pWARN) << "Kinematic variable W was not set";
166  }
167  return -99999;
168 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
bool KVSet(KineVar_t kv) const
Definition: Kinematics.cxx:317
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:323
#define pWARN
Definition: Messenger.h:60
enum genie::EKineVar KineVar_t
double Kinematics::x ( bool  selected = false) const

Definition at line 99 of file Kinematics.cxx.

References GetKV(), genie::kKVSelx, genie::kKVx, KVSet(), LOG, and pWARN.

Referenced by genie::QPMDISStrucFuncBase::Calculate(), genie::QPMDMDISStrucFuncBase::Calculate(), genie::COHHadronicSystemGenerator::CalculateHadronicSystem_ReinSehgal(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), ConvertToGHad(), ConvertToGST(), genie::KNOTunedQPMDISPXSec::DISRESJoinSuppressionFactor(), GenerateEvent(), genie::KPhaseSpace::IsAllowed(), genie::utils::kinematics::Jacobian(), Log10x(), Logx(), genie::QPMDISStrucFuncBase::NuclMod(), genie::QPMDMDISStrucFuncBase::NuclMod(), genie::DFRHadronicSystemGenerator::ProcessEventRecord(), genie::QPMDISStrucFuncBase::Q2(), genie::QPMDMDISStrucFuncBase::Q2(), genie::utils::kinematics::Q2(), genie::QPMDISStrucFuncBase::R(), genie::QPMDMDISStrucFuncBase::R(), genie::DMBYStrucFunc::ScalingVar(), genie::BYStrucFunc::ScalingVar(), genie::QPMDISStrucFuncBase::ScalingVar(), genie::QPMDMDISStrucFuncBase::ScalingVar(), genie::utils::kinematics::UpdateWQ2FromXY(), genie::utils::kinematics::UpdateWYFromXQ2(), genie::utils::kinematics::W(), genie::SlowRsclCharmDISPXSecLO::XSec(), genie::HEDISPXSec::XSec(), genie::ReinDFRPXSec::XSec(), genie::QPMDISPXSec::XSec(), genie::AivazisCharmPXSecLO::XSec(), genie::BergerSehgalCOHPiPXSec2015::XSec(), genie::QPMDMDISPXSec::XSec(), genie::ReinSehgalCOHPiPXSec::XSec(), and genie::KPhaseSpace::YLim_X().

100 {
101 // returns the running or selected value of Bjorken scaling variable x
102 
103  KineVar_t kvar = (selected) ? kKVSelx : kKVx;
104 
105  if(this->KVSet(kvar)) { return this->GetKV(kvar); }
106  else {
107  LOG("Interaction", pWARN) << "Kinematic variable x was not set";
108  }
109  return -99999;
110 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
bool KVSet(KineVar_t kv) const
Definition: Kinematics.cxx:317
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:323
#define pWARN
Definition: Messenger.h:60
enum genie::EKineVar KineVar_t
double Kinematics::y ( bool  selected = false) const

Definition at line 112 of file Kinematics.cxx.

References GetKV(), genie::kKVSely, genie::kKVy, KVSet(), LOG, and pWARN.

Referenced by genie::MECGenerator::AddFinalStateLepton(), genie::HEDISGenerator::AddPrimaryLepton(), genie::COHHadronicSystemGenerator::CalculateHadronicSystem_BergerSehgalFM(), genie::COHHadronicSystemGenerator::CalculateHadronicSystem_ReinSehgal(), ConvertToGHad(), ConvertToGST(), genie::KNOTunedQPMDISPXSec::DISRESJoinSuppressionFactor(), genie::BergerSehgalFMCOHPiPXSec2015::ExactKinematicTerm(), genie::BergerSehgalCOHPiPXSec2015::ExactKinematicTerm(), GenerateEvent(), genie::KPhaseSpace::IsAllowed(), genie::utils::kinematics::Jacobian(), Log10y(), Logy(), genie::BergerSehgalFMCOHPiPXSec2015::PionCOMAbsMomentum(), genie::BergerSehgalCOHPiPXSec2015::PionCOMAbsMomentum(), genie::NuEPrimaryLeptonGenerator::ProcessEventRecord(), genie::DFRHadronicSystemGenerator::ProcessEventRecord(), genie::PrimaryLeptonGenerator::ProcessEventRecord(), genie::DMEOutgoingDarkGenerator::ProcessEventRecord(), genie::OutgoingDarkGenerator::ProcessEventRecord(), genie::HEDISKinematicsGenerator::ProcessEventRecord(), genie::QPMDISStrucFuncBase::Q2(), genie::QPMDMDISStrucFuncBase::Q2(), genie::utils::kinematics::Q2(), genie::KPhaseSpace::TLim(), genie::utils::kinematics::UpdateWQ2FromXY(), genie::utils::kinematics::UpdateXFromQ2Y(), genie::utils::kinematics::W(), genie::SlowRsclCharmDISPXSecLO::XSec(), genie::HEDISPXSec::XSec(), genie::ReinDFRPXSec::XSec(), genie::IMDAnnihilationPXSec::XSec(), genie::QPMDISPXSec::XSec(), genie::AivazisCharmPXSecLO::XSec(), genie::BergerSehgalFMCOHPiPXSec2015::XSec(), genie::BergerSehgalCOHPiPXSec2015::XSec(), genie::QPMDMDISPXSec::XSec(), genie::NuElectronPXSec::XSec(), genie::DMElectronPXSec::XSec(), genie::BardinIMDRadCorPXSec::XSec(), and genie::ReinSehgalCOHPiPXSec::XSec().

113 {
114 // returns the running or selected value of inelasticity y
115 
116  KineVar_t kvar = (selected) ? kKVSely : kKVy;
117 
118  if(this->KVSet(kvar)) { return this->GetKV(kvar); }
119  else {
120  LOG("Interaction", pWARN) << "Kinematic variable y was not set";
121  }
122  return -99999;
123 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
bool KVSet(KineVar_t kv) const
Definition: Kinematics.cxx:317
double GetKV(KineVar_t kv) const
Definition: Kinematics.cxx:323
#define pWARN
Definition: Messenger.h:60
enum genie::EKineVar KineVar_t

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const Kinematics kine 
)
friend

Definition at line 26 of file Kinematics.cxx.

27  {
28  kinematics.Print(stream);
29  return stream;
30  }

Member Data Documentation

map<KineVar_t, double> genie::Kinematics::fKV
private

selected kinematics

Definition at line 102 of file Kinematics.h.

Referenced by CleanUp(), ClearRunningValues(), Copy(), GetKV(), Init(), KVSet(), Print(), Reset(), SetKV(), and UseSelectedKinematics().

TLorentzVector* genie::Kinematics::fP4Fsl
private

generated final state primary lepton 4-p (LAB)

Definition at line 103 of file Kinematics.h.

Referenced by CleanUp(), Copy(), FSLeptonP4(), Init(), and SetFSLeptonP4().

TLorentzVector* genie::Kinematics::fP4HadSyst
private

generated final state hadronic system 4-p (LAB)

Definition at line 104 of file Kinematics.h.

Referenced by CleanUp(), Copy(), HadSystP4(), Init(), and SetHadSystP4().


The documentation for this class was generated from the following files: