Jpp - the software that should make you happy
|
Auxiliary class for organising Monte Carlo file scanners. More...
#include <JWeightFileScannerSet.hh>
Public Types | |
typedef JWeightFileScanner < 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 |
Public Member Functions | |
JWeightFileScannerSet () | |
Default constructor. More... | |
JWeightFileScannerSet (JMultipleFileScanner_t &input, JLimit &limit=JLimit()) | |
Constructor. More... | |
void | put (JMultipleFileScanner_t &input) |
Put file. More... | |
void | put (const std::string &input) |
Put file. More... | |
const JWeightFileScanner < JFileScanner_t > & | find (const JHead &head) const |
Find file scanner compatible with a given header. 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 JMultiParticleFlux &multiFlux) |
Set flux function of all MC-files corresponding to a given multi-particle flux. More... | |
void | setLimit (const JLimit &limit) |
Set limit. More... | |
Public Attributes | |
JComparator_t | compare |
Function object for comparison of headers. More... | |
Auxiliary class for organising Monte Carlo file scanners.
Definition at line 42 of file JWeightFileScannerSet.hh.
typedef JWeightFileScanner<JFileScanner_t> JSUPPORT::JWeightFileScannerSet< JFileScanner_t, JComparator_t >::value_type |
Definition at line 45 of file JWeightFileScannerSet.hh.
typedef std::vector<value_type>::const_iterator JSUPPORT::JWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_iterator |
Definition at line 47 of file JWeightFileScannerSet.hh.
typedef std::vector<value_type>::iterator JSUPPORT::JWeightFileScannerSet< JFileScanner_t, JComparator_t >::iterator |
Definition at line 48 of file JWeightFileScannerSet.hh.
typedef std::vector<value_type>::const_reverse_iterator JSUPPORT::JWeightFileScannerSet< JFileScanner_t, JComparator_t >::const_reverse_iterator |
Definition at line 49 of file JWeightFileScannerSet.hh.
typedef std::vector<value_type>::reverse_iterator JSUPPORT::JWeightFileScannerSet< JFileScanner_t, JComparator_t >::reverse_iterator |
Definition at line 50 of file JWeightFileScannerSet.hh.
|
inline |
|
inline |
Constructor.
input | file list |
limit | limit |
Definition at line 66 of file JWeightFileScannerSet.hh.
|
inline |
Put file.
input | file list |
Definition at line 79 of file JWeightFileScannerSet.hh.
|
inline |
Put file.
input | file name |
Definition at line 92 of file JWeightFileScannerSet.hh.
|
inline |
Find file scanner compatible with a given header.
head | header |
Definition at line 116 of file JWeightFileScannerSet.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 138 of file JWeightFileScannerSet.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 180 of file JWeightFileScannerSet.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.
multiFlux | multi-particle flux object |
Definition at line 228 of file JWeightFileScannerSet.hh.
|
inline |
Set limit.
limit | limit |
Definition at line 271 of file JWeightFileScannerSet.hh.
JComparator_t JSUPPORT::JWeightFileScannerSet< JFileScanner_t, JComparator_t >::compare |
Function object for comparison of headers.
Definition at line 282 of file JWeightFileScannerSet.hh.