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:

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 <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

May 08, 2004

Copyright (c) 2003-2020, 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.

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.

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.

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.

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.

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.

84 {
85  this->Reset();
86 
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
intermediate_table::const_iterator const_iterator
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

Definition at line 65 of file Kinematics.h.

65 { return *fP4Fsl; }
TLorentzVector * fP4Fsl
generated final state primary lepton 4-p (LAB)
Definition: Kinematics.h:103
double Kinematics::GetKV ( KineVar_t  kv) const

Definition at line 323 of file Kinematics.cxx.

324 {
325  if(this->KVSet(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 }
intermediate_table::const_iterator const_iterator
#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:71
const TLorentzVector& genie::Kinematics::HadSystP4 ( void  ) const
inline

Definition at line 66 of file Kinematics.h.

66 { return *fP4HadSyst; }
TLorentzVector * fP4HadSyst
generated final state hadronic system 4-p (LAB)
Definition: Kinematics.h:104
void Kinematics::Init ( void  )
private

initialize

Definition at line 59 of file Kinematics.cxx.

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

Definition at line 317 of file Kinematics.cxx.

318 {
319  if(fKV.count(kv) == 1) return true;
320  else return false;
321 }
map< KineVar_t, double > fKV
selected kinematics
Definition: Kinematics.h:102
double Kinematics::Log10Q2 ( bool  selected = false) const

Definition at line 219 of file Kinematics.cxx.

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.

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.

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.

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.

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.

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.

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.

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.

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.

379 {
380  stream << "[-] [Kinematics]" << endl;
381 
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 }
intermediate_table::const_iterator const_iterator
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:71
QTextStream & endl(QTextStream &s)
double Kinematics::Q2 ( bool  selected = false) const

Definition at line 125 of file Kinematics.cxx.

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.

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.

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)

Definition at line 297 of file Kinematics.cxx.

298 {
299  fP4Fsl->SetPxPyPzE(p4.Px(), p4.Py(), p4.Pz(), p4.E());
300 }
TLorentzVector * fP4Fsl
generated final state primary lepton 4-p (LAB)
Definition: Kinematics.h:103
void Kinematics::SetFSLeptonP4 ( double  px,
double  py,
double  pz,
double  E 
)

Definition at line 302 of file Kinematics.cxx.

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)

Definition at line 307 of file Kinematics.cxx.

308 {
309  fP4HadSyst->SetPxPyPzE(p4.Px(), p4.Py(), p4.Pz(), p4.E());
310 }
TLorentzVector * fP4HadSyst
generated final state hadronic system 4-p (LAB)
Definition: Kinematics.h:104
void Kinematics::SetHadSystP4 ( double  px,
double  py,
double  pz,
double  E 
)

Definition at line 312 of file Kinematics.cxx.

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.

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:71
#define pDEBUG
Definition: Messenger.h:63
void Kinematics::SetQ2 ( double  Q2,
bool  selected = false 
)

Definition at line 255 of file Kinematics.cxx.

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.

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 
)

Definition at line 291 of file Kinematics.cxx.

292 {
293  KineVar_t kvar = (selected) ? kKVSelt : kKVt;
294  this->SetKV(kvar, tval);
295 }
enum genie::EKineVar KineVar_t
void SetKV(KineVar_t kv, double value)
Definition: Kinematics.cxx:335
void Kinematics::SetW ( double  W,
bool  selected = false 
)

Definition at line 279 of file Kinematics.cxx.

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.

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.

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.

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.

360 {
361 // copy the selected kinematics into the running ones
362 //
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
intermediate_table::const_iterator const_iterator
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.

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.

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.

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

Member Data Documentation

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

selected kinematics

Definition at line 102 of file Kinematics.h.

TLorentzVector* genie::Kinematics::fP4Fsl
private

generated final state primary lepton 4-p (LAB)

Definition at line 103 of file Kinematics.h.

TLorentzVector* genie::Kinematics::fP4HadSyst
private

generated final state hadronic system 4-p (LAB)

Definition at line 104 of file Kinematics.h.


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