Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
genie::InitialState Class Reference

Initial State information. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+2.6-2.12-e17-debug/GENIE-Generator/src/Framework/Interaction/InitialState.h"

Inheritance diagram for genie::InitialState:

Public Member Functions

 InitialState ()
 
 InitialState (int tgt_pdgc, int probe_pdgc)
 
 InitialState (int Z, int A, int probe_pdgc)
 
 InitialState (const Target &tgt, int probe_pdgc)
 
 InitialState (const InitialState &initial_state)
 
 InitialState (TRootIOCtor *)
 
 ~InitialState ()
 
TParticlePDG * Probe (void) const
 
int ProbePdg (void) const
 
int TgtPdg (void) const
 
const TargetTgt (void) const
 
TargetTgtPtr (void) const
 
TLorentzVector * GetTgtP4 (RefFrame_t rf=kRfLab) const
 
TLorentzVector * GetProbeP4 (RefFrame_t rf=kRfHitNucRest) const
 
double ProbeE (RefFrame_t rf) const
 
double CMEnergy () const
 centre-of-mass energy (sqrt s) More...
 
void SetPdgs (int tgt_pdgc, int probe_pdgc)
 
void SetProbePdg (int pdg_code)
 
void SetTgtPdg (int pdg_code)
 
void SetTgtP4 (const TLorentzVector &P4)
 
void SetProbeP4 (const TLorentzVector &P4)
 
void SetProbeE (double E)
 
bool IsNuP (void) const
 is neutrino + proton? More...
 
bool IsNuN (void) const
 is neutrino + neutron? More...
 
bool IsNuBarP (void) const
 is anti-neutrino + proton? More...
 
bool IsNuBarN (void) const
 is anti-neutrino + neutron? More...
 
bool IsDMP (void) const
 is dark matter + proton? More...
 
bool IsDMN (void) const
 is dark matter + neutron? More...
 
void Reset (void)
 
void Copy (const InitialState &init_state)
 
bool Compare (const InitialState &init_state) const
 
string AsString (void) const
 
void Print (ostream &stream) const
 
bool operator== (const InitialState &i) const
 equal? More...
 
InitialStateoperator= (const InitialState &i)
 copy More...
 

Private Member Functions

void Init (void)
 
void Init (int target_pdgc, int probe_pdgc)
 
void CleanUp (void)
 

Private Attributes

int fProbePdg
 probe PDG code More...
 
TargetfTgt
 nuclear target More...
 
TLorentzVector * fProbeP4
 probe 4-momentum in LAB-frame More...
 
TLorentzVector * fTgtP4
 nuclear target 4-momentum in LAB-frame More...
 

Friends

ostream & operator<< (ostream &stream, const InitialState &i)
 print More...
 

Detailed Description

Initial State information.

Author
Costas Andreopoulos <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

Changes required to implement the GENIE Boosted Dark Matter module were installed by Josh Berger (Univ. of Wisconsin)

Other minor changes / additions and fixes were installed by: Andy Furmanski (Univ. of Manchester) Joe Johnston (Univ of Pittsburgh)

May 02, 2004

Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 49 of file InitialState.h.

Constructor & Destructor Documentation

InitialState::InitialState ( )

Definition at line 47 of file InitialState.cxx.

References Init().

47  :
48 TObject()
49 {
50  this->Init();
51 }
InitialState::InitialState ( int  tgt_pdgc,
int  probe_pdgc 
)

Definition at line 53 of file InitialState.cxx.

References Init().

53  :
54 TObject()
55 {
56  this->Init(target_pdgc, probe_pdgc);
57 }
InitialState::InitialState ( int  Z,
int  A,
int  probe_pdgc 
)

Definition at line 59 of file InitialState.cxx.

References Init(), and genie::pdg::IonPdgCode().

59  :
60 TObject()
61 {
62  int target_pdgc = pdg::IonPdgCode(A,Z);
63  this->Init(target_pdgc, probe_pdgc);
64 }
Float_t Z
Definition: plot.C:38
static const double A
Definition: Units.h:82
int IonPdgCode(int A, int Z)
Definition: PDGUtils.cxx:69
InitialState::InitialState ( const Target tgt,
int  probe_pdgc 
)

Definition at line 66 of file InitialState.cxx.

References Init(), and genie::Target::Pdg().

66  :
67 TObject()
68 {
69  int target_pdgc = tgt.Pdg();
70  this->Init(target_pdgc, probe_pdgc);
71 }
int Pdg(void) const
Definition: Target.h:72
InitialState::InitialState ( const InitialState initial_state)

Definition at line 73 of file InitialState.cxx.

References Copy(), and Init().

73  :
74 TObject()
75 {
76  this->Init();
77  this->Copy(init_state);
78 }
void Copy(const InitialState &init_state)
InitialState::InitialState ( TRootIOCtor *  )

Definition at line 80 of file InitialState.cxx.

80  :
81 TObject(),
82 fProbePdg(0),
83 fTgt(0),
84 fProbeP4(0),
85 fTgtP4(0)
86 {
87 
88 }
Target * fTgt
nuclear target
Definition: InitialState.h:109
TLorentzVector * fProbeP4
probe 4-momentum in LAB-frame
Definition: InitialState.h:110
TLorentzVector * fTgtP4
nuclear target 4-momentum in LAB-frame
Definition: InitialState.h:111
int fProbePdg
probe PDG code
Definition: InitialState.h:108
InitialState::~InitialState ( )

Definition at line 90 of file InitialState.cxx.

References CleanUp().

91 {
92  this->CleanUp();
93 }

Member Function Documentation

string InitialState::AsString ( void  ) const

Definition at line 389 of file InitialState.cxx.

References genie::utils::res::Mass(), genie::Target::Pdg(), Probe(), ProbePdg(), and Tgt().

Referenced by genie::GMCJDriver::BootstrapXSecSplines(), genie::XSecAlgorithmMap::BuildMap(), genie::InteractionGeneratorMap::BuildMap(), CalcTotalXSec(), genie::GMCJDriver::ComputeInteractionProbabilities(), genie::GMCJDriver::ComputeProbScales(), Configure(), genie::GEVGDriver::Configure(), genie::DFRInteractionListGenerator::CreateInteractionList(), genie::MECInteractionListGenerator::CreateInteractionList(), genie::NuEInteractionListGenerator::CreateInteractionList(), genie::QELInteractionListGenerator::CreateInteractionList(), genie::AMNuGammaInteractionListGenerator::CreateInteractionList(), genie::SKInteractionListGenerator::CreateInteractionList(), genie::COHInteractionListGenerator::CreateInteractionList(), genie::IBDInteractionListGenerator::CreateInteractionList(), genie::RESInteractionListGenerator::CreateInteractionList(), genie::DMELInteractionListGenerator::CreateInteractionList(), genie::RSPPInteractionListGenerator::CreateInteractionList(), genie::DISInteractionListGenerator::CreateInteractionList(), genie::DMDISInteractionListGenerator::CreateInteractionList(), genie::QELInteractionListGenerator::CreateInteractionListCC(), genie::QELInteractionListGenerator::CreateInteractionListCharmCC(), genie::DMELInteractionListGenerator::CreateInteractionListDM(), genie::QELInteractionListGenerator::CreateInteractionListEM(), genie::QELInteractionListGenerator::CreateInteractionListNC(), genie::QELInteractionListGenerator::CreateInteractionListStrangeCC(), genie::GEVGPool::FindDriver(), GenerateEvent(), genie::GEVGDriver::GenerateEvent(), genie::GMCJDriver::GenerateEventKinematics(), genie::GMCJDriver::PopulateEventGenDriverPool(), and TgtPtr().

390 {
391 // Code-ify the interaction in a string to be used as (part of a) keys
392 // Template:
393 // nu_pdg:code;tgt-pdg:code;
394 
395  ostringstream init_state;
396 
397  if (this->Probe()->Mass() > 0) {
398  init_state << "dm_mass:" << this->Probe()->Mass() << ";";
399  }
400  else {
401  init_state << "nu-pdg:" << this->ProbePdg() << ";";
402  }
403  init_state << "tgt-pdg:" << this->Tgt().Pdg() << ";";
404 
405  return init_state.str();
406 }
int Pdg(void) const
Definition: Target.h:72
TParticlePDG * Probe(void) const
double Mass(Resonance_t res)
resonance mass (GeV)
int ProbePdg(void) const
Definition: InitialState.h:65
const Target & Tgt(void) const
Definition: InitialState.h:67
void InitialState::CleanUp ( void  )
private

Definition at line 119 of file InitialState.cxx.

References fProbeP4, fTgt, and fTgtP4.

Referenced by Reset(), SetPdgs(), SetProbePdg(), SetTgtPdg(), TgtPtr(), and ~InitialState().

120 {
121  delete fTgt;
122  delete fProbeP4;
123  delete fTgtP4;
124 }
Target * fTgt
nuclear target
Definition: InitialState.h:109
TLorentzVector * fProbeP4
probe 4-momentum in LAB-frame
Definition: InitialState.h:110
TLorentzVector * fTgtP4
nuclear target 4-momentum in LAB-frame
Definition: InitialState.h:111
double InitialState::CMEnergy ( ) const

centre-of-mass energy (sqrt s)

Definition at line 375 of file InitialState.cxx.

References E, fTgt, GetProbeP4(), genie::Target::HitNucP4Ptr(), genie::kRfLab, make_associated_cosmic_defs::p4, and ana::Sqrt().

Referenced by genie::utils::ComputeFullQELPXSec(), genie::utils::CosTheta0Max(), and TgtPtr().

376 {
377  TLorentzVector * k4 = this->GetProbeP4(kRfLab);
378  TLorentzVector * p4 = fTgt->HitNucP4Ptr();
379 
380  *k4 += *p4; // now k4 represents centre-of-mass 4-momentum
381  double s = k4->Dot(*k4); // dot-product with itself
382  double E = TMath::Sqrt(s);
383 
384  delete k4;
385 
386  return E;
387 }
const XML_Char * s
Definition: expat.h:262
Float_t E
Definition: plot.C:20
Target * fTgt
nuclear target
Definition: InitialState.h:109
TLorentzVector * HitNucP4Ptr(void) const
Definition: Target.cxx:264
Var Sqrt(const Var &v)
Use to take sqrt of a var.
Definition: Var.cxx:326
TLorentzVector * GetProbeP4(RefFrame_t rf=kRfHitNucRest) const
bool InitialState::Compare ( const InitialState init_state) const

Definition at line 478 of file InitialState.cxx.

References gov::fnal::cd::rms::provider::equal(), fProbePdg, fTgt, ProbePdg(), and Tgt().

Referenced by operator==(), and TgtPtr().

479 {
480  int probe = init_state.ProbePdg();
481  const Target & target = init_state.Tgt();
482 
483  bool equal = (fProbePdg == probe) && (*fTgt == target);
484 
485  return equal;
486 }
const XML_Char * target
Definition: expat.h:268
bool equal(T *first, T *second)
Target * fTgt
nuclear target
Definition: InitialState.h:109
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:41
int ProbePdg(void) const
Definition: InitialState.h:65
int fProbePdg
probe PDG code
Definition: InitialState.h:108
const Target & Tgt(void) const
Definition: InitialState.h:67
void InitialState::Copy ( const InitialState init_state)

Definition at line 132 of file InitialState.cxx.

References genie::Target::Copy(), fProbeP4, fProbePdg, fTgt, fTgtP4, SetProbeP4(), and SetTgtP4().

Referenced by genie::XSecAlgorithmMap::BuildMap(), genie::InteractionGeneratorMap::BuildMap(), InitialState(), operator=(), genie::Interaction::SetInitState(), and TgtPtr().

133 {
134  fProbePdg = init_state.fProbePdg;
135 
136  fTgt->Copy(*init_state.fTgt);
137 
138  this -> SetProbeP4 ( *init_state.fProbeP4 );
139  this -> SetTgtP4 ( *init_state.fTgtP4 );
140 }
void SetTgtP4(const TLorentzVector &P4)
void SetProbeP4(const TLorentzVector &P4)
Target * fTgt
nuclear target
Definition: InitialState.h:109
TLorentzVector * fProbeP4
probe 4-momentum in LAB-frame
Definition: InitialState.h:110
TLorentzVector * fTgtP4
nuclear target 4-momentum in LAB-frame
Definition: InitialState.h:111
void Copy(const Target &t)
Definition: Target.cxx:133
int fProbePdg
probe PDG code
Definition: InitialState.h:108
TLorentzVector * InitialState::GetProbeP4 ( RefFrame_t  rf = kRfHitNucRest) const

Definition at line 306 of file InitialState.cxx.

References ana::assert(), fProbeP4, fTgt, genie::Target::HitNucP4Ptr(), genie::kRfHitNucRest, genie::kRfLab, genie::kRfTgtRest, LOG, make_associated_cosmic_defs::p4, and pERROR.

Referenced by genie::InitialStateAppender::AddNeutrino(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::COHKinematicsGenerator::CalculateKin_AlvarezRuso(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::COHKinematicsGenerator::CheckKinematics(), CMEnergy(), genie::utils::ComputeFullQELPXSec(), genie::utils::gsl::d5XSecAR::DoEval(), genie::utils::gsl::d5Xsec_dEldOmegaldOmegapi::DoEval(), genie::utils::gsl::d4Xsec_dEldThetaldOmegapi::DoEval(), genie::utils::gsl::d3Xsec_dOmegaldThetapi::DoEval(), genie::utils::EnergyDeltaFunctionSolutionQEL(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), ProbeE(), genie::COHKinematicsGenerator::SetKinematics(), TgtPtr(), genie::AhrensDMELPXSec::XSec(), and genie::NievesQELCCPXSec::XSec().

307 {
308 // Return the probe 4-momentum in the specified reference frame
309 // Note: the caller adopts the TLorentzVector object
310 
311  switch (ref_frame) {
312 
313  //------------------ NUCLEAR TARGET REST FRAME:
314  case (kRfTgtRest) :
315  {
316  // for now assure that the target nucleus is always at rest
317  // and it is only the struck nucleons that can move:
318  // so the [target rest frame] = [LAB frame]
319 
320  TLorentzVector * p4 = new TLorentzVector(*fProbeP4);
321  return p4;
322  }
323 
324  //------------------ STRUCK NUCLEON REST FRAME:
325  case (kRfHitNucRest) :
326  {
327  // make sure that 'struck nucleon' properties were set in
328  // the nuclear target object
329 
330  assert( fTgt->HitNucP4Ptr() != 0 );
331 
332  TLorentzVector * pnuc4 = fTgt->HitNucP4Ptr();
333 
334  // compute velocity vector (px/E, py/E, pz/E)
335 
336  double bx = pnuc4->Px() / pnuc4->Energy();
337  double by = pnuc4->Py() / pnuc4->Energy();
338  double bz = pnuc4->Pz() / pnuc4->Energy();
339 
340  // BOOST
341 
342  TLorentzVector * p4 = new TLorentzVector(*fProbeP4);
343 
344  p4->Boost(-bx,-by,-bz);
345 
346  return p4;
347 
348  break;
349  }
350  //------------------ LAB:
351  case (kRfLab) :
352  {
353  TLorentzVector * p4 = new TLorentzVector(*fProbeP4);
354  return p4;
355 
356  break;
357  }
358  default:
359 
360  LOG("Interaction", pERROR) << "Uknown reference frame";
361  }
362  return 0;
363 }
#define pERROR
Definition: Messenger.h:60
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
Target * fTgt
nuclear target
Definition: InitialState.h:109
TLorentzVector * fProbeP4
probe 4-momentum in LAB-frame
Definition: InitialState.h:110
TLorentzVector * HitNucP4Ptr(void) const
Definition: Target.cxx:264
assert(nhit_max >=nhit_nbins)
TLorentzVector * InitialState::GetTgtP4 ( RefFrame_t  rf = kRfLab) const

Definition at line 256 of file InitialState.cxx.

References ana::assert(), fTgt, fTgtP4, genie::Target::HitNucIsSet(), genie::Target::HitNucP4Ptr(), genie::kRfHitNucRest, genie::kRfLab, genie::kRfTgtRest, LOG, make_associated_cosmic_defs::p4, and pERROR.

Referenced by TgtPtr().

257 {
258 // Return the target 4-momentum in the specified reference frame
259 // Note: the caller adopts the TLorentzVector object
260 
261  switch (ref_frame) {
262 
263  //------------------ NUCLEAR TARGET REST FRAME:
264  case (kRfTgtRest) :
265  {
266  // for now make sure that the target nucleus is always at
267  // rest and it is only the struck nucleons that can move:
268  // so the [target rest frame] = [LAB frame]
269 
270  return this->GetTgtP4(kRfLab);
271  }
272 
273  //------------------ STRUCK NUCLEON REST FRAME:
274  case (kRfHitNucRest) :
275  {
276  // make sure that 'struck nucleon' properties were set in
277  // the nuclear target object
278  assert(fTgt->HitNucIsSet());
279  TLorentzVector * pnuc4 = fTgt->HitNucP4Ptr();
280 
281  // compute velocity vector (px/E, py/E, pz/E)
282  double bx = pnuc4->Px() / pnuc4->Energy();
283  double by = pnuc4->Py() / pnuc4->Energy();
284  double bz = pnuc4->Pz() / pnuc4->Energy();
285 
286  // BOOST
287  TLorentzVector * p4 = new TLorentzVector(*fTgtP4);
288  p4->Boost(-bx,-by,-bz);
289 
290  return p4;
291  break;
292  }
293  //------------------ LAB:
294  case (kRfLab) :
295  {
296  TLorentzVector * p4 = new TLorentzVector(*fTgtP4);
297  return p4;
298  break;
299  }
300  default:
301  LOG("Interaction", pERROR) << "Uknown reference frame";
302  }
303  return 0;
304 }
#define pERROR
Definition: Messenger.h:60
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
Target * fTgt
nuclear target
Definition: InitialState.h:109
TLorentzVector * fTgtP4
nuclear target 4-momentum in LAB-frame
Definition: InitialState.h:111
TLorentzVector * HitNucP4Ptr(void) const
Definition: Target.cxx:264
bool HitNucIsSet(void) const
Definition: Target.cxx:300
TLorentzVector * GetTgtP4(RefFrame_t rf=kRfLab) const
assert(nhit_max >=nhit_nbins)
void InitialState::Init ( void  )
private

Definition at line 95 of file InitialState.cxx.

References fProbeP4, fProbePdg, fTgt, and fTgtP4.

Referenced by InitialState(), Reset(), SetPdgs(), SetProbePdg(), SetTgtPdg(), and TgtPtr().

96 {
97  fProbePdg = 0;
98  fTgt = new Target();
99  fProbeP4 = new TLorentzVector(0, 0, 0, 0);
100  fTgtP4 = new TLorentzVector(0, 0, 0, 0);
101 }
Target * fTgt
nuclear target
Definition: InitialState.h:109
TLorentzVector * fProbeP4
probe 4-momentum in LAB-frame
Definition: InitialState.h:110
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:41
TLorentzVector * fTgtP4
nuclear target 4-momentum in LAB-frame
Definition: InitialState.h:111
int fProbePdg
probe PDG code
Definition: InitialState.h:108
void InitialState::Init ( int  target_pdgc,
int  probe_pdgc 
)
private

Definition at line 103 of file InitialState.cxx.

References ana::assert(), genie::PDGLibrary::Find(), fProbeP4, fProbePdg, fTgt, fTgtP4, genie::PDGLibrary::Instance(), m, and confusionMatrixTree::t.

104 {
105  TParticlePDG * t = PDGLibrary::Instance()->Find(target_pdgc);
106  TParticlePDG * p = PDGLibrary::Instance()->Find(probe_pdgc );
107 
108  assert(t && p);
109 
110  double m = p->Mass();
111  double M = t->Mass();
112 
113  fProbePdg = probe_pdgc;
114  fTgt = new Target(target_pdgc);
115  fProbeP4 = new TLorentzVector(0, 0, 0, m);
116  fTgtP4 = new TLorentzVector(0, 0, 0, M);
117 }
const char * p
Definition: xmltok.h:285
Target * fTgt
nuclear target
Definition: InitialState.h:109
TLorentzVector * fProbeP4
probe 4-momentum in LAB-frame
Definition: InitialState.h:110
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:41
TLorentzVector * fTgtP4
nuclear target 4-momentum in LAB-frame
Definition: InitialState.h:111
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:43
TParticlePDG * Find(int pdgc)
Definition: PDGLibrary.cxx:61
assert(nhit_max >=nhit_nbins)
int fProbePdg
probe PDG code
Definition: InitialState.h:108
bool InitialState::IsDMN ( void  ) const

is dark matter + neutron?

Definition at line 246 of file InitialState.cxx.

References fProbePdg, fTgt, genie::Target::HitNucPdg(), genie::pdg::IsDarkMatter(), and genie::pdg::IsNeutron().

Referenced by TgtPtr().

247 {
248 // Check if DM - neutron interaction
249  int prob = fProbePdg;
250  int nucl = fTgt->HitNucPdg();
251  bool isdn = pdg::IsDarkMatter(prob) && pdg::IsNeutron(nucl);
252 
253  return isdn;
254 }
int HitNucPdg(void) const
Definition: Target.cxx:321
bool IsDarkMatter(int pdgc)
Definition: PDGUtils.cxx:125
bool IsNeutron(int pdgc)
Definition: PDGUtils.cxx:304
Target * fTgt
nuclear target
Definition: InitialState.h:109
int fProbePdg
probe PDG code
Definition: InitialState.h:108
bool InitialState::IsDMP ( void  ) const

is dark matter + proton?

Definition at line 236 of file InitialState.cxx.

References fProbePdg, fTgt, genie::Target::HitNucPdg(), genie::pdg::IsDarkMatter(), and genie::pdg::IsProton().

Referenced by TgtPtr().

237 {
238 // Check if DM - proton interaction
239  int prob = fProbePdg;
240  int nucl = fTgt->HitNucPdg();
241  bool isdp = pdg::IsDarkMatter(prob) && pdg::IsProton(nucl);
242 
243  return isdp;
244 }
int HitNucPdg(void) const
Definition: Target.cxx:321
bool IsDarkMatter(int pdgc)
Definition: PDGUtils.cxx:125
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:299
Target * fTgt
nuclear target
Definition: InitialState.h:109
int fProbePdg
probe PDG code
Definition: InitialState.h:108
bool InitialState::IsNuBarN ( void  ) const

is anti-neutrino + neutron?

Definition at line 227 of file InitialState.cxx.

References fProbePdg, fTgt, genie::Target::HitNucPdg(), genie::pdg::IsAntiNeutrino(), and genie::pdg::IsNeutron().

Referenced by ConvertToGHad(), genie::utils::ghep::NuanceReactionCode(), and TgtPtr().

228 {
229  int prob = fProbePdg;
230  int nucl = fTgt->HitNucPdg();
231  bool isvbn = pdg::IsAntiNeutrino(prob) && pdg::IsNeutron(nucl);
232 
233  return isvbn;
234 }
int HitNucPdg(void) const
Definition: Target.cxx:321
bool IsNeutron(int pdgc)
Definition: PDGUtils.cxx:304
Target * fTgt
nuclear target
Definition: InitialState.h:109
bool IsAntiNeutrino(int pdgc)
Definition: PDGUtils.cxx:116
int fProbePdg
probe PDG code
Definition: InitialState.h:108
bool InitialState::IsNuBarP ( void  ) const

is anti-neutrino + proton?

Definition at line 218 of file InitialState.cxx.

References fProbePdg, fTgt, genie::Target::HitNucPdg(), genie::pdg::IsAntiNeutrino(), and genie::pdg::IsProton().

Referenced by ConvertToGHad(), genie::utils::ghep::NuanceReactionCode(), TgtPtr(), and genie::StrumiaVissaniIBDPXSec::ValidKinematics().

219 {
220  int prob = fProbePdg;
221  int nucl = fTgt->HitNucPdg();
222  bool isvbp = pdg::IsAntiNeutrino(prob) && pdg::IsProton(nucl);
223 
224  return isvbp;
225 }
int HitNucPdg(void) const
Definition: Target.cxx:321
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:299
Target * fTgt
nuclear target
Definition: InitialState.h:109
bool IsAntiNeutrino(int pdgc)
Definition: PDGUtils.cxx:116
int fProbePdg
probe PDG code
Definition: InitialState.h:108
bool InitialState::IsNuN ( void  ) const

is neutrino + neutron?

Definition at line 209 of file InitialState.cxx.

References fProbePdg, fTgt, genie::Target::HitNucPdg(), genie::pdg::IsNeutrino(), and genie::pdg::IsNeutron().

Referenced by ConvertToGHad(), genie::utils::ghep::NuanceReactionCode(), TgtPtr(), and genie::StrumiaVissaniIBDPXSec::ValidKinematics().

210 {
211  int prob = fProbePdg;
212  int nucl = fTgt->HitNucPdg();
213  bool isvn = pdg::IsNeutrino(prob) && pdg::IsNeutron(nucl);
214 
215  return isvn;
216 }
bool IsNeutrino(int pdgc)
Definition: PDGUtils.cxx:108
int HitNucPdg(void) const
Definition: Target.cxx:321
bool IsNeutron(int pdgc)
Definition: PDGUtils.cxx:304
Target * fTgt
nuclear target
Definition: InitialState.h:109
int fProbePdg
probe PDG code
Definition: InitialState.h:108
bool InitialState::IsNuP ( void  ) const

is neutrino + proton?

Definition at line 200 of file InitialState.cxx.

References fProbePdg, fTgt, genie::Target::HitNucPdg(), genie::pdg::IsNeutrino(), and genie::pdg::IsProton().

Referenced by ConvertToGHad(), genie::utils::ghep::NuanceReactionCode(), and TgtPtr().

201 {
202  int prob = fProbePdg;
203  int nucl = fTgt->HitNucPdg();
204  bool isvp = pdg::IsNeutrino(prob) && pdg::IsProton(nucl);
205 
206  return isvp;
207 }
bool IsNeutrino(int pdgc)
Definition: PDGUtils.cxx:108
int HitNucPdg(void) const
Definition: Target.cxx:321
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:299
Target * fTgt
nuclear target
Definition: InitialState.h:109
int fProbePdg
probe PDG code
Definition: InitialState.h:108
InitialState & InitialState::operator= ( const InitialState i)

copy

Definition at line 493 of file InitialState.cxx.

References Copy().

Referenced by TgtPtr().

494 {
495  this->Copy(init_state);
496  return (*this);
497 }
void Copy(const InitialState &init_state)
bool InitialState::operator== ( const InitialState i) const

equal?

Definition at line 488 of file InitialState.cxx.

References Compare().

Referenced by TgtPtr().

489 {
490  return this->Compare(init_state);
491 }
bool Compare(const InitialState &init_state) const
void InitialState::Print ( ostream &  stream) const

Definition at line 408 of file InitialState.cxx.

References genie::Target::A(), allTimeWatchdog::endl, genie::PDGLibrary::Find(), fProbeP4, fProbePdg, fTgt, fTgtP4, genie::Target::HitNucP4Ptr(), genie::Target::HitNucPdg(), genie::Target::HitQrkPdg(), genie::Target::HitSeaQrk(), genie::PDGLibrary::Instance(), genie::pdg::IsAntiQuark(), genie::pdg::IsNeutronOrProton(), genie::pdg::IsQuark(), genie::Target::Pdg(), Probe(), and genie::Target::Z().

Referenced by ClassImp(), and TgtPtr().

409 {
410  stream << "[-] [Init-State] " << endl;
411 
412  stream << " |--> probe : "
413  << "PDG-code = " << fProbePdg
414  << " (" << this->Probe()->GetName() << ")" << endl;
415 
416  stream << " |--> nucl. target : "
417  << "Z = " << fTgt->Z()
418  << ", A = " << fTgt->A()
419  << ", PDG-Code = " << fTgt->Pdg();
420 
421  TParticlePDG * tgt = PDGLibrary::Instance()->Find( fTgt->Pdg() );
422  if(tgt) {
423  stream << " (" << tgt->GetName() << ")";
424  }
425  stream << endl;
426 
427  stream << " |--> hit nucleon : ";
428  int nuc_pdgc = fTgt->HitNucPdg();
429 
430  if ( pdg::IsNeutronOrProton(nuc_pdgc) ) {
431  TParticlePDG * p = PDGLibrary::Instance()->Find(nuc_pdgc);
432  stream << "PDC-Code = " << nuc_pdgc << " (" << p->GetName() << ")";
433  } else {
434  stream << "no set";
435  }
436  stream << endl;
437 
438  stream << " |--> hit quark : ";
439  int qrk_pdgc = fTgt->HitQrkPdg();
440 
441  if ( pdg::IsQuark(qrk_pdgc) || pdg::IsAntiQuark(qrk_pdgc)) {
442  TParticlePDG * p = PDGLibrary::Instance()->Find(qrk_pdgc);
443  stream << "PDC-Code = " << qrk_pdgc << " (" << p->GetName() << ") ";
444  stream << (fTgt->HitSeaQrk() ? "[sea]" : "[valence]");
445  } else {
446  stream << "no set";
447  }
448  stream << endl;
449 
450  stream << " |--> probe 4P : "
451  << "(E = " << setw(12) << setprecision(6) << fProbeP4->E()
452  << ", Px = " << setw(12) << setprecision(6) << fProbeP4->Px()
453  << ", Py = " << setw(12) << setprecision(6) << fProbeP4->Py()
454  << ", Pz = " << setw(12) << setprecision(6) << fProbeP4->Pz()
455  << ")"
456  << endl;
457  stream << " |--> target 4P : "
458  << "(E = " << setw(12) << setprecision(6) << fTgtP4->E()
459  << ", Px = " << setw(12) << setprecision(6) << fTgtP4->Px()
460  << ", Py = " << setw(12) << setprecision(6) << fTgtP4->Py()
461  << ", Pz = " << setw(12) << setprecision(6) << fTgtP4->Pz()
462  << ")"
463  << endl;
464 
465  if ( pdg::IsNeutronOrProton(nuc_pdgc) ) {
466 
467  TLorentzVector * nuc_p4 = fTgt->HitNucP4Ptr();
468 
469  stream << " |--> nucleon 4P : "
470  << "(E = " << setw(12) << setprecision(6) << nuc_p4->E()
471  << ", Px = " << setw(12) << setprecision(6) << nuc_p4->Px()
472  << ", Py = " << setw(12) << setprecision(6) << nuc_p4->Py()
473  << ", Pz = " << setw(12) << setprecision(6) << nuc_p4->Pz()
474  << ")";
475  }
476 }
bool HitSeaQrk(void) const
Definition: Target.cxx:316
int HitNucPdg(void) const
Definition: Target.cxx:321
int A(void) const
Definition: Target.h:71
int HitQrkPdg(void) const
Definition: Target.cxx:259
const char * p
Definition: xmltok.h:285
int Pdg(void) const
Definition: Target.h:72
bool IsAntiQuark(int pdgc)
Definition: PDGUtils.cxx:241
TParticlePDG * Probe(void) const
Target * fTgt
nuclear target
Definition: InitialState.h:109
TLorentzVector * fProbeP4
probe 4-momentum in LAB-frame
Definition: InitialState.h:110
TLorentzVector * fTgtP4
nuclear target 4-momentum in LAB-frame
Definition: InitialState.h:111
int Z(void) const
Definition: Target.h:69
TLorentzVector * HitNucP4Ptr(void) const
Definition: Target.cxx:264
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:43
bool IsQuark(int pdgc)
Definition: PDGUtils.cxx:233
bool IsNeutronOrProton(int pdgc)
Definition: PDGUtils.cxx:314
TParticlePDG * Find(int pdgc)
Definition: PDGLibrary.cxx:61
int fProbePdg
probe PDG code
Definition: InitialState.h:108
TParticlePDG * InitialState::Probe ( void  ) const

Definition at line 148 of file InitialState.cxx.

References genie::PDGLibrary::Find(), fProbePdg, and genie::PDGLibrary::Instance().

Referenced by AsString(), genie::Interaction::AsString(), genie::XSecSplineList::CreateSpline(), genie::HadronicSystemGenerator::HadronShowerCharge(), genie::KNOHadronization::HadronShowerCharge(), and Print().

149 {
150  TParticlePDG * p = PDGLibrary::Instance()->Find(fProbePdg);
151  return p;
152 }
const char * p
Definition: xmltok.h:285
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:43
TParticlePDG * Find(int pdgc)
Definition: PDGLibrary.cxx:61
int fProbePdg
probe PDG code
Definition: InitialState.h:108
double InitialState::ProbeE ( RefFrame_t  rf) const

Definition at line 365 of file InitialState.cxx.

References E, GetProbeP4(), and make_associated_cosmic_defs::p4.

Referenced by genie::MECGenerator::AddFinalStateLepton(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), genie::RESKinematicsGenerator::ComputeMaxXSec(), genie::SKKinematicsGenerator::ComputeMaxXSec(), genie::utils::CosTheta0Max(), genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor(), genie::utils::gsl::d3Xsec_dTldTkdCosThetal::DoEval(), genie::utils::gsl::d2XSec_dWdQ2_E::DoEval(), genie::SmithMonizQELCCPXSec::dsQES_dQ2_SM(), genie::NuEKinematicsGenerator::Energy(), genie::COHElKinematicsGenerator::Energy(), genie::SKKinematicsGenerator::Energy(), genie::KineGeneratorWithCache::Energy(), genie::COHKinematicsGenerator::Energy(), genie::BergerSehgalFMCOHPiPXSec2015::ExactKinematicTerm(), genie::BergerSehgalCOHPiPXSec2015::ExactKinematicTerm(), genie::KuzminNaumov2016AxialFormFactorModel::FA(), genie::CharmHadronization::Hadronize(), genie::H3AMNuGammaPXSec::Integral(), genie::GLRESPXSec::Integral(), genie::EmpiricalMECPXSec2015::Integral(), genie::KLVOxygenIBDPXSec::Integral(), genie::LwlynSmithQELCCPXSec::Integral(), genie::COHXSecAR::Integrate(), genie::COHXSec::Integrate(), genie::DISXSec::Integrate(), genie::DMDISXSec::Integrate(), genie::MECXSec::Integrate(), genie::AlamSimoAtharVacasSKXSec::Integrate(), genie::SmithMonizQELCCXSec::Integrate(), genie::ReinSehgalRESXSec::Integrate(), genie::ReinSehgalRESXSecFast::Integrate(), genie::ReinSehgalSPPXSec::Integrate(), genie::NewQELXSec::Integrate(), genie::KPhaseSpace::IsAboveThreshold(), genie::utils::kinematics::Jacobian(), genie::FermiMover::KickHitNucleon(), supernova::SnovaGen::MakeMCTruth(), genie::COHKinematicsGenerator::MaxXSec_AlvarezRuso(), genie::COHKinematicsGenerator::MaxXSec_ReinSehgal(), genie::utils::kinematics::PhaseSpaceVolume(), genie::BergerSehgalFMCOHPiPXSec2015::PionCOMAbsMomentum(), genie::BergerSehgalCOHPiPXSec2015::PionCOMAbsMomentum(), genie::NuEPrimaryLeptonGenerator::ProcessEventRecord(), genie::DFRHadronicSystemGenerator::ProcessEventRecord(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::COHElKinematicsGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::QPMDISStrucFuncBase::Q2(), genie::utils::kinematics::Q2(), genie::KPhaseSpace::Q2Lim(), genie::KPhaseSpace::Q2Lim_W(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::PhysInteractionSelector::SelectInteraction(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::SmithMonizUtils::SetInteraction(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::utils::mec::TensorContraction(), TgtPtr(), genie::KPhaseSpace::TLim(), genie::utils::kinematics::UpdateWQ2FromXY(), genie::utils::kinematics::UpdateXFromQ2Y(), genie::utils::kinematics::UpdateXYFromWQ2(), genie::StrumiaVissaniIBDPXSec::ValidKinematics(), genie::KLVOxygenIBDPXSec::ValidKinematics(), genie::PaisQELLambdaPXSec::ValidKinematics(), genie::KovalenkoQELCharmPXSec::ValidKinematics(), genie::utils::kinematics::W(), genie::KPhaseSpace::WLim(), genie::KPhaseSpace::XLim(), genie::EmpiricalMECPXSec2015::XSec(), genie::COHElasticPXSec::XSec(), genie::AlamSimoAtharVacasSKPXSec2014::XSec(), genie::SlowRsclCharmDISPXSecLO::XSec(), genie::AhrensNCELPXSec::XSec(), genie::ReinDFRPXSec::XSec(), genie::RosenbluthPXSec::XSec(), genie::StrumiaVissaniIBDPXSec::XSec(), genie::AlvarezRusoCOHPiPXSec::XSec(), genie::AivazisCharmPXSecLO::XSec(), genie::QPMDISPXSec::XSec(), genie::IMDAnnihilationPXSec::XSec(), genie::P33PaschosLalakulichPXSec::XSec(), genie::AhrensDMELPXSec::XSec(), genie::BergerSehgalFMCOHPiPXSec2015::XSec(), genie::LwlynSmithQELCCPXSec::XSec(), genie::QPMDMDISPXSec::XSec(), genie::BergerSehgalCOHPiPXSec2015::XSec(), genie::NuElectronPXSec::XSec(), genie::PaisQELLambdaPXSec::XSec(), genie::ReinSehgalCOHPiPXSec::XSec(), genie::NievesSimoVacasMECPXSec2016::XSec(), genie::KovalenkoQELCharmPXSec::XSec(), genie::BardinIMDRadCorPXSec::XSec(), genie::ReinSehgalRESPXSec::XSec(), genie::BSKLNBaseRESPXSec2014::XSec(), genie::KPhaseSpace::YLim(), and genie::KPhaseSpace::YLim_X().

366 {
367  TLorentzVector * p4 = this->GetProbeP4(ref_frame);
368  double E = p4->Energy();
369 
370  delete p4;
371  return E;
372 }
Float_t E
Definition: plot.C:20
TLorentzVector * GetProbeP4(RefFrame_t rf=kRfHitNucRest) const
int genie::InitialState::ProbePdg ( void  ) const
inline

Definition at line 65 of file InitialState.h.

References fProbePdg, and TgtPdg().

Referenced by genie::NuETargetRemnantGenerator::AddElectronNeutrino(), genie::InitialStateAppender::AddNeutrino(), genie::HadronizationModelBase::ApplyRijk(), genie::PythiaHadronization::AssertValidity(), AsString(), genie::Interaction::AsString(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::QPMDISStrucFuncBase::Calculate(), Compare(), genie::NievesQELCCPXSec::CompareNievesTensors(), genie::GEVGDriver::Configure(), genie::GLRESInteractionListGenerator::CreateInteractionList(), genie::DFRInteractionListGenerator::CreateInteractionList(), genie::AMNuGammaInteractionListGenerator::CreateInteractionList(), genie::MECInteractionListGenerator::CreateInteractionList(), genie::RESInteractionListGenerator::CreateInteractionList(), genie::COHInteractionListGenerator::CreateInteractionList(), genie::IBDInteractionListGenerator::CreateInteractionList(), genie::SKInteractionListGenerator::CreateInteractionList(), genie::RSPPInteractionListGenerator::CreateInteractionList(), genie::DISInteractionListGenerator::CreateInteractionList(), genie::DMDISInteractionListGenerator::CreateInteractionList(), genie::QELInteractionListGenerator::CreateInteractionListCC(), genie::QELInteractionListGenerator::CreateInteractionListCharmCC(), genie::DMELInteractionListGenerator::CreateInteractionListDM(), genie::QELInteractionListGenerator::CreateInteractionListEM(), genie::QELInteractionListGenerator::CreateInteractionListNC(), genie::QELInteractionListGenerator::CreateInteractionListStrangeCC(), genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor(), genie::SmithMonizQELCCPXSec::dsQES_dQ2_SM(), genie::SppChannel::FromInteraction(), genie::Interaction::FSPrimLeptonPdg(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), genie::DISInteractionListGenerator::GetHitQuarks(), genie::PythiaHadronization::Hadronize(), genie::CharmHadronization::Hadronize(), genie::NuEInteractionListGenerator::IMDAnnihilationInteractionList(), genie::NuEInteractionListGenerator::IMDInteractionList(), genie::EmpiricalMECPXSec2015::Integral(), genie::KLVOxygenIBDPXSec::Integral(), genie::ReinSehgalRESXSec::Integrate(), genie::ReinSehgalRESXSecFast::Integrate(), genie::ReinSehgalSPPXSec::Integrate(), genie::KNOHadronization::MultiplicityProb(), genie::utils::ghep::NeutReactionCode(), genie::NuEInteractionListGenerator::NuEELInteractionList(), genie::Interaction::RecoilNucleonPdg(), genie::MECGenerator::SelectNSVLeptonKinematics(), SetTgtPdg(), genie::utils::mec::TensorContraction(), genie::KLVOxygenIBDPXSec::ValidKinematics(), genie::GLRESPXSec::ValidProcess(), genie::SlowRsclCharmDISPXSecLO::ValidProcess(), genie::RosenbluthPXSec::ValidProcess(), genie::StrumiaVissaniIBDPXSec::ValidProcess(), genie::AivazisCharmPXSecLO::ValidProcess(), genie::KLVOxygenIBDPXSec::ValidProcess(), genie::AlvarezRusoCOHPiPXSec::ValidProcess(), genie::QPMDISPXSec::ValidProcess(), genie::BergerSehgalFMCOHPiPXSec2015::ValidProcess(), genie::LwlynSmithQELCCPXSec::ValidProcess(), genie::QPMDMDISPXSec::ValidProcess(), genie::BergerSehgalCOHPiPXSec2015::ValidProcess(), genie::ReinSehgalCOHPiPXSec::ValidProcess(), genie::SmithMonizQELCCPXSec::ValidProcess(), genie::ReinSehgalRESPXSec::ValidProcess(), genie::BSKLNBaseRESPXSec2014::ValidProcess(), genie::NievesQELCCPXSec::ValidProcess(), genie::SlowRsclCharmDISPXSecLO::XSec(), genie::AhrensNCELPXSec::XSec(), genie::AlvarezRusoCOHPiPXSec::XSec(), genie::QPMDISPXSec::XSec(), genie::AivazisCharmPXSecLO::XSec(), genie::LwlynSmithQELCCPXSec::XSec(), genie::NuElectronPXSec::XSec(), genie::PaisQELLambdaPXSec::XSec(), genie::NievesSimoVacasMECPXSec2016::XSec(), genie::ReinSehgalRESPXSec::XSec(), genie::BSKLNBaseRESPXSec2014::XSec(), and genie::NievesQELCCPXSec::XSec().

65 { return fProbePdg; }
int fProbePdg
probe PDG code
Definition: InitialState.h:108
void InitialState::Reset ( void  )

Definition at line 126 of file InitialState.cxx.

References CleanUp(), and Init().

Referenced by TgtPtr().

127 {
128  this->CleanUp();
129  this->Init();
130 }
void InitialState::SetPdgs ( int  tgt_pdgc,
int  probe_pdgc 
)

Definition at line 154 of file InitialState.cxx.

References CleanUp(), and Init().

Referenced by genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), and TgtPtr().

155 {
156  this->CleanUp();
157  this->Init(tgt_pdgc, probe_pdgc);
158 }
void InitialState::SetProbeE ( double  E)
void InitialState::SetProbeP4 ( const TLorentzVector &  P4)

Definition at line 184 of file InitialState.cxx.

References fProbeP4.

Referenced by genie::Interaction::AMNuGamma(), genie::Interaction::ASK(), genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::Interaction::COHCC(), genie::Interaction::COHEl(), genie::Interaction::COHNC(), Copy(), genie::XSecSplineList::CreateSpline(), genie::Interaction::DFRCC(), genie::Interaction::DISCC(), genie::Interaction::DISEM(), genie::Interaction::DISNC(), genie::Interaction::DMDI(), genie::Interaction::DME(), genie::GEVGDriver::GenerateEvent(), genie::Interaction::GLR(), genie::Interaction::IBD(), genie::Interaction::IMD(), main(), genie::Interaction::MECCC(), genie::Interaction::MECEM(), genie::Interaction::MECNC(), genie::Interaction::QELCC(), genie::Interaction::QELEM(), genie::Interaction::QELNC(), genie::Interaction::RESCC(), genie::Interaction::RESEM(), genie::Interaction::RESNC(), cafrwgt::CAFReweight::RetrieveGHEP(), genie::PhysInteractionSelector::SelectInteraction(), genie::ToyInteractionSelector::SelectInteraction(), testXsec(), TgtPtr(), and genie::GEVGDriver::XSecSum().

185 {
186  fProbeP4 -> SetE ( P4.E() );
187  fProbeP4 -> SetPx ( P4.Px() );
188  fProbeP4 -> SetPy ( P4.Py() );
189  fProbeP4 -> SetPz ( P4.Pz() );
190 }
TLorentzVector * fProbeP4
probe 4-momentum in LAB-frame
Definition: InitialState.h:110
void InitialState::SetProbePdg ( int  pdg_code)

Definition at line 168 of file InitialState.cxx.

References CleanUp(), Init(), and TgtPdg().

Referenced by TgtPtr().

169 {
170  int tgt_pdgc = this->TgtPdg();
171 
172  this->CleanUp();
173  this->Init(tgt_pdgc, probe_pdgc);
174 }
int TgtPdg(void) const
void InitialState::SetTgtP4 ( const TLorentzVector &  P4)

Definition at line 192 of file InitialState.cxx.

References fTgtP4.

Referenced by Copy(), cafrwgt::CAFReweight::RetrieveGHEP(), and TgtPtr().

193 {
194  fTgtP4 -> SetE ( P4.E() );
195  fTgtP4 -> SetPx ( P4.Px() );
196  fTgtP4 -> SetPy ( P4.Py() );
197  fTgtP4 -> SetPz ( P4.Pz() );
198 }
TLorentzVector * fTgtP4
nuclear target 4-momentum in LAB-frame
Definition: InitialState.h:111
void InitialState::SetTgtPdg ( int  pdg_code)

Definition at line 160 of file InitialState.cxx.

References CleanUp(), Init(), and ProbePdg().

Referenced by TgtPtr().

161 {
162  int probe_pdgc = this->ProbePdg();
163 
164  this->CleanUp();
165  this->Init(tgt_pdgc, probe_pdgc);
166 }
int ProbePdg(void) const
Definition: InitialState.h:65
const Target& genie::InitialState::Tgt ( void  ) const
inline

Definition at line 67 of file InitialState.h.

References fTgt.

Referenced by genie::MECGenerator::AddFinalStateLepton(), genie::DISHadronicSystemGenerator::AddFragmentationProducts(), genie::InitialStateAppender::AddNucleus(), genie::QELHadronicSystemGenerator::AddRecoilBaryon(), genie::IBDHadronicSystemGenerator::AddRecoilBaryon(), genie::RSPPHadronicSystemGenerator::AddResonanceDecayProducts(), genie::InitialStateAppender::AddStruckParticle(), genie::NuETargetRemnantGenerator::AddTargetNucleusRemnant(), genie::HadronizationModelBase::ApplyRijk(), genie::PythiaHadronization::AssertValidity(), AsString(), genie::Interaction::AsString(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::QPMDISStrucFuncBase::CalcPDFs(), genie::QPMDISStrucFuncBase::Calculate(), genie::SKHadronicSystemGenerator::CalculateHadronicSystem_AtharSingleKaon(), genie::COHHadronicSystemGenerator::CalculateHadronicSystem_BergerSehgalFM(), genie::SKKinematicsGenerator::CalculateKin_AtharSingleKaon(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), Compare(), genie::NievesQELCCPXSec::CompareNievesTensors(), genie::DISKinematicsGenerator::ComputeMaxXSec(), genie::DMDISKinematicsGenerator::ComputeMaxXSec(), genie::QELEventGenerator::ComputeMaxXSec(), novarwgt::ConvertGenieEvent(), ConvertToGST(), ConvertToGTracker(), genie::utils::CosTheta0Max(), genie::GLRESInteractionListGenerator::CreateInteractionList(), genie::DFRInteractionListGenerator::CreateInteractionList(), genie::MECInteractionListGenerator::CreateInteractionList(), genie::AMNuGammaInteractionListGenerator::CreateInteractionList(), genie::RESInteractionListGenerator::CreateInteractionList(), genie::COHInteractionListGenerator::CreateInteractionList(), genie::IBDInteractionListGenerator::CreateInteractionList(), genie::DISInteractionListGenerator::CreateInteractionList(), genie::DMDISInteractionListGenerator::CreateInteractionList(), genie::QELInteractionListGenerator::CreateInteractionListEM(), genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor(), genie::utils::gsl::d2XSec_dWdQ2_E::DoEval(), genie::KovalenkoQELCharmPXSec::DR(), genie::SmithMonizQELCCPXSec::dsQES_dQ2_SM(), genie::KuzminNaumov2016AxialFormFactorModel::FA(), genie::LwlynSmithFFNC::Fp(), genie::LwlynSmithFF::Fp(), genie::SppChannel::FromInteraction(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), genie::BBA03ELFormFactorsModel::Gen(), GenerateEvent(), genie::TransverseEnhancementFFModel::GetTransEnhMagFF(), genie::PythiaHadronization::Hadronize(), genie::CharmHadronization::Hadronize(), genie::HadronicSystemGenerator::HadronShowerCharge(), genie::KNOHadronization::HadronShowerCharge(), genie::IBDXSecMap::Integral(), genie::H3AMNuGammaPXSec::Integral(), genie::EmpiricalMECPXSec2015::Integral(), genie::LwlynSmithQELCCPXSec::Integral(), genie::DISXSec::Integrate(), genie::DMDISXSec::Integrate(), genie::AlamSimoAtharVacasSKXSec::Integrate(), genie::SmithMonizQELCCXSec::Integrate(), genie::ReinSehgalRESXSec::Integrate(), genie::ReinSehgalRESXSecFast::Integrate(), genie::ReinSehgalSPPXSec::Integrate(), genie::utils::kinematics::Jacobian(), main(), supernova::SnovaGen::MakeMCTruth(), genie::KNOHadronization::MultiplicityProb(), genie::utils::ghep::NeutReactionCode(), genie::utils::ghep::NuanceReactionCode(), genie::QPMDISStrucFuncBase::NuclMod(), genie::utils::nuclear::NuclQELXSecSuppression(), genie::PrimaryLeptonGenerator::NucRestFrame2Lab(), genie::OutgoingDarkGenerator::NucRestFrame2Lab(), genie::utils::kinematics::PhaseSpaceVolume(), genie::BergerSehgalFMCOHPiPXSec2015::PionCOMAbsMomentum(), genie::BergerSehgalCOHPiPXSec2015::PionCOMAbsMomentum(), genie::DFRHadronicSystemGenerator::ProcessEventRecord(), genie::DFRKinematicsGenerator::ProcessEventRecord(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::RESKinematicsGenerator::ProcessEventRecord(), genie::FermiMover::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::IBDKinematicsGenerator::ProcessEventRecord(), genie::NucleonDecayPrimaryVtxGenerator::ProcessEventRecord(), genie::DISKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::DMDISKinematicsGenerator::ProcessEventRecord(), genie::PauliBlocker::ProcessEventRecord(), genie::NNBarOscPrimaryVtxGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::QPMDISStrucFuncBase::Q2(), genie::utils::kinematics::Q2(), genie::KPhaseSpace::Q2Lim(), genie::KPhaseSpace::Q2Lim_W(), genie::Interaction::RecoilNucleonPdg(), SaveGraphsToRootFile(), genie::MECGenerator::SelectEmpiricalKinematics(), genie::SmithMonizUtils::SetInteraction(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::BBA05ELFormFactorsModel::tau(), genie::LwlynSmithFF::tau(), genie::utils::mec::TensorContraction(), genie::KPhaseSpace::Threshold(), genie::KPhaseSpace::TLim(), genie::utils::kinematics::UpdateWQ2FromXY(), genie::utils::kinematics::UpdateXFromQ2Y(), genie::utils::kinematics::UpdateXYFromWQ2(), genie::IBDXSecMap::ValidKinematics(), genie::PaisQELLambdaPXSec::ValidKinematics(), genie::KovalenkoQELCharmPXSec::ValidKinematics(), genie::IBDXSecMap::ValidProcess(), genie::GLRESPXSec::ValidProcess(), genie::COHElasticPXSec::ValidProcess(), genie::SlowRsclCharmDISPXSecLO::ValidProcess(), genie::ReinDFRPXSec::ValidProcess(), genie::RosenbluthPXSec::ValidProcess(), genie::StrumiaVissaniIBDPXSec::ValidProcess(), genie::QPMDISPXSec::ValidProcess(), genie::AivazisCharmPXSecLO::ValidProcess(), genie::AlvarezRusoCOHPiPXSec::ValidProcess(), genie::BergerSehgalFMCOHPiPXSec2015::ValidProcess(), genie::QPMDMDISPXSec::ValidProcess(), genie::LwlynSmithQELCCPXSec::ValidProcess(), genie::BergerSehgalCOHPiPXSec2015::ValidProcess(), genie::PaisQELLambdaPXSec::ValidProcess(), genie::ReinSehgalCOHPiPXSec::ValidProcess(), genie::KovalenkoQELCharmPXSec::ValidProcess(), genie::ReinSehgalRESPXSec::ValidProcess(), genie::SmithMonizQELCCPXSec::ValidProcess(), genie::BSKLNBaseRESPXSec2014::ValidProcess(), genie::NievesQELCCPXSec::ValidProcess(), genie::utils::kinematics::W(), genie::KPhaseSpace::WLim(), genie::KPhaseSpace::XLim(), genie::IBDXSecMap::XSec(), genie::COHElasticPXSec::XSec(), genie::EmpiricalMECPXSec2015::XSec(), genie::SlowRsclCharmDISPXSecLO::XSec(), genie::ReinDFRPXSec::XSec(), genie::AhrensNCELPXSec::XSec(), genie::StrumiaVissaniIBDPXSec::XSec(), genie::RosenbluthPXSec::XSec(), genie::QPMDISPXSec::XSec(), genie::AlvarezRusoCOHPiPXSec::XSec(), genie::AivazisCharmPXSecLO::XSec(), genie::IMDAnnihilationPXSec::XSec(), genie::P33PaschosLalakulichPXSec::XSec(), genie::AhrensDMELPXSec::XSec(), genie::BergerSehgalFMCOHPiPXSec2015::XSec(), genie::QPMDMDISPXSec::XSec(), genie::LwlynSmithQELCCPXSec::XSec(), genie::BergerSehgalCOHPiPXSec2015::XSec(), genie::NuElectronPXSec::XSec(), genie::PaisQELLambdaPXSec::XSec(), genie::ReinSehgalCOHPiPXSec::XSec(), genie::NievesSimoVacasMECPXSec2016::XSec(), genie::KovalenkoQELCharmPXSec::XSec(), genie::BardinIMDRadCorPXSec::XSec(), genie::ReinSehgalRESPXSec::XSec(), genie::BSKLNBaseRESPXSec2014::XSec(), genie::NievesQELCCPXSec::XSec(), genie::KPhaseSpace::YLim(), genie::KPhaseSpace::YLim_X(), and genie::KovalenkoQELCharmPXSec::ZR().

67 { return *fTgt; }
Target * fTgt
nuclear target
Definition: InitialState.h:109
int InitialState::TgtPdg ( void  ) const
Target* genie::InitialState::TgtPtr ( void  ) const
inline

Definition at line 68 of file InitialState.h.

References AsString(), CleanUp(), CMEnergy(), Compare(), Copy(), E, fTgt, GetProbeP4(), GetTgtP4(), MECModelEnuComparisons::i, Init(), IsDMN(), IsDMP(), IsNuBarN(), IsNuBarP(), IsNuN(), IsNuP(), genie::kRfHitNucRest, genie::kRfLab, operator<<, operator=(), operator==(), Print(), ProbeE(), Reset(), SetPdgs(), SetProbeE(), SetProbeP4(), SetProbePdg(), SetTgtP4(), SetTgtPdg(), and runNovaSAM::stream.

Referenced by genie::Interaction::AMNuGamma(), genie::utils::BindHitNucleon(), genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), genie::DFRInteractionListGenerator::CreateInteractionList(), genie::RESInteractionListGenerator::CreateInteractionList(), genie::SKInteractionListGenerator::CreateInteractionList(), genie::RSPPInteractionListGenerator::CreateInteractionList(), genie::DISInteractionListGenerator::CreateInteractionList(), genie::DMDISInteractionListGenerator::CreateInteractionList(), genie::QELInteractionListGenerator::CreateInteractionListCC(), genie::QELInteractionListGenerator::CreateInteractionListCharmCC(), genie::DMELInteractionListGenerator::CreateInteractionListDM(), genie::QELInteractionListGenerator::CreateInteractionListNC(), genie::QELInteractionListGenerator::CreateInteractionListStrangeCC(), genie::Interaction::DFRCC(), genie::Interaction::DISCC(), genie::Interaction::DISEM(), genie::Interaction::DISNC(), genie::Interaction::DMDI(), genie::Interaction::DME(), genie::utils::EnergyDeltaFunctionSolutionQEL(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), genie::Interaction::GLR(), genie::Interaction::IBD(), genie::NuEInteractionListGenerator::IMDAnnihilationInteractionList(), genie::NuEInteractionListGenerator::IMDInteractionList(), genie::LwlynSmithQELCCPXSec::Integral(), genie::DISXSec::Integrate(), genie::DMDISXSec::Integrate(), genie::AlamSimoAtharVacasSKXSec::Integrate(), genie::ReinSehgalRESXSec::Integrate(), genie::ReinSehgalRESXSecFast::Integrate(), genie::NewQELXSec::Integrate(), main(), genie::Interaction::MECCC(), genie::Interaction::MECEM(), genie::Interaction::MECNC(), genie::Interaction::NDecay(), genie::utils::nuclear::NuclQELXSecSuppression(), genie::NuEInteractionListGenerator::NuEELInteractionList(), genie::QELKinematicsGenerator::ProcessEventRecord(), genie::DMELKinematicsGenerator::ProcessEventRecord(), genie::QELEventGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::Interaction::QELCC(), genie::Interaction::QELEM(), genie::Interaction::QELNC(), genie::Interaction::RESCC(), genie::Interaction::RESEM(), genie::Interaction::RESNC(), cafrwgt::CAFReweight::RetrieveGHEP(), genie::MECGenerator::SelectNSVLeptonKinematics(), genie::QELKinematicsGenerator::SpectralFuncExperimentalCode(), genie::DMELKinematicsGenerator::SpectralFuncExperimentalCode(), testXsec(), and genie::AlamSimoAtharVacasSKPXSec2014::XSec().

68 { return fTgt; }
Target * fTgt
nuclear target
Definition: InitialState.h:109

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const InitialState i 
)
friend

print

Referenced by TgtPtr().

Member Data Documentation

TLorentzVector* genie::InitialState::fProbeP4
private

probe 4-momentum in LAB-frame

Definition at line 110 of file InitialState.h.

Referenced by CleanUp(), Copy(), GetProbeP4(), Init(), Print(), SetProbeE(), and SetProbeP4().

int genie::InitialState::fProbePdg
private

probe PDG code

Definition at line 108 of file InitialState.h.

Referenced by Compare(), Copy(), Init(), IsDMN(), IsDMP(), IsNuBarN(), IsNuBarP(), IsNuN(), IsNuP(), Print(), Probe(), and ProbePdg().

Target* genie::InitialState::fTgt
private
TLorentzVector* genie::InitialState::fTgtP4
private

nuclear target 4-momentum in LAB-frame

Definition at line 111 of file InitialState.h.

Referenced by CleanUp(), Copy(), GetTgtP4(), Init(), Print(), and SetTgtP4().


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