cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches

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

#include <CepGenAddOns/ROOTWrapper/ROOTTreeInfo.h>

+ Collaboration diagram for CepGenRun:

Public Member Functions

 CepGenRun ()
 
void clear ()
 Reinitialise the run tree.
 
void create ()
 Populate the run tree.
 
TTree * tree ()
 Retrieve the ROOT tree.
 
void fill ()
 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}
 Number of events generated in run.
 
unsigned int litigious_events {0}
 Number of litigious events 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

Definition at line 23 of file ROOTTreeInfo.cpp.

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 
)

Definition at line 64 of file ROOTTreeInfo.cpp.

◆ clear()

void clear ( )

Definition at line 37 of file ROOTTreeInfo.cpp.

◆ create()

void create ( )

Definition at line 45 of file ROOTTreeInfo.cpp.

◆ fill()

void fill ( )

Definition at line 58 of file ROOTTreeInfo.cpp.

◆ load() [1/2]

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

Definition at line 31 of file ROOTTreeInfo.cpp.

◆ load() [2/2]

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

Definition at line 25 of file ROOTTreeInfo.cpp.

◆ tree()

TTree * tree ( )

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.