Metadata information about a DQM file.
More...
#include <DQMFileMetaData.h>
|
| DQMFileMetaData () |
| Constructor.
|
|
unsigned int | getNEvents () const |
| Number of events getter.
|
|
int | getExperiment () const |
| experiment number getter.
|
|
int | getRun () const |
| run number getter.
|
|
const std::string & | getRunDate () const |
| Run date getter (UTC)
|
|
const std::string & | getRelease () const |
| Software release version getter.
|
|
const std::string & | getProcessingID () const |
| Processing ID getter.
|
|
const std::string & | getRunType () const |
| Run type getter.
|
|
bool | isMC () const |
| Is it generated data?.
|
|
const std::string & | getDatabaseGlobalTag () const |
| Get the database global tag used when creating this file.
|
|
void | setNEvents (unsigned int nEvents) |
| Number of events setter.
|
|
void | setExperimentRun (int experiment, int run) |
| Set experiment and run.
|
|
void | setRelease (const std::string &release) |
| set release
|
|
void | setRunDate (const std::string &date) |
| set run date
|
|
void | setProcessingID (const std::string &procID) |
| set processing ID
|
|
void | setRunType (const std::string &rtype) |
| set run type
|
|
void | setDatabaseGlobalTag (const std::string &globalTag) |
| Set the database global tag used when creating this file.
|
|
virtual void | Print (Option_t *option="") const override |
| Print the content of the meta data object.
|
|
|
void | declareMCData () |
| Declare that this is not generated, but real data.
|
|
| ClassDefOverride (DQMFileMetaData, 1) |
| Metadata information about a file.
|
|
|
unsigned int | m_nEvents |
| Number of events.
|
|
int | m_experiment |
| experiment number.
|
|
int | m_run |
| run number.
|
|
std::string | m_date |
| run date and time (UTC).
|
|
std::string | m_release |
| Software release version.
|
|
std::string | m_procID |
| processing ID
|
|
std::string | m_rtype |
| run type (physics, cosmics, etc.)
|
|
bool | m_isMC |
| Is it generated or real data?.
|
|
std::string | m_databaseGlobalTag |
| Global tag in the database used for production of this file.
|
|
Metadata information about a DQM file.
Definition at line 27 of file DQMFileMetaData.h.
◆ DQMFileMetaData()
◆ declareMCData()
Declare that this is not generated, but real data.
Definition at line 148 of file DQMFileMetaData.h.
◆ getDatabaseGlobalTag()
const std::string & getDatabaseGlobalTag |
( |
| ) |
const |
|
inline |
Get the database global tag used when creating this file.
If more then one global tag was used by multiple conditions database instances all are concatenated using ',' as separation. If no conditions database was used an empty string is returned
Definition at line 66 of file DQMFileMetaData.h.
◆ getExperiment()
int getExperiment |
( |
| ) |
const |
|
inline |
◆ getNEvents()
unsigned int getNEvents |
( |
| ) |
const |
|
inline |
◆ getProcessingID()
const std::string & getProcessingID |
( |
| ) |
const |
|
inline |
◆ getRelease()
const std::string & getRelease |
( |
| ) |
const |
|
inline |
◆ getRun()
◆ getRunDate()
const std::string & getRunDate |
( |
| ) |
const |
|
inline |
◆ getRunType()
const std::string & getRunType |
( |
| ) |
const |
|
inline |
◆ isMC()
◆ Print()
void Print |
( |
Option_t * |
option = "" | ) |
const |
|
overridevirtual |
Print the content of the meta data object.
- Parameters
-
option | Use "all" to print everything, except steering file. Use "steering" for printing (only) steering file. "json" for machine-readable output |
Definition at line 29 of file DQMFileMetaData.cc.
30{
31
32 const bool all = (option && option == std::string("all"));
36 printer.put(
"Run",
m_run);
37
38 if (all) {
39 printer.put(
"run type",
m_rtype);
40 printer.put(
"run date",
m_date);
43 printer.put(
"isMC",
m_isMC);
45 }
46 std::cout << "=== DQMFileMetaData ===\n";
47 std::cout << printer.string();
48 std::cout << "=======================\n";
49}
create human-readable or JSON output for key value pairs.
◆ setDatabaseGlobalTag()
void setDatabaseGlobalTag |
( |
const std::string & |
globalTag | ) |
|
|
inline |
Set the database global tag used when creating this file.
If more then one global tag was used by multiple conditions database instances all should be concatenated using ',' as separation. If no conditions database was used an empty string should be set.
Definition at line 118 of file DQMFileMetaData.h.
◆ setExperimentRun()
void setExperimentRun |
( |
int |
experiment, |
|
|
int |
run |
|
) |
| |
|
inline |
Set experiment and run.
- Parameters
-
experiment | experiment number. |
run | run number. |
Definition at line 79 of file DQMFileMetaData.h.
◆ setNEvents()
void setNEvents |
( |
unsigned int |
nEvents | ) |
|
|
inline |
Number of events setter.
- Parameters
-
nEvents | The number of events. |
Definition at line 72 of file DQMFileMetaData.h.
◆ setProcessingID()
void setProcessingID |
( |
const std::string & |
procID | ) |
|
|
inline |
set processing ID
- Parameters
-
procID | processing ID (online,proc9,proc10,etc.) |
Definition at line 100 of file DQMFileMetaData.h.
◆ setRelease()
void setRelease |
( |
const std::string & |
release | ) |
|
|
inline |
◆ setRunDate()
void setRunDate |
( |
const std::string & |
date | ) |
|
|
inline |
◆ setRunType()
void setRunType |
( |
const std::string & |
rtype | ) |
|
|
inline |
set run type
- Parameters
-
rtype | run type (physics,cosmic,local,null) |
Definition at line 108 of file DQMFileMetaData.h.
◆ m_databaseGlobalTag
std::string m_databaseGlobalTag |
|
private |
Global tag in the database used for production of this file.
Definition at line 144 of file DQMFileMetaData.h.
◆ m_date
◆ m_experiment
◆ m_isMC
◆ m_nEvents
◆ m_procID
◆ m_release
◆ m_rtype
◆ m_run
The documentation for this class was generated from the following files: