Public Member Functions | Public Attributes | List of all members
NeutrinoFluxReweight::TargetData Class Reference

The information about the hadron that exits the target. More...

#include <TargetData.h>

Public Member Functions

 TargetData ()
 Default Constructor. More...
 
 TargetData (double tarMom[], int tarPdg, double position[], int anc_idx)
 Constructor given kinematic of the hadron. More...
 
virtual ~TargetData ()
 
std::ostream & print (std::ostream &os) const
 

Public Attributes

int Tar_pdg
 pdg code of the particle More...
 
double Pz
 Longitudinal momentum (GeV/c) of the particle. More...
 
double Px
 P_{x} (GeV/c) of the particle. More...
 
double Py
 P_{y} (GeV/c) of the particle. More...
 
double Theta
 Angle (rad) of the particle. More...
 
double Pt
 Transversal momentum (GeV/c) of the particle. More...
 
double Vx
 The x position of the hadron leaving the target. More...
 
double Vy
 The y position of the hadron leaving the target. More...
 
double Vz
 The z position of the hadron leaving the target. More...
 
int Idx_ancestry
 The index of the hadron leaving the target in the ancestry chain. More...
 

Detailed Description

The information about the hadron that exits the target.

Definition at line 12 of file TargetData.h.

Constructor & Destructor Documentation

NeutrinoFluxReweight::TargetData::TargetData ( )

Default Constructor.

Definition at line 7 of file TargetData.cpp.

7  {
8 
9  Tar_pdg = 0;
10 
11  Px = -1000.;
12  Py = -1000.;
13  Pz = -1000.;
14  Pt = -1000.;
15  Theta = -1000.;
16 
17  Vx = -1000.;
18  Vy = -1000.;
19  Vz = -1000.;
20 
21  Idx_ancestry = -1;
22 
23  }
int Idx_ancestry
The index of the hadron leaving the target in the ancestry chain.
Definition: TargetData.h:51
double Vz
The z position of the hadron leaving the target.
Definition: TargetData.h:48
double Theta
Angle (rad) of the particle.
Definition: TargetData.h:36
int Tar_pdg
pdg code of the particle
Definition: TargetData.h:24
double Px
P_{x} (GeV/c) of the particle.
Definition: TargetData.h:30
double Vx
The x position of the hadron leaving the target.
Definition: TargetData.h:42
double Pt
Transversal momentum (GeV/c) of the particle.
Definition: TargetData.h:39
double Pz
Longitudinal momentum (GeV/c) of the particle.
Definition: TargetData.h:27
double Py
P_{y} (GeV/c) of the particle.
Definition: TargetData.h:33
double Vy
The y position of the hadron leaving the target.
Definition: TargetData.h:45
NeutrinoFluxReweight::TargetData::TargetData ( double  tarMom[],
int  tarPdg,
double  position[],
int  anc_idx 
)

Constructor given kinematic of the hadron.

Definition at line 25 of file TargetData.cpp.

25  {
26 
27  TargetData::Tar_pdg = tarPdg;
28 
29  TargetData::Px = tarMom[0];
30  TargetData::Py = tarMom[1];
31  TargetData::Pz = tarMom[2];
32  TargetData::Pt = std::sqrt(tarMom[0]*tarMom[0] + tarMom[1]*tarMom[1]);
34 
38 
39  Idx_ancestry = anc_idx;
40  }
int Idx_ancestry
The index of the hadron leaving the target in the ancestry chain.
Definition: TargetData.h:51
double Vz
The z position of the hadron leaving the target.
Definition: TargetData.h:48
double Theta
Angle (rad) of the particle.
Definition: TargetData.h:36
int Tar_pdg
pdg code of the particle
Definition: TargetData.h:24
double Px
P_{x} (GeV/c) of the particle.
Definition: TargetData.h:30
double Vx
The x position of the hadron leaving the target.
Definition: TargetData.h:42
double Pt
Transversal momentum (GeV/c) of the particle.
Definition: TargetData.h:39
double Pz
Longitudinal momentum (GeV/c) of the particle.
Definition: TargetData.h:27
double Py
P_{y} (GeV/c) of the particle.
Definition: TargetData.h:33
double Vy
The y position of the hadron leaving the target.
Definition: TargetData.h:45
NeutrinoFluxReweight::TargetData::~TargetData ( )
virtual

Definition at line 43 of file TargetData.cpp.

43  {
44 
45  }

Member Function Documentation

std::ostream & NeutrinoFluxReweight::TargetData::print ( std::ostream &  os) const

Definition at line 46 of file TargetData.cpp.

46  {
47 
48  using namespace std;
49 
50  os<<"pid:"<<setw(5)<<Tar_pdg
51  <<"|p3:"<<setiosflags(ios::fixed) << setprecision(2);
52  os<<Px<<","<<Py<<","<<Pz;
53  os <<"|v3:";
54  os<<Vx<<","<<Vy<<","<<Vz;
55  // os<<endl;
56  return os;
57  }
double Vz
The z position of the hadron leaving the target.
Definition: TargetData.h:48
STL namespace.
int Tar_pdg
pdg code of the particle
Definition: TargetData.h:24
Q_EXPORT QTSManip setprecision(int p)
Definition: qtextstream.h:343
double Px
P_{x} (GeV/c) of the particle.
Definition: TargetData.h:30
Q_EXPORT QTSManip setw(int w)
Definition: qtextstream.h:331
double Vx
The x position of the hadron leaving the target.
Definition: TargetData.h:42
double Pz
Longitudinal momentum (GeV/c) of the particle.
Definition: TargetData.h:27
double Py
P_{y} (GeV/c) of the particle.
Definition: TargetData.h:33
double Vy
The y position of the hadron leaving the target.
Definition: TargetData.h:45

Member Data Documentation

int NeutrinoFluxReweight::TargetData::Idx_ancestry

The index of the hadron leaving the target in the ancestry chain.

Definition at line 51 of file TargetData.h.

double NeutrinoFluxReweight::TargetData::Pt

Transversal momentum (GeV/c) of the particle.

Definition at line 39 of file TargetData.h.

double NeutrinoFluxReweight::TargetData::Px

P_{x} (GeV/c) of the particle.

Definition at line 30 of file TargetData.h.

double NeutrinoFluxReweight::TargetData::Py

P_{y} (GeV/c) of the particle.

Definition at line 33 of file TargetData.h.

double NeutrinoFluxReweight::TargetData::Pz

Longitudinal momentum (GeV/c) of the particle.

Definition at line 27 of file TargetData.h.

int NeutrinoFluxReweight::TargetData::Tar_pdg

pdg code of the particle

Definition at line 24 of file TargetData.h.

double NeutrinoFluxReweight::TargetData::Theta

Angle (rad) of the particle.

Definition at line 36 of file TargetData.h.

double NeutrinoFluxReweight::TargetData::Vx

The x position of the hadron leaving the target.

Definition at line 42 of file TargetData.h.

double NeutrinoFluxReweight::TargetData::Vy

The y position of the hadron leaving the target.

Definition at line 45 of file TargetData.h.

double NeutrinoFluxReweight::TargetData::Vz

The z position of the hadron leaving the target.

Definition at line 48 of file TargetData.h.


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