HepMC3 event record library
|
Runs multiple validation tools.
Definition at line 23 of file ValidationControl.h.
#include <ValidationControl.h>
Public Member Functions | |
ValidationControl () | |
Constructor. | |
~ValidationControl () | |
Destructor. | |
void | read_file (const std::string &filename) |
Read file. | |
bool | new_event () |
New event. | |
void | initialize () |
Init function. | |
void | process (GenEvent &hepmc) |
Process event. | |
void | finalize () |
Finalize. | |
const std::vector< ValidationTool * > & | toolchain () |
Toolchain. | |
int | event_limit () |
Event limit. | |
void | set_event_limit (int events) |
Set event limit. | |
void | print_events (int events) |
N events to print. | |
void | check_momentum_for_events (int events) |
N events to check momentum. | |
Private Types | |
enum | PARSING_STATUS { PARSING_OK , UNRECOGNIZED_COMMAND , UNRECOGNIZED_OPTION , UNRECOGNIZED_INPUT , UNRECOGNIZED_TOOL , UNAVAILABLE_TOOL , ADDITIONAL_INPUT , CANNOT_OPEN_FILE } |
parsing stutus More... | |
Private Attributes | |
std::vector< ValidationTool * > | m_toolchain |
Toolchain. | |
int | m_events |
events | |
int | m_events_print_step |
events print step | |
int | m_momentum_check_events |
mom check events | |
double | m_momentum_check_threshold |
mom check threshold | |
int | m_print_events |
print events | |
int | m_event_counter |
counter of events | |
int | m_status |
status | |
Timer | m_timer |
Times. | |
bool | m_has_input_source |
Input source flag. | |
|
private |
parsing stutus
Definition at line 81 of file ValidationControl.h.
Constructor.
Definition at line 29 of file ValidationControl.cc.
~ValidationControl | ( | ) |
|
inline |
N events to check momentum.
Definition at line 61 of file ValidationControl.h.
References m_momentum_check_events.
|
inline |
void finalize | ( | ) |
void initialize | ( | ) |
bool new_event | ( | ) |
New event.
Definition at line 196 of file ValidationControl.cc.
References Timer::elapsed_time(), m_event_counter, m_events, m_events_print_step, m_momentum_check_events, m_print_events, m_status, m_timer, Timer::start(), Timer::stop(), and Timer::total_time().
|
inline |
void process | ( | GenEvent & | hepmc | ) |
Process event.
Definition at line 244 of file ValidationControl.cc.
References FourVector::e(), FourVector::is_zero(), FourVector::length(), Print::listing(), m_event_counter, m_momentum_check_events, m_momentum_check_threshold, m_print_events, m_status, m_toolchain, GenEvent::particles(), FourVector::px(), FourVector::py(), FourVector::pz(), Timer::start(), and Timer::stop().
void read_file | ( | const std::string & | filename | ) |
Read file.
Definition at line 45 of file ValidationControl.cc.
References check_momentum_for_events(), m_events, m_has_input_source, m_status, m_toolchain, and print_events().
|
inline |
|
inline |
|
private |
counter of events
Definition at line 74 of file ValidationControl.h.
|
private |
events
Definition at line 69 of file ValidationControl.h.
|
private |
events print step
Definition at line 70 of file ValidationControl.h.
|
private |
Input source flag.
Definition at line 78 of file ValidationControl.h.
|
private |
mom check events
Definition at line 71 of file ValidationControl.h.
|
private |
mom check threshold
Definition at line 72 of file ValidationControl.h.
|
private |
print events
Definition at line 73 of file ValidationControl.h.
|
private |
status
Definition at line 75 of file ValidationControl.h.
|
private |
Times.
Definition at line 76 of file ValidationControl.h.
|
private |
Toolchain.
Definition at line 67 of file ValidationControl.h.