|
Jpp 20.0.0-rc.3
the software that should make you happy
|
Auxiliary class for organising Monte Carlo file scanners associated with event weighters. More...
#include <JEvtWeightFileScannerSet.hh>
Public Types | |
| typedef JEvtWeightFileScanner::input_type | input_type |
Public Member Functions | |
| JEvtWeightFileScannerSet () | |
| Default constructor. | |
| JEvtWeightFileScannerSet (const input_type &input) | |
| Constructor. | |
| size_t | put (const input_type &input) |
| Put files. | |
| bool | put (const std::string &input) |
| Put file. | |
| const_reference | find (const JHead &head) const |
| Find file scanner compatible with a given header. | |
| size_t | setEvtWeightFactor (const JEvtCategoryHelper &category, const JEvtWeightFactorHelper &factor) |
| Set event-weighting factor for all MC-files corresponding to a given PDG code. | |
| size_t | setEvtWeightFactor (const JEvtCategorySet &categories, const JEvtWeightFactorHelper &factor, const bool requireAll=false) |
| Set event-weight factor of all MC-files corresponding to a given set of event categories. | |
| template<class JEvtWeightFactorHelper_t > | |
| size_t | setEvtWeightFactor (const JEvtCategoryMap< JEvtWeightFactorHelper_t > &object, const bool requireAll=false) |
| Set event-weight factor of all MC-files according to a given map between event categories and event-weight factors. | |
| size_t | setFlux (const JEvtCategoryHelper &category, const JFluxHelper &flux) |
| Set flux function for all MC-files corresponding to a given event category. | |
| size_t | setFlux (const JEvtCategorySet &categories, const JFluxHelper &flux, const bool requireAll=false) |
| Set flux function of all MC-files corresponding to a given set of event categories. | |
| size_t | setFlux (const JEvtCategoryMap< JFluxHelper > &object, const bool requireAll=false) |
| Set event-weight factor of all MC-files according to a given map between event categories and event-weight factors. | |
Public Attributes | |
| JComparator_t | compare |
| Function object for comparison of headers. | |
Auxiliary class for organising Monte Carlo file scanners associated with event weighters.
Definition at line 56 of file JEvtWeightFileScannerSet.hh.
| JEvtWeightFileScanner::input_type JSUPPORT::JEvtWeightFileScannerSet< JComparator_t >::input_type |
Definition at line 59 of file JEvtWeightFileScannerSet.hh.
|
inline |
|
inline |
Constructor.
| input | input files |
Definition at line 74 of file JEvtWeightFileScannerSet.hh.
|
inline |
Put files.
| input | input files |
Definition at line 86 of file JEvtWeightFileScannerSet.hh.
|
inline |
Put file.
| input | input file |
Definition at line 104 of file JEvtWeightFileScannerSet.hh.
|
inline |
Find file scanner compatible with a given header.
| head | header |
Definition at line 128 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weighting factor for all MC-files corresponding to a given PDG code.
| category | event category |
| factor | event-weight factor |
Definition at line 149 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weight factor of all MC-files corresponding to a given set of event categories.
If the boolean requireAll argument is set to true,
the given event-weighting factor will only be assigned to those files
whose header matches < b>all< /b> of the specified event categories.
| categories | set of event categories |
| factor | event-weight factor |
| requireAll | toggle requirement that the file headers match all given event categories |
Definition at line 177 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weight factor of all MC-files according to a given map between event categories and event-weight factors.
The template argument refers either to the class JAANET::JEvtWeightFactorHelper or JAANET::JFluxHelper.
If the boolean requireAll argument is set to true,
the given event-weighting factor will only be assigned to those files
whose header matches < b>all< /b> of the specified event categories.
| object | map between event categories and event-weight factors |
| requireAll | toggle requirement that the file headers match all given event categories |
Definition at line 224 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set flux function for all MC-files corresponding to a given event category.
| category | event category |
| flux | flux function |
Definition at line 263 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set flux function of all MC-files corresponding to a given set of event categories.
If the boolean requireAll argument is set to true, the given flux function will only be assigned to those files
whose header lists < b>all< /b> of the specified PDG codes as primaries.
| categories | set of event categories |
| flux | flux function |
| requireAll | toggle requirement that each file header must contain every given PDG code. |
Definition at line 282 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weight factor of all MC-files according to a given map between event categories and event-weight factors.
If the boolean requireAll argument is set to true, the given flux function will only be assigned to those files
whose header matches < b>all< /b> of the specified event categories.
| object | map between event categories and flux functions |
| requireAll | toggle requirement that the file headers match all given event categories |
Definition at line 301 of file JEvtWeightFileScannerSet.hh.
| JComparator_t JSUPPORT::JEvtWeightFileScannerSet< JComparator_t >::compare |
Function object for comparison of headers.
Definition at line 311 of file JEvtWeightFileScannerSet.hh.