Jpp 19.3.0-rc.5
the software that should make you happy
|
Implementation of reweighting factor for effective mass ratios. More...
#include <JEvtWeightFactorMeffRatio.hh>
Classes | |
struct | JEvtWeightFactorMeffRatioHelper |
Auxiliary class for I/O of effective mass ratio factor. More... | |
Public Types | |
enum | JMeffRatioOption { ENERGY_INITIAL_STATE , ENERGY_NEUTRINO , EVIS , EVIS_LEADING_LEPTON_CONTR , EVIS_HADRONIC_CONTR , NUMBER_OF_OPTIONS } |
Indices of options for calculating effective mass ratios. More... | |
typedef JRange< double > | JRange_t |
typedef JClonable< JClonable_t >::clone_type | clone_type |
Public Member Functions | |
JEvtWeightFactorMeffRatio () | |
Default constructor. | |
JEvtWeightFactorMeffRatio (const JRootObjectID &objectID, const JMeffRatioOption option, const double ratio, const JRange_t &range, const bool logE, const JCylinder3D &fiducialVolume) | |
Constructor. | |
JEvtWeightFactorMeffRatio (const JEvtWeightFactorMeffRatio &factor) | |
Copy constructor. | |
void | configure () |
Configure effective mass ratio factor. | |
const TH1 & | getHistogram () const |
Retrieve effective mass histogram. | |
JCylinder3D | getFiducialVolume () const |
Retrieve fiducial volume. | |
void | setFiducialVolume (const JCylinder3D &fiducialVolume) |
Set fiducial volume. | |
bool | is_valid () const override final |
Check if this effective mass ratio weight factor is valid. | |
double | interpolate (const double x) const |
Perform linear inter- or extrapolation of effective mass for given abscissa value. | |
double | getMeffRatio (const double x1, const double x2) const |
Get effective mass ratio based on a scaling of the initial state energy. | |
double | getMeffRatio1 (const double E0) const |
Get effective mass ratio based on a scaling of the initial state energy. | |
double | getMeffRatio1 (const Evt &event) const |
Get effective mass ratio based on a scaling of the initial state energy. | |
double | getMeffRatio2 (const double Enu) const |
Get effective mass ratio based on a scaling of the primary neutrino energy. | |
double | getMeffRatio2 (const Evt &event) const |
Get effective mass ratio based on a scaling of the primary neutrino energy. | |
double | getMeffRatio3 (const double Evis) const |
Get effective mass ratio based on a scaling of the total visible energy. | |
double | getMeffRatio3 (const Evt &event) const |
Get effective mass ratio based on a scaling of the total visible energy. | |
double | getMeffRatio4 (const double Evis, const double EvisLL) const |
Get effective mass ratio based on a scaling of the leading leptonic contribution to the total visible energy. | |
double | getMeffRatio4 (const Evt &event) const |
Get effective mass ratio based on a scaling of the leading leptonic contribution to the total visible energy. | |
double | getMeffRatio5 (const double Evis, const double EvisLL) const |
Get effective mass ratio based on a scaling of the hadronic contribution to the total visible energy. | |
double | getMeffRatio5 (const Evt &event) const |
Get effective mass ratio based on a scaling of the hadronic contribution to the total visible energy. | |
double | getFactor (const Evt &evt) const override final |
Get weighting factor for given event. | |
JProperties | getProperties (const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) override final |
Get properties of this class. | |
JProperties | getProperties (const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) const override final |
Get properties of this class. | |
std::istream & | read (std::istream &in) override final |
Read event-weight factor from input. | |
virtual clone_type | clone () const override |
Get clone of this object. | |
Private Types | |
typedef double(JEvtWeightFactorMeffRatio::*) | pFunction(const Evt &) const |
Type definition of pointer to member function for calculating effective mass ratios. | |
Private Attributes | |
pFunction | mfp |
Pointer to member method for calculating effective mass ratios. | |
std::unique_ptr< TH1 > | pMeff |
Unique pointer to effective mass ratio histogram. | |
JRootObjectID | hMeff |
Effective mass histogram OID. | |
int | option |
Effective mass ratio option. | |
double | ratio |
Abscissa ratio. | |
JRange_t | range |
Applicable range. | |
JCylinder3D | fiducialVolume |
Fiducial volume (for visible energy computation) | |
bool | logE |
Toggle logarithmic abscissa. | |
const double | MeffMin |
Minimum effective mass. | |
Implementation of reweighting factor for effective mass ratios.
Definition at line 69 of file JEvtWeightFactorMeffRatio.hh.
Definition at line 72 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Type definition of pointer to member function for calculating effective mass ratios.
Definition at line 557 of file JEvtWeightFactorMeffRatio.hh.
|
inherited |
Definition at line 61 of file JClonable.hh.
Indices of options for calculating effective mass ratios.
The option names correspond to the variable which is used to compute the effective mass ratio.
Definition at line 78 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Default constructor.
Definition at line 91 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Constructor.
objectID | effective mass histogram OID |
option | option |
ratio | abscissa ratio |
range | applicable (logarithmic) energy range [GeV] |
logE | toggle logarithmic energies |
fiducialVolume | fiducial volume |
Definition at line 124 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Copy constructor.
factor | effective mass ratio factor |
Definition at line 149 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Configure effective mass ratio factor.
Definition at line 171 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Retrieve effective mass histogram.
Definition at line 223 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Retrieve fiducial volume.
Definition at line 238 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Set fiducial volume.
fiducialVolume | fiducial volume |
Definition at line 249 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Check if this effective mass ratio weight factor is valid.
Definition at line 262 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Perform linear inter- or extrapolation of effective mass for given abscissa value.
x | abscissa value |
Definition at line 279 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the initial state energy.
x1 | first abscissa value |
x2 | second abscissa value |
Definition at line 306 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the initial state energy.
E0 | initial state energy [GeV] |
Definition at line 324 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the initial state energy.
event | event |
Definition at line 341 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the primary neutrino energy.
Enu | primary neutrino energy [GeV] |
Definition at line 355 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the primary neutrino energy.
event | event |
Definition at line 372 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the total visible energy.
Evis | total visible energy [GeV] |
Definition at line 388 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the total visible energy.
event | event |
Definition at line 405 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the leading leptonic contribution to the total visible energy.
This function assumes that the hadronic component in the visible energy corresponds to the total visible energy
minus the leading leptonic contribution.
Evis | total visible energy [GeV] |
EvisLL | leading lepton visible energy [GeV] |
Definition at line 423 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the leading leptonic contribution to the total visible energy.
This function assumes that the hadronic component in the visible energy corresponds to the total visible energy
minus the leading leptonic contribution.
event | event |
Definition at line 443 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the hadronic contribution to the total visible energy.
This function assumes that the hadronic component in the visible energy corresponds to the total visible energy
minus the leading leptonic contribution.
Evis | total visible energy [GeV] |
EvisLL | leading lepton visible energy [GeV] |
Definition at line 462 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the hadronic contribution to the total visible energy.
This function assumes that the hadronic component in the visible energy corresponds to the total visible energy
minus the leading leptonic contribution.
event | event |
Definition at line 482 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Get weighting factor for given event.
evt | event |
Definition at line 497 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Get properties of this class.
eqpars | equation parameters |
Definition at line 508 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Get properties of this class.
eqpars | equation parameters |
Definition at line 519 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Read event-weight factor from input.
in | input stream |
Definition at line 531 of file JEvtWeightFactorMeffRatio.hh.
|
inlineoverridevirtualinherited |
Get clone of this object.
Reimplemented in JPHYSICS::JPD0Transformer_t< JArgument_t >, JPHYSICS::JPDFTransformer< 2, JArgument_t >, JPHYSICS::JPDFTransformer< 3, JArgument_t >, JPHYSICS::JPDFTransformer< 4, JArgument_t >, JPHYSICS::JPDFTransformer< 5, JArgument_t >, JPHYSICS::JPDFTransformer_t< JArgument_t >, JPHYSICS::JPDGTransformer_t< JArgument_t >, and JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer.
Definition at line 69 of file JClonable.hh.
|
private |
Pointer to member method for calculating effective mass ratios.
Definition at line 589 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Unique pointer to effective mass ratio histogram.
Definition at line 591 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Effective mass histogram OID.
Definition at line 593 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Effective mass ratio option.
Definition at line 594 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Abscissa ratio.
Definition at line 595 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Applicable range.
Definition at line 596 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Fiducial volume (for visible energy computation)
Definition at line 597 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Toggle logarithmic abscissa.
Definition at line 598 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Minimum effective mass.
Definition at line 600 of file JEvtWeightFactorMeffRatio.hh.