Jpp
15.0.5
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 < JFileScanner_t > | value_type |
typedef std::vector < value_type >::const_iterator | const_iterator |
typedef std::vector < value_type >::iterator | iterator |
typedef std::vector < value_type > ::const_reverse_iterator | const_reverse_iterator |
typedef std::vector < value_type > ::reverse_iterator | reverse_iterator |
typedef std::vector < value_type >::reference | reference |
typedef std::vector < value_type > ::const_reference | const_reference |
Public Member Functions | |
JEvtWeightFileScannerSet () | |
Default constructor. More... | |
JEvtWeightFileScannerSet (const JMultipleFileScanner_t &input) | |
Constructor. More... | |
size_t | put (const JMultipleFileScanner_t &input) |
Put file. 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 JEvtWeightFileScanner < JFileScanner_t > & | find (const JHead &head) const |
Find file scanner compatible with a given header. More... | |
size_t | setEvtWeightFactor (const int type, const JEvtWeightFactor &factor) |
Set event-weighting factor for all MC-files corresponding to a given PDG code. More... | |
size_t | setEvtWeightFactor (const std::set< int > &types, const JEvtWeightFactor &factor) |
Set event-weight factor of all MC-files corresponding to a given set of PDG codes. More... | |
size_t | setEvtWeightFactor (const JEvtWeightFactorMultiParticle &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 &function) |
Set flux function for all MC-files corresponding to a given PDG code. More... | |
size_t | setFlux (const std::set< int > &types, const JFlux &function) |
Set flux function of all MC-files corresponding to a given set of PDG codes. More... | |
size_t | setFlux (const JFluxMultiParticle &multiParticleFlux) |
Set flux function of all MC-files corresponding to a given multi-particle flux. 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.
Definition at line 51 of file JEvtWeightFileScannerSet.hh.
typedef JEvtWeightFileScanner<JFileScanner_t> JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::value_type |
Definition at line 54 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<value_type>::const_iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_iterator |
Definition at line 56 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<value_type>::iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::iterator |
Definition at line 57 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<value_type>::const_reverse_iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_reverse_iterator |
Definition at line 58 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<value_type>::reverse_iterator JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::reverse_iterator |
Definition at line 59 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<value_type>::reference JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::reference |
Definition at line 61 of file JEvtWeightFileScannerSet.hh.
typedef std::vector<value_type>::const_reference JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_reference |
Definition at line 62 of file JEvtWeightFileScannerSet.hh.
|
inline |
|
inline |
Constructor.
input | file list |
Definition at line 77 of file JEvtWeightFileScannerSet.hh.
|
inline |
Put file.
input | file list |
Definition at line 89 of file JEvtWeightFileScannerSet.hh.
|
inline |
Put file.
input | file name |
Definition at line 107 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 131 of file JEvtWeightFileScannerSet.hh.
|
inline |
Find file scanner compatible with a given header.
head | header |
Definition at line 157 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weighting factor for all MC-files corresponding to a given PDG code.
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 179 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weight factor of all MC-files corresponding to a given set of PDG codes.
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 205 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set event-weight factor of all MC-files corresponding to a given multi-particle flux.
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 230 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 |
function | flux function |
Definition at line 255 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 |
function | flux function |
Definition at line 272 of file JEvtWeightFileScannerSet.hh.
|
inline |
Set flux function of all MC-files corresponding to a given multi-particle flux.
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 as primaries.
multiParticleFlux | multi-particle flux object |
Definition at line 288 of file JEvtWeightFileScannerSet.hh.
JComparator_t JSUPPORT::JEvtWeightFileScannerSet< JFileScanner_t, JComparator_t >::compare |
Function object for comparison of headers.
Definition at line 297 of file JEvtWeightFileScannerSet.hh.