Contains default and user-specified metadata about each run acquired. More...
#include <runinfo.hh>
Classes | |
| class | DialogField |
| utility class to handle querying user for metadata Completely hide this from root! More... | |
Public Types | |
| enum | FILLTIME { RUNSTART, RUNEND } |
| typedef std::set< std::string > | stringset |
| typedef std::vector< std::string > | stringvec |
|
typedef std::map< std::string, std::string > | stringmap |
| typedef std::vector< DialogField > | FieldList |
Public Member Functions | |
| runinfo (long id=-1) | |
| default constructor does nothing | |
| virtual | ~runinfo () |
| virtual destructor to make root happy | |
| void | Init (bool reset=false) |
| Initialize parameters to default values. | |
| void | InitializeParameterList () |
| resets the io keys after a copy operation | |
| void | ResetRunStats () |
| Reset the statistics which can be read from the file. | |
| int | LoadSavedInfo (TMacro *mac) |
| Try to load runinfo from config saved in a TMacro; return 0 if success. | |
| int | FillDataForRun (FILLTIME when=RUNSTART) |
| Prompt user for any missing/incorrect info. | |
| std::string | GetMetadata (const std::string &key) |
| Get metadata. | |
| void | SetMetadata (const std::string &key, const std::string &val) |
| Explicitly set metadata. | |
| template<class T > | |
| void | SetMetadata (const std::string &key, const T &val) |
| convenience function to set metadata using ostream overload | |
Public Attributes | |
| long | runid |
| unique id for the run | |
| time_t | starttime |
| time acquisition started | |
| time_t | endtime |
| time acquisition finished | |
| long | triggers |
| total number of triggers requested | |
| long | events |
| total number of events stored | |
Private Member Functions | |
| ClassDef (runinfo, 1) | |
Private Attributes | |
| stringmap | metadata |
| Arbitrarty per-run info defined by the user. | |
| FieldList | prerun_dialog_fields |
| List of fields to query the user for at run start. | |
| FieldList | postrun_dialog_fields |
| List of fields to query the user for at run end. | |
| bool | force_prerun_dialog |
| Display the prerun dialog even if all fields are already valid. | |
| bool | force_postrun_dialog |
| Display the postrun dialog even if all fields are already valid. | |
| std::map< int, stringmap > | channel_metadata |
| Per-channel metadata. Note this cannot be listed as required. | |
Contains default and user-specified metadata about each run acquired.
Definition at line 30 of file runinfo.hh.
1.6.1