Jpp
18.0.0-rc.1
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... | |
template<class JEvtWeightFactor_t = JEvtWeightFactor> | |
size_t | setEvtWeightFactor (const int type, const JEvtWeightFactor_t &factor) |
Set event-weighting factor for all MC-files corresponding to a given PDG code. More... | |
template<class JEvtWeightFactor_t = JEvtWeightFactor> | |
size_t | setEvtWeightFactor (const std::set< int > &types, const JEvtWeightFactor_t &factor) |
Set event-weight factor of all MC-files corresponding to a given set of PDG codes. More... | |
template<class JEvtWeightFactor_t = JEvtWeightFactor> | |
size_t | setEvtWeightFactor (const JEvtWeightFactorMultiParticle< JEvtWeightFactor_t > &multiParticleFactor) |
Set event-weight factor of all MC-files corresponding to a given multi-particle flux. More... | |
size_t | setFlux (const int type, const JFlux &flux) |
Set flux function for all MC-files corresponding to a given PDG code. More... | |
size_t | setFlux (const std::set< int > &types, const JFlux &flux) |
Set flux function of all MC-files corresponding to a given set of PDG codes. More... | |
size_t | setFlux (const JEvtWeightFactorMultiParticle< JFlux > &multiParticleFlux) |
Set flux function of all MC-files corresponding to a given multi-particle flux interface. 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 must be derived from JMultipleFileScanner<Evt>.
Definition at line 51 of file JEvtWeightFileScannerSet.hh.
typedef JEvtWeightFileScannerSet<JFileScanner_t, JComparator_t> JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::filescannerset_type |
Definition at line 54 of file JEvtWeightFileScannerSet.hh.
typedef JEvtWeightFileScanner<JFileScanner_t> JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::filescanner_type |
Definition at line 55 of file JEvtWeightFileScannerSet.hh.
typedef filescanner_type::input_type JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::input_type |
Definition at line 57 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::value_type JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::value_type |
Definition at line 59 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::reference JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::reference |
Definition at line 60 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::const_reference JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_reference |
Definition at line 61 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::const_iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_iterator |
Definition at line 63 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::iterator |
Definition at line 64 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::const_reverse_iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_reverse_iterator |
Definition at line 65 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<filescanner_type>::reverse_iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::reverse_iterator |
Definition at line 66 of file JEvtWeightFileScannerSet.hh.
|
inline |
|
inline |
Constructor.
input | input files |
Definition at line 82 of file JEvtWeightFileScannerSet.hh.
|
inline |
Put files.
input | input files |
Definition at line 94 of file JEvtWeightFileScannerSet.hh.
|
inline |
Put file.
input | input file |
Definition at line 112 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 136 of file JEvtWeightFileScannerSet.hh.
|
inline |
Find file scanner compatible with a given header.
head | header |
Definition at line 162 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weighting factor for all MC-files corresponding to a given PDG code.
The template argument corresponds to the desired class of event-weight factor. This class must contain the method getFactor(const Evt&)
.
Note that the given event-weighting factor will only be assigned to those files
whose header exclusively lists the given PDG code as primary.
type | PDG code |
factor | event-weight factor |
Definition at line 188 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weight factor of all MC-files corresponding to a given set of PDG codes.
The template argument corresponds to the desired class of event-weight factor. This class must contain the method getFactor(const Evt&)
.
Note that the given event-weighting factor will only be assigned to those files
whose header lists < b>all< /b> of the specified PDG codes as primaries.
types | set of PDG codes |
factor | event-weight factor |
Definition at line 218 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weight factor of all MC-files corresponding to a given multi-particle flux.
The template argument corresponds to the desired class of event-weight factor. This class must contain the method getFactor(const Evt&)
.
Note that the given event-weighting factors will only be assigned to those files
whose header lists < b>all< /b> of the PDG codes associated with the multi-particle event-weighting factor object as primaries.
multiParticleFactor | multi-particle event-weight factor |
Definition at line 247 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set flux function for all MC-files corresponding to a given PDG code.
Note that only the given flux function will only be assigned to those files
whose header exclusively lists the given PDG code as primary.
type | PDG code |
flux | flux function |
Definition at line 272 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set flux function of all MC-files corresponding to a given set of PDG codes.
Note that the given flux function will only be assigned to those files
whose header lists < b>all< /b> of the specified PDG codes as primaries.
types | set of PDG codes |
flux | flux function |
Definition at line 289 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set flux function of all MC-files corresponding to a given multi-particle flux interface.
Note that the given flux functions will only be assigned to those files
whose header lists < b>all< /b> of the PDG codes associated with the multi-particle flux interface as primaries.
multiParticleFlux | multi-particle flux object |
Definition at line 305 of file JEvtWeightFileScannerSet.hh.
JComparator_t JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::compare |
Function object for comparison of headers.
Definition at line 314 of file JEvtWeightFileScannerSet.hh.