33 TLorentzVector pnu(0,0,8,8);
36 init_state.SetProbeP4(pnu);
44 LOG(
"test",
pINFO) <<
"Printing an interaction object";
53 interaction.InitStatePtr()->TgtPtr()->SetHitNucP4(pnucl);
54 interaction.InitStatePtr()->TgtPtr()->SetHitNucPdg(
kPdgProton);
55 interaction.InitStatePtr()->TgtPtr()->SetHitQrkPdg(
kPdgUQuark);
63 LOG(
"test",
pINFO) <<
"Printing initial state after setting struck nucl/qrk";
68 LOG(
"test",
pINFO) <<
"Printing target after setting struck nucl/qrk";
69 const Target & ctgt = interaction.InitState().Tgt();
75 Target * wtgt = interaction.InitStatePtr()->TgtPtr();
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";
static const double kNucleonMass
void SetQ2(double Q2, bool selected=false)
Generated/set kinematical variables for an event.
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)
void ClearRunningValues(void)
Initial State information.