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

Detailed Description

Runs multiple validation tools.

Definition at line 23 of file ValidationControl.h.

#include <ValidationControl.h>

+ Collaboration diagram for ValidationControl:

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.
 

Member Enumeration Documentation

◆ PARSING_STATUS

enum PARSING_STATUS
private

parsing stutus

Definition at line 81 of file ValidationControl.h.

Constructor & Destructor Documentation

◆ ValidationControl()

Constructor.

Definition at line 29 of file ValidationControl.cc.

◆ ~ValidationControl()

Destructor.

Definition at line 40 of file ValidationControl.cc.

References m_toolchain.

Member Function Documentation

◆ check_momentum_for_events()

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.

◆ event_limit()

int event_limit ( )
inline

Event limit.

Definition at line 55 of file ValidationControl.h.

References m_events.

◆ finalize()

void finalize ( )

Finalize.

Definition at line 309 of file ValidationControl.cc.

References m_toolchain.

◆ initialize()

void initialize ( )

Init function.

Definition at line 238 of file ValidationControl.cc.

References m_toolchain.

◆ new_event()

bool new_event ( )

◆ print_events()

void print_events ( int  events)
inline

N events to print.

Definition at line 59 of file ValidationControl.h.

References m_print_events.

◆ process()

void process ( GenEvent hepmc)

◆ read_file()

void read_file ( const std::string &  filename)

◆ set_event_limit()

void set_event_limit ( int  events)
inline

Set event limit.

Definition at line 57 of file ValidationControl.h.

References m_events.

◆ toolchain()

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

Toolchain.

Definition at line 53 of file ValidationControl.h.

References m_toolchain.

Field Documentation

◆ m_event_counter

int m_event_counter
private

counter of events

Definition at line 74 of file ValidationControl.h.

◆ m_events

int m_events
private

events

Definition at line 69 of file ValidationControl.h.

◆ m_events_print_step

int m_events_print_step
private

events print step

Definition at line 70 of file ValidationControl.h.

◆ m_has_input_source

bool m_has_input_source
private

Input source flag.

Definition at line 78 of file ValidationControl.h.

◆ m_momentum_check_events

int m_momentum_check_events
private

mom check events

Definition at line 71 of file ValidationControl.h.

◆ m_momentum_check_threshold

double m_momentum_check_threshold
private

mom check threshold

Definition at line 72 of file ValidationControl.h.

◆ m_print_events

int m_print_events
private

print events

Definition at line 73 of file ValidationControl.h.

◆ m_status

int m_status
private

status

Definition at line 75 of file ValidationControl.h.

◆ m_timer

Timer m_timer
private

Times.

Definition at line 76 of file ValidationControl.h.

◆ m_toolchain

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: