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

#include <ParticlesThroughVolumesData.h>

Public Member Functions

 ParticlesThroughVolumesData ()
 Default Constructor. More...
 
 ParticlesThroughVolumesData (int ptv_pdg[], double ptv_amount_mat[], double ptv_mom[], std::string ptv_vol)
 Constructor given the kinematic and distance traveled in the volume. More...
 
virtual ~ParticlesThroughVolumesData ()
 
std::ostream & print (std::ostream &os) const
 

Public Attributes

int Pdgs [3]
 pdg codes of the particles More...
 
double AmountMat [3]
 distance multiplied by volume More...
 
double Moms [3]
 Momentum of the particles. More...
 
std::string Vol
 Voulme. More...
 

Detailed Description

Definition at line 12 of file ParticlesThroughVolumesData.h.

Constructor & Destructor Documentation

NeutrinoFluxReweight::ParticlesThroughVolumesData::ParticlesThroughVolumesData ( )

Default Constructor.

default values:

Definition at line 7 of file ParticlesThroughVolumesData.cpp.

7  {
8 
9  //!default values:
10  Pdgs[0] = 0;
11  Pdgs[1] = 0;
12  Pdgs[2] = 0;
13 
14  AmountMat[0] = -1.0;
15  AmountMat[1] = -1.0;
16  AmountMat[2] = -1.0;
17 
18  Moms[0] = 0.0;
19  Moms[1] = 0.0;
20  Moms[2] = 0.0;
21 
22  Vol = "None";
23  }
NeutrinoFluxReweight::ParticlesThroughVolumesData::ParticlesThroughVolumesData ( int  ptv_pdg[],
double  ptv_amount_mat[],
double  ptv_mom[],
std::string  ptv_vol 
)

Constructor given the kinematic and distance traveled in the volume.

I assumed arrays of dimmension 3:

Definition at line 25 of file ParticlesThroughVolumesData.cpp.

25  {
26 
27  //!I assumed arrays of dimmension 3:
28  ParticlesThroughVolumesData::Pdgs[0] = ptv_pdg[0];
29  ParticlesThroughVolumesData::Pdgs[1] = ptv_pdg[1];
30  ParticlesThroughVolumesData::Pdgs[2] = ptv_pdg[2];
31 
32  ParticlesThroughVolumesData::AmountMat[0] = ptv_amount_mat[0];
33  ParticlesThroughVolumesData::AmountMat[1] = ptv_amount_mat[1];
34  ParticlesThroughVolumesData::AmountMat[2] = ptv_amount_mat[2];
35 
36  ParticlesThroughVolumesData::Moms[0] = ptv_mom[0];
37  ParticlesThroughVolumesData::Moms[1] = ptv_mom[1];
38  ParticlesThroughVolumesData::Moms[2] = ptv_mom[2];
39 
41 
42  }
NeutrinoFluxReweight::ParticlesThroughVolumesData::~ParticlesThroughVolumesData ( )
virtual

Definition at line 45 of file ParticlesThroughVolumesData.cpp.

45  {
46 
47  }

Member Function Documentation

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

Definition at line 48 of file ParticlesThroughVolumesData.cpp.

48  {
49 
50  using namespace std;
51 
52  os<<"Vol: "<<Vol<<endl;
53  for(int ii=0;ii<3;ii++){
54  os<<"pid:"<<setw(5)<<Pdgs[ii]<<
55  "|dist, mom: "<<setiosflags(ios::fixed) << setprecision(2);
56  os<<AmountMat[ii]<<","<<Moms[ii];
57  os<<endl;
58  }
59  return os;
60  }
STL namespace.
Q_EXPORT QTSManip setprecision(int p)
Definition: qtextstream.h:343
Q_EXPORT QTSManip setw(int w)
Definition: qtextstream.h:331
QTextStream & endl(QTextStream &s)

Member Data Documentation

double NeutrinoFluxReweight::ParticlesThroughVolumesData::AmountMat[3]

distance multiplied by volume

Definition at line 27 of file ParticlesThroughVolumesData.h.

double NeutrinoFluxReweight::ParticlesThroughVolumesData::Moms[3]

Momentum of the particles.

Definition at line 30 of file ParticlesThroughVolumesData.h.

int NeutrinoFluxReweight::ParticlesThroughVolumesData::Pdgs[3]

pdg codes of the particles

Definition at line 24 of file ParticlesThroughVolumesData.h.

std::string NeutrinoFluxReweight::ParticlesThroughVolumesData::Vol

Voulme.

Definition at line 33 of file ParticlesThroughVolumesData.h.


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