Mēnsūra
|
Aggregates path to a file, cross section, number of events in the parent dataset, and mean generator-level weight. More...
#include <Dataset.hpp>
Public Member Functions | |
File () noexcept | |
Default constructor. | |
File (std::string const &name) noexcept | |
Constructor from file name only (to be used for real data) More... | |
File (std::string const &name, double xSec, unsigned long nEvents, double meanWeight=1.) noexcept | |
Simple initializing constructor. | |
std::string | GetBaseName () const |
Returns file basename with stripped extension. | |
std::string | GetDirName () const |
Returns name of directory containing the file. | |
double | GetWeight () const |
Computes event weight to obtain correct normalization in simulation. More... | |
Public Attributes | |
std::string | name |
Fully-qualified file name. | |
double | xSec |
Cross section in pb. | |
unsigned long | nEvents |
Number of events in the parent dataset. | |
double | meanWeight |
Mean generator-leve weight. | |
Aggregates path to a file, cross section, number of events in the parent dataset, and mean generator-level weight.
|
explicitnoexcept |
Constructor from file name only (to be used for real data)
This constructor is made explicit in order to avoid ambiguity in Dataset::AddFile.
double Dataset::File::GetWeight | ( | ) | const |
Computes event weight to obtain correct normalization in simulation.
The weight is computed as xSec / (meanWeight * nEvents) and corresponds to normalization of simulation to an integrated luminosity of 1/pb. The result is meaningless in case of experimental data.