25 using namespace genie;
26 using namespace genie::constants;
33 TLorentzVector pnu(0,0,8,8);
44 LOG(
"test",
pINFO) <<
"Printing an interaction object";
63 LOG(
"test",
pINFO) <<
"Printing initial state after setting struck nucl/qrk";
68 LOG(
"test",
pINFO) <<
"Printing target after setting struck nucl/qrk";
78 LOG(
"test",
pINFO) <<
"Printing target after changing struck nucl";
89 LOG(
"test",
pINFO) <<
"Printing kinematics after setting x,y,Q2";
97 LOG(
"test",
pINFO) <<
"Printing kinematics after modifying x,y and adding W";
98 LOG(
"test",
pINFO) <<
"\n" << *wkine;
101 wkine->
Setx(0.25,
true);
102 wkine->
Sety(0.21,
true);
103 wkine->
SetW(2.89,
true);
105 LOG(
"test",
pINFO) <<
"Printing kinematics after setting 'selected'";
106 LOG(
"test",
pINFO) <<
"\n" << *wkine;
111 LOG(
"test",
pINFO) <<
"Printing kinematics after deleting 'running'";
112 LOG(
"test",
pINFO) <<
"\n" << *wkine;
117 LOG(
"test",
pINFO) <<
"Printing kinematics after copying 'selected'";
118 LOG(
"test",
pINFO) <<
"\n" << *wkine;
122 LOG(
"test",
pINFO) <<
"Printing the interaction object after all changes";
void SetProbeP4(const TLorentzVector &P4)
static const double kNucleonMass
void SetQ2(double Q2, bool selected=false)
Kinematics * KinePtr(void) const
void SetHitNucP4(const TLorentzVector &p4)
Generated/set kinematical variables for an event.
void SetHitQrkPdg(int pdgc)
int main(int argc, char **argv)
Summary information for an interaction.
void UseSelectedKinematics(void)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
void Setx(double x, bool selected=false)
void SetW(double W, bool selected=false)
void SetHitNucPdg(int pdgc)
void Sety(double y, bool selected=false)
Target * TgtPtr(void) const
InitialState * InitStatePtr(void) const
const InitialState & InitState(void) const
void ClearRunningValues(void)
const Target & Tgt(void) const
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...
Initial State information.