HepMC3 event record library
Public Member Functions | Private Types | Private Attributes
ValidationControl Class Reference

Runs multiple validation tools. More...

#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...
 

Detailed Description

Runs multiple validation tools.

Definition at line 23 of file ValidationControl.h.

Member Enumeration Documentation

enum PARSING_STATUS
private

parsing stutus

Definition at line 81 of file ValidationControl.h.

Constructor & Destructor Documentation

Constructor.

Definition at line 29 of file ValidationControl.cc.

Destructor.

Definition at line 40 of file ValidationControl.cc.

References m_toolchain.

Member Function Documentation

void check_momentum_for_events ( int  events)
inline

N events to check momentum.

Definition at line 61 of file ValidationControl.h.

References m_momentum_check_events.

int event_limit ( )
inline

Event limit.

Definition at line 55 of file ValidationControl.h.

References m_events.

void finalize ( )

Finalize.

Definition at line 309 of file ValidationControl.cc.

References m_toolchain.

void initialize ( )

Init function.

Definition at line 238 of file ValidationControl.cc.

References m_toolchain.

bool new_event ( )
void print_events ( int  events)
inline

N events to print.

Definition at line 59 of file ValidationControl.h.

References m_print_events.

void process ( GenEvent hepmc)
void read_file ( const std::string &  filename)
void set_event_limit ( int  events)
inline

Set event limit.

Definition at line 57 of file ValidationControl.h.

References m_events.

const std::vector<ValidationTool*>& toolchain ( )
inline

Toolchain.

Definition at line 53 of file ValidationControl.h.

References m_toolchain.

Field Documentation

int m_event_counter
private

counter of events

Definition at line 74 of file ValidationControl.h.

int m_events
private

events

Definition at line 69 of file ValidationControl.h.

int m_events_print_step
private

events print step

Definition at line 70 of file ValidationControl.h.

bool m_has_input_source
private

Input source flag.

Definition at line 78 of file ValidationControl.h.

int m_momentum_check_events
private

mom check events

Definition at line 71 of file ValidationControl.h.

double m_momentum_check_threshold
private

mom check threshold

Definition at line 72 of file ValidationControl.h.

int m_print_events
private

print events

Definition at line 73 of file ValidationControl.h.

int m_status
private

status

Definition at line 75 of file ValidationControl.h.

Timer m_timer
private

Times.

Definition at line 76 of file ValidationControl.h.

std::vector<ValidationTool*> m_toolchain
private

Toolchain.

Definition at line 67 of file ValidationControl.h.


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