6 #include "TND280Log.hxx"
15 using std::setprecision;
70 for (
int i = 0; i < 4; i++) {
71 EvtVtx[i] =
event->EvtVtx[i];
84 for (
int i = 0; i <
StdHepN; i++) {
88 StdHepFd[i] =
event->StdHepFdTemp[i];
89 StdHepLd[i] =
event->StdHepLdTemp[i];
90 StdHepFm[i] =
event->StdHepFmTemp[i];
91 StdHepLm[i] =
event->StdHepLmTemp[i];
92 for (
int j = 0; j < 4; j++) {
93 StdHepX4[i][j] =
event->StdHepX4[i][j];
95 for (
int j = 0; j < 4; j++) {
96 StdHepP4[i][j] =
event->StdHepP4[i][j];
98 for (
int j = 0; j < 3; j++) {
127 for (
int i = 0; i < 4; i++) {
140 for (
int j = 0; j < 4; j++) {
143 for (
int j = 0; j < 4; j++) {
146 for (
int j = 0; j < 3; j++) {
165 cout <<
"\nGRooTrackerMCTruth: " << endl;
166 cout <<
" --> GeneratorName = " <<
GeneratorName->GetString() << endl;
167 cout <<
" --> EvtCode = " <<
EvtCode->GetString() << endl;
168 cout <<
" --> GeomPath = " <<
GeomPath->GetString() << endl;
169 cout <<
" --> EvtNum = " <<
EvtNum << endl;
170 cout <<
" --> EvtXSec = " <<
EvtXSec << endl;
171 cout <<
" --> EvtDXSec = " <<
EvtDXSec << endl;
172 cout <<
" --> EvtWght = " <<
EvtWght << endl;
173 cout <<
" --> EvtProb = " <<
EvtProb << endl;
176 cout <<
"GRooTrackerStdHep:" << endl;
178 for (
int i = 0; i <
StdHepN; i++) {
179 cout << setfill(
' ') << setw(4) << i <<
" -> pdgc: " << setfill(
' ')
180 << setw(20) <<
StdHepPdg[i] <<
" / rescat: " << setfill(
' ') << setw(3)
181 <<
StdHepRescat[i] <<
" / ist: " << setfill(
' ') << setw(3)
182 <<
StdHepStatus[i] <<
" / mom: " << setfill(
' ') << setw(3)
183 <<
StdHepFm[i] <<
" / daughters: (" << setfill(
' ') << setw(3)
192 cout <<
"Jnu-beam pass through info:" << endl;
193 cout <<
" --> NuParentPdg = " <<
NuParentPdg << endl;
195 cout <<
" --> NuParentDecP4[4] = " <<
NuParentDecP4[0] <<
", "
198 cout <<
" --> NuParentDecX4[4] = " <<
NuParentDecX4[0] <<
", "
201 cout <<
" --> NuParentProP4[4] = " <<
NuParentProP4[0] <<
", "
204 cout <<
" --> NuParentProX4[4] = " <<
NuParentProX4[0] <<
", "
207 cout <<
" --> NuFluxEntry = " <<
NuFluxEntry << endl;
208 cout <<
" --> NuIdfd = " <<
NuIdfd << endl;
209 cout <<
" --> NuCospibm = " <<
NuCospibm << endl;
210 cout <<
" --> NuCospi0bm = " <<
NuCospi0bm << endl;
211 cout <<
" --> NuGipart = " <<
NuGipart << endl;
212 cout <<
" --> NuGamom0 = " <<
NuGamom0 << endl;
213 cout <<
" --> NuGpos0[3] = " <<
NuGpos0[0] <<
", " <<
NuGpos0[1] <<
", "
215 cout <<
" --> NuGvec0[3] = " <<
NuGvec0[0] <<
", " <<
NuGvec0[1] <<
", "
218 cout <<
"Pass-through file info:" << endl;
219 cout <<
" --> OrigFileName = " <<
OrigFileName->GetString() << endl;
220 cout <<
" --> OrigTreeName = " <<
OrigTreeName->GetString() << endl;
221 cout <<
" --> OrigEvtNum = " <<
OrigEvtNum << endl;
222 cout <<
" --> TimeInSpill = " <<
TimeInSpill << endl;
224 cout <<
" --> OrigTreePOT = " <<
OrigTreePOT << endl;
int StdHepLmTemp[kGStdHepNPmax]
int * StdHepFd
first daughter.
int * StdHepStatus
generator-specific status code
float NuGpos0[3]
primary particle starting point
double NuParentProP4[4]
parent hadron 4-momentum at production
int * StdHepLd
last daughter
double EvtVtx[4]
event vertex position in detector coord syst (SI)
ClassImp(ND::TBeamSummaryDataModule::TBeamSummaryData)
double StdHepP4[kGStdHepNPmax][4]
4-p (px,py,pz,E) of particle in LAB frame (GeV)
int NuParentPdg
parent hadron pdg code
int * StdHepPdg
pdg codes (& generator specific codes for pseudoparticles)
int OrigEvtNum
Event number within the gnmc file.
double StdHepPolz[kGStdHepNPmax][3]
polarization vector
float NuCospibm
parent hadron cos(theta) relative to beam at decay
long NuFluxEntry
corresponding entry in orig flux file
int * StdHepLm
last mother
int NuIdfd
Detector ID primary particle information.
float NuGvec0[3]
primary particle direction at starting point
int G2NeutEvtCode
NEUT-like reaction code for the GENIE event.
int StdHepLdTemp[kGStdHepNPmax]
int OrigTreeEntries
Number of entries in the gnmc file.
double EvtWght
weight for that event
int NuGipart
primary particle ID
void Copy(const JNuBeamFlux *flux)
double NuParentDecX4[4]
parent hadron 4-position at decay
double NuParentProX4[4]
parent hadron 4-position at production
int NuParentDecMode
parent hadron decay mode
void Copy(const GRooTrackerVtx *event)
float NuGamom0
momentum of the primary particle at the starting point Interation History Information ...
int StdHepFdTemp[kGStdHepNPmax]
TObjString * GeomPath
Geometry path of where the vertex is.
double EvtProb
probability for that event (given cross section, pathlengths, etc)
int StdHepStatusTemp[kGStdHepNPmax]
TObjString * EvtCode
generator-specific string with 'event code'
double StdHepX4[kGStdHepNPmax][4]
4-x (x, y, z, t) of particle in hit nucleus frame (fm)
int StdHepFmTemp[kGStdHepNPmax]
void Print(const Option_t *option="") const
double EvtXSec
cross section for selected event (1E-38 cm2)
float NuCospi0bm
parent hadron cos(theta) relative to beam at production
double TimeInSpill
Time of the vertex, relative to spill time.
double EvtDXSec
cross section for selected event kinematics (1E-38 cm2{K^n})
double OrigTreePOT
Number of POT in the gnmc file.
int StdHepN
number of particles in particle array stdhep-like particle array
TObjString * OrigFileName
Filename of the gnmc file.
TObjString * OrigTreeName
Tree name within the gnmc file.
int StdHepPdgTemp[kGStdHepNPmax]
int * StdHepFm
first mother.
int * StdHepRescat
generator-specific status code
double NuParentDecP4[4]
parent hadron 4-momentum at decay
TObjString * GeneratorName
genie, also gives some of the running options(e.g. filling events with a fixed or meannumber of verti...
int StdHepRescatTemp[kGStdHepNPmax]
int TruthVertexID
A link to the TTruthVertex tree.