|
HepMC3 event record library
|
Runs multiple validation tools.
Definition at line 23 of file ValidationControl.h.
#include <ValidationControl.h>
Collaboration diagram for ValidationControl:Public Member Functions | |
| ValidationControl () | |
| Constructor. More... | |
| ~ValidationControl () | |
| Destructor. More... | |
| void | read_file (const std::string &filename) |
| Read file. More... | |
| bool | new_event () |
| New event. More... | |
| void | initialize () |
| Init function. More... | |
| void | process (GenEvent &hepmc) |
| Process event. More... | |
| void | finalize () |
| Finalize. More... | |
| const std::vector< ValidationTool * > & | toolchain () |
| Toolchain. More... | |
| int | event_limit () |
| Event limit. More... | |
| void | set_event_limit (int events) |
| Set event limit. More... | |
| void | print_events (int events) |
| N events to print. More... | |
| void | check_momentum_for_events (int events) |
| N events to check momentum. More... | |
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. More... | |
| int | m_events |
| events More... | |
| int | m_events_print_step |
| events print step More... | |
| int | m_momentum_check_events |
| mom check events More... | |
| double | m_momentum_check_threshold |
| mom check threshold More... | |
| int | m_print_events |
| print events More... | |
| int | m_event_counter |
| counter of events More... | |
| int | m_status |
| status More... | |
| Timer | m_timer |
| Times. More... | |
| bool | m_has_input_source |
| Input source flag. More... | |
|
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(), 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.