Mēnsūra
Public Member Functions | Public Attributes | List of all members
Dataset::File Struct Reference

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.
 

Detailed Description

Aggregates path to a file, cross section, number of events in the parent dataset, and mean generator-level weight.

Constructor & Destructor Documentation

Dataset::File::File ( std::string const &  name)
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.

Member Function Documentation

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.


The documentation for this struct was generated from the following files: