PYTHIA  8.313
Public Member Functions | Static Public Member Functions | List of all members
Pythia8Yoda Class Reference

Public Member Functions

 Pythia8Yoda (const string &anaNameIn="/PYTHIA8/", const string &outputIn="pythia")
 
 ~Pythia8Yoda ()
 
void write ()
 Write histograms.
 
template<typename T , typename... Args>
shared_ptr< T > book (Args &&...args)
 Book any YODA object and return a shared ptr.
 
Histo1DPtr bookHisto1D (int nBins, double xMin, double xMax, const string &title)
 
Histo2DPtr bookHisto2D (int nBinsX, double xMin, double xMax, int nBinsY, double yMin, double yMax, const std::string &title)
 Book a 2D histogram.
 
Histo3DPtr bookHisto3D (int nBinsX, double xMin, double xMax, int nBinsY, double yMin, double yMax, int nBinsZ, double zMin, double zMax, const std::string &title)
 Book a 3D histogram.
 
Profile1DPtr bookProfile1D (int nBins, double xMin, double xMax, const std::string &title)
 Book a 1D profile.
 
Profile2DPtr bookProfile2D (int nBinsX, double xMin, double xMax, int nBinsY, double yMin, double yMax, const std::string &title)
 Book a 2D profile.
 

Static Public Member Functions

template<typename T >
static T read (const string &fName, const string &objPath)
 

Constructor & Destructor Documentation

Pythia8Yoda ( const string &  anaNameIn = "/PYTHIA8/",
const string &  outputIn = "pythia" 
)
inline

The constructor needs a prefix name, which will be put on the histogram path, as well as an output file name.

~Pythia8Yoda ( )
inline

The destructor will write the histogram file if this has not already been done.

Member Function Documentation

Histo1DPtr bookHisto1D ( int  nBins,
double  xMin,
double  xMax,
const string &  title 
)
inline

Write the most common use cases to give better compiler warnings and easier use.

static T read ( const string &  fName,
const string &  objPath 
)
inlinestatic

Read and return a named YODA object from a file. Input arguments filename.yoda and full object path.

Read the file content.

Find the object and convert if possible.

Warning if object not found/converted.

Clean up


The documentation for this class was generated from the following file: