Jpp test-rotations-old
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 | 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 66 of file JEvtWeightFactorMeffRatio.hh.
Definition at line 69 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Type definition of pointer to member function for calculating effective mass ratios.
Definition at line 532 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 75 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Default constructor.
Definition at line 88 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 121 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Copy constructor.
factor | effective mass ratio factor |
Definition at line 146 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Configure effective mass ratio factor.
Definition at line 168 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Retrieve effective mass histogram.
Definition at line 220 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Retrieve fiducial volume.
Definition at line 235 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Set fiducial volume.
fiducialVolume | fiducial volume |
Definition at line 246 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Check if this effective mass ratio weight factor is valid.
Definition at line 259 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 277 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 295 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the initial state energy.
event | event |
Definition at line 312 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 326 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the primary neutrino energy.
event | event |
Definition at line 343 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 359 of file JEvtWeightFactorMeffRatio.hh.
|
inline |
Get effective mass ratio based on a scaling of the total visible energy.
event | event |
Definition at line 376 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 394 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 414 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 435 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 455 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Get weighting factor for given event.
evt | event |
Definition at line 472 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Get properties of this class.
eqpars | equation parameters |
Definition at line 483 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Get properties of this class.
eqpars | equation parameters |
Definition at line 494 of file JEvtWeightFactorMeffRatio.hh.
|
inlinefinaloverride |
Read event-weight factor from input.
in | input stream |
Definition at line 506 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 564 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Unique pointer to effective mass ratio histogram.
Definition at line 566 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Effective mass histogram OID.
Definition at line 568 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Effective mass ratio option.
Definition at line 569 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Abscissa ratio.
Definition at line 570 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Applicable range.
Definition at line 571 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Fiducial volume (for visible energy computation)
Definition at line 572 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Toggle logarithmic abscissa.
Definition at line 573 of file JEvtWeightFactorMeffRatio.hh.
|
private |
Minimum effective mass.
Definition at line 575 of file JEvtWeightFactorMeffRatio.hh.