Jpp
19.1.0
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 JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t > | filescannerset_type |
typedef JEvtWeightFileScanner< JFileScanner_t > | filescanner_type |
typedef filescanner_type::input_type | input_type |
typedef std::vector< filescanner_type >::value_type | value_type |
typedef std::vector< filescanner_type >::reference | reference |
typedef std::vector< filescanner_type >::const_reference | const_reference |
typedef std::vector< filescanner_type >::const_iterator | const_iterator |
typedef std::vector< filescanner_type >::iterator | iterator |
typedef std::vector< filescanner_type >::const_reverse_iterator | const_reverse_iterator |
typedef std::vector< filescanner_type >::reverse_iterator | reverse_iterator |
Public Member Functions | |
JEvtWeightFileScannerSet () | |
Default constructor. More... | |
JEvtWeightFileScannerSet (const input_type &input) | |
Constructor. More... | |
size_t | put (const input_type &input) |
Put files. More... | |
bool | put (const std::string &input) |
Put file. More... | |
std::string | getUniqueIdentifier (const_iterator p) const |
Get unique identifier for a file-scanner contained within this set of event-weighter-associated file-scanners. More... | |
const_reference | find (const JHead &head) const |
Find file scanner compatible with a given header. More... | |
size_t | setEvtWeightFactor (const JEvtCategoryHelper &category, const JEvtWeightFactorHelper &factor) |
Set event-weighting factor for all MC-files corresponding to a given PDG code. More... | |
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. More... | |
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. More... | |
size_t | setFlux (const JEvtCategoryHelper &category, const JFluxHelper &flux) |
Set flux function for all MC-files corresponding to a given event category. More... | |
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. More... | |
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. More... | |
Public Attributes | |
JComparator_t | compare |
Function object for comparison of headers. More... | |
Auxiliary class for organising Monte Carlo file scanners associated with event weighters.
Note: The template class JFileScanner_t
must be derived from JMultipleFileScanner<Evt>.
Definition at line 59 of file JEvtWeightFileScannerSet.hh.
typedef JEvtWeightFileScannerSet<JFileScanner_t, JComparator_t> JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::filescannerset_type |
Definition at line 62 of file JEvtWeightFileScannerSet.hh.
typedef JEvtWeightFileScanner<JFileScanner_t> JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::filescanner_type |
Definition at line 63 of file JEvtWeightFileScannerSet.hh.
typedef filescanner_type::input_type JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::input_type |
Definition at line 65 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::value_type JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::value_type |
Definition at line 67 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::reference JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::reference |
Definition at line 68 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::const_reference JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_reference |
Definition at line 69 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::const_iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_iterator |
Definition at line 71 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::iterator |
Definition at line 72 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::const_reverse_iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_reverse_iterator |
Definition at line 73 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::reverse_iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::reverse_iterator |
Definition at line 74 of file JEvtWeightFileScannerSet.hh.
|
inline |
|
inline |
Constructor.
input | input files |
Definition at line 90 of file JEvtWeightFileScannerSet.hh.
|
inline |
Put files.
input | input files |
Definition at line 102 of file JEvtWeightFileScannerSet.hh.
|
inline |
Put file.
input | input file |
Definition at line 120 of file JEvtWeightFileScannerSet.hh.
|
inline |
Get unique identifier for a file-scanner contained within this set of event-weighter-associated file-scanners.
p | iterator to contained file-scanner |
Definition at line 144 of file JEvtWeightFileScannerSet.hh.
|
inline |
Find file scanner compatible with a given header.
head | header |
Definition at line 170 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 191 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 219 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 266 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 305 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 324 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 343 of file JEvtWeightFileScannerSet.hh.
JComparator_t JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::compare |
Function object for comparison of headers.
Definition at line 353 of file JEvtWeightFileScannerSet.hh.