cepgen is hosted by Hepforge, IPPP Durham
CepGen N/A
Central exclusive processes event generator

All useful information about a generation run. More...

#include <include/CepGenRoot/ROOTTreeInfo.h>

Public Member Functions

 CepGenRun ()
 
void clear ()
 Reinitialise the run tree.
 
void create ()
 Populate the run tree.
 
TTree * tree () const
 Retrieve the ROOT tree.
 
void fill () const
 Fill the run tree.
 
void attach (TFile *file, const std::string &run_tree=TREE_NAME)
 Attach the run tree reader to a given tree Attach the run tree reader to a given file.
 
void attach (const std::string &filename, const std::string &run_tree=TREE_NAME)
 

Static Public Member Functions

static CepGenRun load (TFile *, const std::string &run_tree=TREE_NAME)
 
static CepGenRun load (const std::string &, const std::string &run_tree=TREE_NAME)
 

Public Attributes

double sqrt_s {-1.}
 Centre of mass energy for beam particles.
 
double xsect {-1.}
 Process cross-section, in pb.
 
double errxsect {-1.}
 Uncertainty on process cross-section, in pb.
 
unsigned int num_events {0}
 Events multiplicity generated in run.
 
unsigned int litigious_events {0}
 Litigious events multiplicity in run.
 
std::string process_name
 Unique name of the process generated in this run.
 
std::string process_parameters
 Serialised process parameters.
 

Static Public Attributes

static constexpr const char * TREE_NAME = "run"
 Output tree name.
 

Detailed Description

Definition at line 29 of file ROOTTreeInfo.h.

Constructor & Destructor Documentation

◆ CepGenRun()

CepGenRun ( )
explicit

Member Function Documentation

◆ attach() [1/2]

void attach ( const std::string & filename,
const std::string & run_tree = TREE_NAME )

Definition at line 51 of file ROOTTreeInfo.h.

◆ attach() [2/2]

void attach ( TFile * file,
const std::string & run_tree = TREE_NAME )

◆ clear()

void clear ( )

◆ create()

void create ( )

◆ fill()

void fill ( ) const

◆ load() [1/2]

static CepGenRun load ( const std::string & ,
const std::string & run_tree = TREE_NAME )
static

◆ load() [2/2]

static CepGenRun load ( TFile * ,
const std::string & run_tree = TREE_NAME )
static

◆ tree()

TTree * tree ( ) const

Definition at line 47 of file ROOTTreeInfo.h.

Member Data Documentation

◆ errxsect

double errxsect {-1.}

Definition at line 38 of file ROOTTreeInfo.h.

◆ litigious_events

unsigned int litigious_events {0}

Definition at line 40 of file ROOTTreeInfo.h.

◆ num_events

unsigned int num_events {0}

Definition at line 39 of file ROOTTreeInfo.h.

◆ process_name

std::string process_name

Definition at line 41 of file ROOTTreeInfo.h.

◆ process_parameters

std::string process_parameters

Definition at line 42 of file ROOTTreeInfo.h.

◆ sqrt_s

double sqrt_s {-1.}

Definition at line 36 of file ROOTTreeInfo.h.

◆ TREE_NAME

constexpr const char* TREE_NAME = "run"
staticconstexpr

Definition at line 31 of file ROOTTreeInfo.h.

◆ xsect

double xsect {-1.}

Definition at line 37 of file ROOTTreeInfo.h.