TargetData.h
Go to the documentation of this file.
1 #ifndef TARGETDATA_H
2 #define TARGETDATA_H
3 
4 #include <cmath>
5 #include <iostream>
6 
7 namespace NeutrinoFluxReweight{
8 
9  /*! \class TargetData
10  * \brief The information about the hadron that exits the target
11  */
12  class TargetData{
13 
14  public:
15  //! Default Constructor
16  TargetData();
17 
18  //! Constructor given kinematic of the hadron.
19  TargetData(double tarMom[],int tarPdg, double position[],int anc_idx);
20 
21  virtual ~TargetData();
22 
23  //! pdg code of the particle
24  int Tar_pdg;
25 
26  //! Longitudinal momentum (GeV/c) of the particle
27  double Pz;
28 
29  //! P_{x} (GeV/c) of the particle
30  double Px;
31 
32  //! P_{y} (GeV/c) of the particle
33  double Py;
34 
35  //! Angle (rad) of the particle
36  double Theta;
37 
38  //! Transversal momentum (GeV/c) of the particle
39  double Pt;
40 
41  //! The x position of the hadron leaving the target
42  double Vx;
43 
44  //! The y position of the hadron leaving the target
45  double Vy;
46 
47  //! The z position of the hadron leaving the target
48  double Vz;
49 
50  //! The index of the hadron leaving the target in the ancestry chain
52 
53  std::ostream& print(std::ostream& os) const;
54 
55  };
56 
57 
58 }
59 #endif
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
TargetData()
Default Constructor.
Definition: TargetData.cpp:7
int Tar_pdg
pdg code of the particle
Definition: TargetData.h:24
std::ostream & print(std::ostream &os) const
Definition: TargetData.cpp:46
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
The information about the hadron that exits the target.
Definition: TargetData.h:12
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