|
Jpp 21.0.0
the software that should make you happy
|
Implementation of reweighting factor for trigger efficiency ratios. More...
#include <JEvtWeightFactorTriggerEfficiencyRatio.hh>
Classes | |
| struct | JEvtWeightFactorTriggerEfficiencyRatioHelper |
| Auxiliary class for I/O of trigger efficiency ratio factor. More... | |
Public Types | |
| enum | JTriggerEfficiencyRatioOption { ENERGY_INITIAL_STATE , ENERGY_NEUTRINO , EVIS , EVIS_LEADING_LEPTON_CONTR , EVIS_HADRONIC_CONTR , NUMBER_OF_OPTIONS } |
| Indices of options for calculating trigger efficiency ratios. More... | |
| typedef JRange< double > | JRange_t |
| typedef JClonable< JClonable_t >::clone_type | clone_type |
Public Member Functions | |
| JEvtWeightFactorTriggerEfficiencyRatio () | |
| Default constructor. | |
| JEvtWeightFactorTriggerEfficiencyRatio (const JRootObjectID &objectID, const JTriggerEfficiencyRatioOption option, const double ratio, const JRange_t &range, const bool logE, const JCylinder3D &fiducialVolume) | |
| Constructor. | |
| JEvtWeightFactorTriggerEfficiencyRatio (const JEvtWeightFactorTriggerEfficiencyRatio &factor) | |
| Copy constructor. | |
| void | configure () |
| Configure trigger efficiency ratio factor. | |
| const TH1 & | getHistogram () const |
| Retrieve trigger efficiency histogram. | |
| JCylinder3D | getFiducialVolume () const |
| Retrieve fiducial volume. | |
| void | setFiducialVolume (const JCylinder3D &fiducialVolume) |
| Set fiducial volume. | |
| bool | is_valid () const override final |
| Check if this trigger efficiency ratio weight factor is valid. | |
| double | interpolate (const double x) const |
| Perform linear inter- or extrapolation of trigger efficiency for given abscissa value. | |
| double | getTriggerEfficiencyRatio (const double x1, const double x2) const |
| Get trigger efficiency ratio based on a scaling of the initial state energy. | |
| double | getTriggerEfficiencyRatio1 (const double E0) const |
| Get trigger efficiency ratio based on a scaling of the initial state energy. | |
| double | getTriggerEfficiencyRatio1 (const Evt &event) const |
| Get trigger efficiency ratio based on a scaling of the initial state energy. | |
| double | getTriggerEfficiencyRatio2 (const double Enu) const |
| Get trigger efficiency ratio based on a scaling of the primary neutrino energy. | |
| double | getTriggerEfficiencyRatio2 (const Evt &event) const |
| Get trigger efficiency ratio based on a scaling of the primary neutrino energy. | |
| double | getTriggerEfficiencyRatio3 (const double Evis) const |
| Get trigger efficiency ratio based on a scaling of the total visible energy. | |
| double | getTriggerEfficiencyRatio3 (const Evt &event) const |
| Get trigger efficiency ratio based on a scaling of the total visible energy. | |
| double | getTriggerEfficiencyRatio4 (const double Evis, const double EvisLL) const |
| Get trigger efficiency ratio based on a scaling of the leading leptonic contribution to the total visible energy. | |
| double | getTriggerEfficiencyRatio4 (const Evt &event) const |
| Get trigger efficiency ratio based on a scaling of the leading leptonic contribution to the total visible energy. | |
| double | getTriggerEfficiencyRatio5 (const double Evis, const double EvisLL) const |
| Get trigger efficiency ratio based on a scaling of the hadronic contribution to the total visible energy. | |
| double | getTriggerEfficiencyRatio5 (const Evt &event) const |
| Get trigger efficiency 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(JEvtWeightFactorTriggerEfficiencyRatio::*) | pFunction(const Evt &) const |
| Type definition of pointer to member function for calculating trigger efficiency ratios. | |
Private Attributes | |
| pFunction | mfp |
| Pointer to member method for calculating trigger efficiency ratios. | |
| std::unique_ptr< TH1 > | pTE |
| Unique pointer to trigger efficiency ratio histogram. | |
| JRootObjectID | hTE |
| Trigger efficiency histogram OID. | |
| int | option |
| Trigger efficiency ratio option. | |
| double | ratio |
| Abscissa ratio. | |
| JRange_t | range |
| Applicable range. | |
| JCylinder3D | fiducialVolume |
| Fiducial volume (for visible energy computation) | |
| bool | logE |
| Toggle logarithmic abscissa. | |
Implementation of reweighting factor for trigger efficiency ratios.
Definition at line 68 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
Definition at line 71 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
private |
Type definition of pointer to member function for calculating trigger efficiency ratios.
Definition at line 537 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inherited |
Definition at line 61 of file JClonable.hh.
Indices of options for calculating trigger efficiency ratios.
The option names correspond to the variable which is used to compute the trigger efficiency ratio.
Definition at line 77 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Default constructor.
Definition at line 90 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Constructor.
| objectID | trigger efficiency histogram OID |
| option | option |
| ratio | abscissa ratio |
| range | applicable (logarithmic) energy range [GeV] |
| logE | toggle logarithmic energies |
| fiducialVolume | fiducial volume |
Definition at line 122 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Copy constructor.
| factor | trigger efficiency ratio factor |
Definition at line 146 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Configure trigger efficiency ratio factor.
Definition at line 167 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Retrieve trigger efficiency histogram.
Definition at line 219 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Retrieve fiducial volume.
Definition at line 234 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Set fiducial volume.
| fiducialVolume | fiducial volume |
Definition at line 245 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inlinefinaloverride |
Check if this trigger efficiency ratio weight factor is valid.
Definition at line 258 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Perform linear inter- or extrapolation of trigger efficiency for given abscissa value.
| x | abscissa value |
< Ensure that only given user-range is used for interpolation
Definition at line 275 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency ratio based on a scaling of the initial state energy.
| x1 | first abscissa value |
| x2 | second abscissa value |
< Minimum logarithmic energy (= 1 MeV)
Definition at line 305 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency ratio based on a scaling of the initial state energy.
| E0 | initial state energy [GeV] |
Definition at line 331 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency ratio based on a scaling of the initial state energy.
| event | event |
Definition at line 343 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency ratio based on a scaling of the primary neutrino energy.
| Enu | primary neutrino energy [GeV] |
Definition at line 357 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency ratio based on a scaling of the primary neutrino energy.
| event | event |
Definition at line 369 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency ratio based on a scaling of the total visible energy.
| Evis | total visible energy [GeV] |
Definition at line 385 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency ratio based on a scaling of the total visible energy.
| event | event |
Definition at line 397 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency 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 415 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency 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 431 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency 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 450 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inline |
Get trigger efficiency 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 466 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inlinefinaloverride |
Get weighting factor for given event.
| evt | event |
Definition at line 481 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inlinefinaloverride |
Get properties of this class.
| eqpars | equation parameters |
Definition at line 492 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inlinefinaloverride |
Get properties of this class.
| eqpars | equation parameters |
Definition at line 503 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
inlinefinaloverride |
Read event-weight factor from input.
| in | input stream |
Definition at line 515 of file JEvtWeightFactorTriggerEfficiencyRatio.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 trigger efficiency ratios.
Definition at line 569 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
private |
Unique pointer to trigger efficiency ratio histogram.
Definition at line 571 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
private |
Trigger efficiency histogram OID.
Definition at line 573 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
private |
Trigger efficiency ratio option.
Definition at line 574 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
private |
Abscissa ratio.
Definition at line 575 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
private |
Applicable range.
Definition at line 576 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
private |
Fiducial volume (for visible energy computation)
Definition at line 577 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.
|
private |
Toggle logarithmic abscissa.
Definition at line 578 of file JEvtWeightFactorTriggerEfficiencyRatio.hh.