23 if(aa.
Inc_pdg != 2112)
return false;
24 if(aa.
Inc_P < 12.0)
return false;
26 bool is_wrong_volume = aa.
Vol !=
"TGT1" && aa.
Vol !=
"BudalMonitor" && aa.
Vol !=
"Budal_HFVS" && aa.
Vol !=
"Budal_VFHS";
27 if( (mode==
"REF") || (mode==
"OPT") ){
29 is_wrong_volume = aa.
Vol !=
"TargetFinHorizontal" && aa.
Vol !=
"TargetNoSplitSegment" && aa.
Vol!=
"tCoreLog";
31 if(is_wrong_volume)
return false;
37 double vtx_int[3] = {aa.
Vtx[0],aa.
Vtx[1],aa.
Vtx[2]};
52 double vtx_int[3] = {aa.
Vtx[0],aa.
Vtx[1],aa.
Vtx[2]};
A list/table of parameter names and values.
ThinTargetnCPionReweighter(int iuniv, const ParameterTable &cv_pars, const ParameterTable &univ_pars)
A class to make the reweight event by event.
int Prod_pdg
pdg code of the produced particle
static MakeReweight * getInstance()
double Pt
Transversal momentum (GeV/c) of the produced particle.
double Vtx[3]
Location of the interaction.
The information about a hadronic interaction needed to calculate weights.
double Inc_P4[4]
Momentum 4 vector of the incident particle, E=p[3].
double xF
Feynmann-x of the produced particle: .
virtual double calculateWeight(const InteractionData &aa)
calculate a weight for this interaction given the central value parameters and the parameters for thi...
virtual double calculateWeight(const InteractionData &inter_data)
calculate a weight for this interaction given the central value parameters and the parameters for thi...
double Prod_P4[4]
Momentum 4 vector of the produced particle, E=p[3].
std::string getenv(std::string const &name)
std::string Proc
Interaction process.
virtual bool canReweight(const InteractionData &aa)
can the particular instance of this class reweight this interaction?
double Inc_P
Momentum magnitude of the incident particle.
std::string Vol
Interaction volume.
virtual bool canReweight(const InteractionData &aa)
can the particular instance of this class reweight this interaction?
int Inc_pdg
pdg code of the incident particle
virtual ~ThinTargetnCPionReweighter()
std::vector< ReweightDriver * > vec_rws
vector of Reweighter Drivers, one per universe
ReweightDriver * cv_rw
Reweighter Drivers for the central value.
QTextStream & endl(QTextStream &s)
ThinTargetpCPionReweighter * tt_pCPionRew