|
BmnRoot
|
#include <EventCatalogue.h>
Public Member Functions | |
| EventCatalogue () | |
| virtual | ~EventCatalogue () |
| vector< unique_ptr< EventInfo > > | GetEventList (vector< unique_ptr< EventCondition > > event_conditions) |
| unique_ptr< EventInfo > | GetEventInfo (string storage_name, string file_path, int event_number) |
| int | AddEventInfo (string storage_name, string file_path, int event_number, EventInfo event_metadata) |
| int | AddEventInfo (string json_file_path) |
| int | UpdateEventInfo (string storage_name, string file_path, int event_number, EventInfo event_metadata) |
| int | DeleteEventInfo (string storage_name, string file_path, int event_number) |
| int | CheckEventInfo (string storage_name, string file_path, int event_number) |
| int | PrintEventInfo (string storage_name, string file_path, int event_number) |
| int | AddStorageInfo (string storage_name) |
| int | AddSoftwareInfo (string software_version) |
| vector< unique_ptr< EventInfo > > | EventCatalogueRequest (string rest_api_request) |
| int | EventCatalogueChecks (int &file_not_found, vector< unique_ptr< EventInfo > > &event_list) |
| int | EventCatalogueStats (int &record_count) |
| void | SetVerbose (int verbose_level=2) |
| EventCatalogue () | |
| virtual | ~EventCatalogue () |
| vector< unique_ptr< EventInfo > > | GetEventList (vector< unique_ptr< EventCondition > > event_conditions) |
| unique_ptr< EventInfo > | GetEventInfo (string storage_name, string file_path, int event_number) |
| int | AddEventInfo (string storage_name, string file_path, int event_number, EventInfo event_metadata) |
| int | AddEventInfo (string json_file_path) |
| int | UpdateEventInfo (string storage_name, string file_path, int event_number, EventInfo event_metadata) |
| int | DeleteEventInfo (string storage_name, string file_path, int event_number) |
| int | CheckEventInfo (string storage_name, string file_path, int event_number) |
| int | PrintEventInfo (string storage_name, string file_path, int event_number) |
| int | AddStorageInfo (string storage_name) |
| int | AddSoftwareInfo (string software_version) |
| vector< unique_ptr< EventInfo > > | EventCatalogueRequest (string rest_api_request) |
| int | EventCatalogueChecks (int &file_not_found, vector< unique_ptr< EventInfo > > &event_list) |
| int | EventCatalogueStats (int &record_count) |
| void | SetVerbose (int verbose_level=2) |
Main Interface Class to work with the Event Catalogue of the experiment Throws runtime_exception if a critical error occurrs while the constructor Error Codes: -1 - sending command via CURL failed, -401 - unauthorized request, -403 - token invalid or expired, -404 - data not found, -409 - incorrect database request (e.g. violating constraints), -422 - incorrect input request, -500 - internal server error, -503 - service unavaialble, -504 - gateway timeout
Definition at line 98 of file EventCatalogue.h.
| EventCatalogue::EventCatalogue | ( | ) |
Definition at line 70 of file EventCatalogue.cxx.
References EVENT_API_HOST, EVENT_API_NAME, EVENT_API_PASSWORD, EVENT_API_USERNAME, and EventInfo::Version.
|
virtual |
Definition at line 88 of file EventCatalogue.cxx.
| EventCatalogue::EventCatalogue | ( | ) |
|
virtual |
| int EventCatalogue::AddEventInfo | ( | string | json_file_path | ) |
Function to add metadata of events to the Event Catalogue using input JSON file path
| [in] | json_file_path | path of the JSON file containing a set of event metadata to be stored |
Definition at line 170 of file EventCatalogue.cxx.
| int EventCatalogue::AddEventInfo | ( | string | json_file_path | ) |
Function to add metadata of events to the Event Catalogue using input JSON file path
| [in] | json_file_path | path of the JSON file containing a set of event metadata to be stored |
| int EventCatalogue::AddEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number, | ||
| EventInfo | event_metadata | ||
| ) |
Function to add metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
| [in] | event_metadata | 'EventInfo' object containing event metadata for the event |
Function to add metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
| [in] | event_metadata | 'EventInfo' object containing event metadata for the event |
Definition at line 132 of file EventCatalogue.cxx.
| int EventCatalogue::AddEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number, | ||
| EventInfo | event_metadata | ||
| ) |
Function to add metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
| [in] | event_metadata | 'EventInfo' object containing event metadata for the event |
| int EventCatalogue::AddSoftwareInfo | ( | string | software_version | ) |
Function to add software version to the dictionary used by the Event Catalogue
| [in] | software_version | Version of the software, which was used to obtain processed events |
Definition at line 273 of file EventCatalogue.cxx.
| int EventCatalogue::AddSoftwareInfo | ( | string | software_version | ) |
Function to add software version to the dictionary used by the Event Catalogue
| [in] | software_version | Version of the software, which was used to obtain processed events |
| int EventCatalogue::AddStorageInfo | ( | string | storage_name | ) |
Function to add storage to the dictionary used by the Event Catalogue
| [in] | storage_name | Name of the storage be added to the dictionary |
Definition at line 252 of file EventCatalogue.cxx.
| int EventCatalogue::AddStorageInfo | ( | string | storage_name | ) |
Function to add storage to the dictionary used by the Event Catalogue
| [in] | storage_name | Name of the storage be added to the dictionary |
| int EventCatalogue::CheckEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number | ||
| ) |
Function to check metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
Function to check metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
Definition at line 225 of file EventCatalogue.cxx.
| int EventCatalogue::CheckEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number | ||
| ) |
Function to check metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
| int EventCatalogue::DeleteEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number | ||
| ) |
Function to delete metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
Function to delete metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
Definition at line 210 of file EventCatalogue.cxx.
| int EventCatalogue::DeleteEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number | ||
| ) |
Function to delete metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
| int EventCatalogue::EventCatalogueChecks | ( | int & | file_not_found, |
| vector< unique_ptr< EventInfo > > & | event_list | ||
| ) |
Function to perform a set of specific checks in the Event Catalogue
| [out] | file_not_found | Number of not found files for existing metadata in the Catalogue |
| [out] | event_list | List of not found files for existing metadata in the Catalogue |
Function to perform a set of specific checks in the Event Catalogue
| [out] | file_not_found | Number of not found files for existing metadata in the Catalogue |
| [out] | event_list | List of not found files for existing metadata in the Catalogue |
Definition at line 310 of file EventCatalogue.cxx.
| int EventCatalogue::EventCatalogueChecks | ( | int & | file_not_found, |
| vector< unique_ptr< EventInfo > > & | event_list | ||
| ) |
Function to perform a set of specific checks in the Event Catalogue
| [out] | file_not_found | Number of not found files for existing metadata in the Catalogue |
| [out] | event_list | List of not found files for existing metadata in the Catalogue |
| vector< unique_ptr< EventInfo > > EventCatalogue::EventCatalogueRequest | ( | string | rest_api_request | ) |
Function for searching for event metadata in the Event Catalogue using REST API request as an HTTP(s) string
| [in] | rest_api_request | String HTTP command representing a request using REST API format |
Definition at line 296 of file EventCatalogue.cxx.
| vector< unique_ptr< EventInfo > > EventCatalogue::EventCatalogueRequest | ( | string | rest_api_request | ) |
Function for searching for event metadata in the Event Catalogue using REST API request as an HTTP(s) string
| [in] | rest_api_request | String HTTP command representing a request using REST API format |
| int EventCatalogue::EventCatalogueStats | ( | int & | record_count | ) |
Function to collect summary statistics on the Event Catalogue
| [out] | record_count | Number of records in the Event Catalogue |
Function to collect summary statistics on the Event Catalogue
| [out] | record_count | Number of records in the Event Catalogue |
Definition at line 322 of file EventCatalogue.cxx.
| int EventCatalogue::EventCatalogueStats | ( | int & | record_count | ) |
Function to collect summary statistics on the Event Catalogue
| [out] | record_count | Number of records in the Event Catalogue |
| unique_ptr< EventInfo > EventCatalogue::GetEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number | ||
| ) |
Function tp get metadata of the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
Definition at line 115 of file EventCatalogue.cxx.
| unique_ptr< EventInfo > EventCatalogue::GetEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number | ||
| ) |
Function tp get metadata of the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
| vector< unique_ptr< EventInfo > > EventCatalogue::GetEventList | ( | vector< unique_ptr< EventCondition > > | event_conditions | ) |
Function for searching for event metadata in the Event Catalogue using specified conditions
| [in] | event_conditions | A set of conditions to specify criteria for event metadata search |
Definition at line 100 of file EventCatalogue.cxx.
| vector< unique_ptr< EventInfo > > EventCatalogue::GetEventList | ( | vector< unique_ptr< EventCondition > > | event_conditions | ) |
Function for searching for event metadata in the Event Catalogue using specified conditions
| [in] | event_conditions | A set of conditions to specify criteria for event metadata search |
| int EventCatalogue::PrintEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number | ||
| ) |
Function to print metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
Function to print metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
Definition at line 240 of file EventCatalogue.cxx.
| int EventCatalogue::PrintEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number | ||
| ) |
Function to print metadata for the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
|
inline |
Setting Verbose level: 0 - only errors, 1 - normal output, 2 - detailed output, 2- all with debug info
| [in] | verbose_level | Verbose level for output information |
Definition at line 216 of file EventCatalogue.h.
|
inline |
Setting Verbose level: 0 - only errors, 1 - normal output, 2 - detailed output, 2- all with debug info
| [in] | verbose_level | Verbose level for output information |
Definition at line 216 of file EventCatalogue.h.
| int EventCatalogue::UpdateEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number, | ||
| EventInfo | event_metadata | ||
| ) |
Function to update metadata of the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
| [in] | event_metadata | 'EventInfo' object containing event metadata for the event |
Function to update metadata of the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
| [in] | event_metadata | 'EventInfo' object containing event metadata for the event |
Definition at line 195 of file EventCatalogue.cxx.
| int EventCatalogue::UpdateEventInfo | ( | string | storage_name, |
| string | file_path, | ||
| int | event_number, | ||
| EventInfo | event_metadata | ||
| ) |
Function to update metadata of the event stored at the given location
| [in] | storage_name | Storage, where the file with the event is located |
| [in] | file_path | Path of the file containing the event |
| [in] | event_number | Number of the event in the file |
| [in] | event_metadata | 'EventInfo' object containing event metadata for the event |