eventAnalysis  7.0-49-g0ac7482
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TJNuBeamFlux.cxx
Go to the documentation of this file.
1 #include "TJNuBeamFlux.hxx"
2 
3 using namespace ND;
4 
5 #include <iostream>
6 
9 
12  NuFileName = new TObjString("Not-set");
13  this->Reset();
14 }
15 
17  if (NuFileName != NULL) {
18  delete NuFileName;
19  NuFileName = NULL;
20  }
21 }
22 void JNuBeamFlux::Copy(const JNuBeamFlux* flux) {
23  NuFileName->SetString(flux->NuFileName->GetString());
24  NuFluxEntry = flux->NuFluxEntry;
25  NuParentPdg = flux->NuParentPdg;
27  NuCospibm = flux->NuCospibm;
28  NuNorm = flux->NuNorm;
29  NuCospi0bm = flux->NuCospi0bm;
30  NuRnu = flux->NuRnu;
31  NuIdfd = flux->NuIdfd;
32  NuGipart = flux->NuGipart;
33  NuGamom0 = flux->NuGamom0;
34  NuEnusk = flux->NuEnusk;
35  NuNormsk = flux->NuNormsk;
36  NuAnorm = flux->NuAnorm;
37  NuVersion = flux->NuVersion;
38  NuTuneid = flux->NuTuneid;
39  NuNtrig = flux->NuNtrig;
40  NuPint = flux->NuPint;
41  NuRand = flux->NuRand;
42  for (int i = 0; i < 2; i++) {
43  NuXnu[i] = flux->NuXnu[i];
44  NuBpos[i] = flux->NuBpos[i];
45  NuBtilt[i] = flux->NuBtilt[i];
46  NuBrms[i] = flux->NuBrms[i];
47  NuEmit[i] = flux->NuEmit[i];
48  NuAlpha[i] = flux->NuAlpha[i];
49  // NuRseed[i] = flux->NuRseed[i];
50  }
51  for (int i = 0; i < 3; i++) {
52  NuGpos0[i] = flux->NuGpos0[i];
53  NuGvec0[i] = flux->NuGvec0[i];
54  NuHcur[i] = flux->NuHcur[i];
55  }
56  for (int i = 0; i < 4; i++) {
57  NuParentDecP4[i] = flux->NuParentDecP4[i];
58  NuParentDecX4[i] = flux->NuParentDecX4[i];
59  NuParentProP4[i] = flux->NuParentProP4[i];
60  NuParentProX4[i] = flux->NuParentProX4[i];
61  }
62  NuNg = flux->NuNg;
63  for (int i = 0; i < kNgmax; i++) {
64  NuGcosbm[i] = flux->NuGcosbm[i];
65  NuGdistc[i] = flux->NuGdistc[i];
66  NuGdistal[i] = flux->NuGdistal[i];
67  NuGdistti[i] = flux->NuGdistti[i];
68  NuGdistfe[i] = flux->NuGdistfe[i];
69  NuGpid[i] = flux->NuGpid[i];
70  NuGmec[i] = flux->NuGmec[i];
71  NuGmat[i] = flux->NuGmat[i];
72  for (int j = 0; j < 3; j++) {
73  NuGp[i][j] = flux->NuGp[i][j];
74  NuGv[i][j] = flux->NuGv[i][j];
75  }
76  }
77 }
79  NuFluxEntry = -1;
80  NuFileName->SetString("Not-set");
81 
82  NuParentPdg = 0;
83  NuParentDecMode = -1;
84  NuCospibm = NuNorm = NuCospi0bm = NuRnu = -999999.;
85  NuIdfd = NuGipart = -999999;
86  NuGamom0 = NuEnusk = NuNormsk = NuAnorm = NuVersion = -999999.;
87  NuTuneid = NuNtrig = NuPint = NuRand = -999999;
88  for (int i = 0; i < 2; i++) {
89  NuXnu[i] = NuBpos[i] = NuBtilt[i] = NuBrms[i] = NuEmit[i] = NuAlpha[i] =
90  -999999.;
91  // NuRseed[i] = -999999;
92  }
93  for (int i = 0; i < 3; i++) NuGpos0[i] = NuGvec0[i] = NuHcur[i] = -999999.;
94  for (int i = 0; i < 4; i++)
96  -999999.;
97  NuNg = -1;
98  for (int i = 0; i < kNgmax; i++) {
99  NuGcosbm[i] = NuGdistc[i] = NuGdistal[i] = NuGdistti[i] = NuGdistfe[i] =
100  -999999.;
101  NuGpid[i] = 0;
102  NuGmec[i] = NuGmat[i] = -999999;
103  for (int j = 0; j < 3; j++) {
104  NuGv[i][j] = -999999.;
105  NuGp[i][j] = -999999.;
106  }
107  }
108 }
float NuGdistti[kNgmax]
distance traveled through titanium
float NuGpos0[3]
primary particle starting point
float NuBtilt[2]
Beam angle.
double NuParentProP4[4]
parent hadron 4-momentum at production
float NuGdistc[kNgmax]
distance traveled through carbon
float NuAnorm
ND Acceptance Weight Out-of-target Secondary Interactions.
ClassImp(ND::TBeamSummaryDataModule::TBeamSummaryData)
float NuRnu
neutrino r position at ND5/6 plane
float NuGp[kNgmax][3]
Momentum of ancestor particle.
float NuBpos[2]
Beam center position.
int NuParentPdg
parent hadron pdg code
float NuEmit[2]
Beam Emittance.
void Reset(void)
int NuNg
Number of interaction steps.
float NuCospibm
parent hadron cos(theta) relative to beam at decay
long NuFluxEntry
corresponding entry in orig flux file
int NuIdfd
Detector ID primary particle information.
float NuGvec0[3]
primary particle direction at starting point
const int kNgmax
int NuGipart
primary particle ID
void Copy(const JNuBeamFlux *flux)
float NuHcur[3]
Horn currents.
int NuTuneid
beam tune ID #
float NuXnu[2]
neutrino (x,y) position at ND5/6 plane
double NuParentDecX4[4]
parent hadron 4-position at decay
double NuParentProX4[4]
parent hadron 4-position at production
int NuParentDecMode
parent hadron decay mode
float NuGamom0
momentum of the primary particle at the starting point Interation History Information ...
float NuEnusk
Neutrino Energy at SK.
float NuVersion
jnubeam flux version
float NuNorm
Normalization weight.
int NuGpid[kNgmax]
PDG ancestor particle ID.
float NuAlpha[2]
Beam Alpha.
float NuGdistfe[kNgmax]
distance traveled through iron Beam parameter information
float NuGv[kNgmax][3]
Position of ancestor particle.
float NuGcosbm[kNgmax]
Ancestor particle cos(theta) relative to beam.
int NuGmec[kNgmax]
particle production mechanism of ancestor particle Normalization and Transfer Matrix Information ...
int NuNtrig
Number of triggers.
float NuCospi0bm
parent hadron cos(theta) relative to beam at production
float NuBrms[2]
Beam RMS width.
virtual ~JNuBeamFlux()
float NuNormsk
Normalization weight at SK.
TObjString * NuFileName
orig flux file name neutrino parent info
int NuRand
Random seed.
double NuParentDecP4[4]
parent hadron 4-momentum at decay
float NuGdistal[kNgmax]
distance traveled through aluminum
int NuGmat[kNgmax]
material in which the particle originates
int NuPint
Interaction model ID.

Package Summary
Package Name: eventAnalysis
Package Version: 7.0-49-g0ac7482
Package Manager:

Generated on Mon Mar 25 2024 14:43:59 for eventAnalysis by doxygen 1.8.5