|
virtual void | init () |
| Initialize the weights.
|
|
virtual void | init (bool) |
|
virtual void | clear () |
| Reset all internal values.
|
|
virtual void | bookVectors (vector< double > weights, vector< string > names) |
|
virtual void | collectWeightValues (vector< double > &outputWeights, double norm=1.) |
| WeightsBase class. More...
|
|
virtual void | collectWeightNames (vector< string > &outputNames) |
| Similar function to return processed weight names.
|
|
string | getWeightsName (int iPos) const |
|
virtual double | getWeightsValue (int iPos) const |
|
int | getWeightsSize () const |
|
void | bookWeight (string name, double defaultValue=1.) |
| Function to create a new, synchronized, pair of weight name and value. More...
|
|
void | setValueByIndex (int iPos, double val) |
| Functions to set values of weights.
|
|
void | setValueByName (string name, double val) |
|
virtual void | reweightValueByIndex (int iPos, double val) |
| Functions to reweight weight values, by index or by name.
|
|
virtual void | reweightValueByName (string name, double val) |
|
int | findIndexOfName (string name) |
|
void | setPtrs (Info *infoPtrIn) |
| Set the pointers.
|
|
This is a base class to store weight information in a way that allows unified access in the structure that contains all event generation weights information (WeightContainer below). The main purpuse of this class is to supply convenience features to make defining new categories of weights easy. All weights should inherit from this base class. The specialized classes may then contain specialized functions, or only act as a glorified book-keeping structure.
void parse |
( |
string |
wvecKey, |
|
|
map< string, map< string, double > > & |
dct |
|
) |
| |
|
protected |
Parse a WVec of variations into a dictionary.
Parse a WVec of variations into a weight group map.
Skip blank lines and remove leading spaces.
Separate line by spaces, and read key/value pairs.