Belle II Software development
DQMFileMetaData.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <TObject.h>
12
13#include <iosfwd>
14#include <vector>
15#include <string>
16#include <map>
17
18namespace Belle2 {
27 class DQMFileMetaData : public TObject {
28 public:
32
35 unsigned int getNEvents() const {return m_nEvents;}
36
39 int getExperiment() const {return m_experiment;}
40
43 int getRun() const {return m_run;}
44
46 const std::string& getRunDate() const {return m_date;}
47
49 const std::string& getRelease() const {return m_release;}
50
52 const std::string& getProcessingID() const {return m_procID;}
53
55 const std::string& getRunType() const {return m_rtype;}
56
59 bool isMC() const {return m_isMC;}
60
66 const std::string& getDatabaseGlobalTag() const { return m_databaseGlobalTag; }
67
72 void setNEvents(unsigned int nEvents) {m_nEvents = nEvents;}
73
79 void setExperimentRun(int experiment, int run) {m_experiment = experiment; m_run = run;}
80
84 void setRelease(const std::string& release)
85 {
86 m_release = release;
87 }
88
92 void setRunDate(const std::string& date)
93 {
94 m_date = date;
95 }
96
100 void setProcessingID(const std::string& procID)
101 {
102 m_procID = procID;
103 }
104
108 void setRunType(const std::string& rtype)
109 {
110 m_rtype = rtype;
111 }
112
118 void setDatabaseGlobalTag(const std::string& globalTag) { m_databaseGlobalTag = globalTag; }
119
124 virtual void Print(Option_t* option = "") const override;
125
126 private:
127
128 unsigned int m_nEvents;
132 int m_run;
134 std::string m_date;
136 std::string m_release;
138 std::string m_procID;
140 std::string m_rtype;
142 bool m_isMC;
148 void declareMCData() {m_isMC = true;}
149
152 }; //class
153
155} // namespace Belle2
Metadata information about a DQM file.
virtual void Print(Option_t *option="") const override
Print the content of the meta data object.
const std::string & getDatabaseGlobalTag() const
Get the database global tag used when creating this file.
std::string m_databaseGlobalTag
Global tag in the database used for production of this file.
unsigned int m_nEvents
Number of events.
const std::string & getRelease() const
Software release version getter.
const std::string & getRunType() const
Run type getter.
void setExperimentRun(int experiment, int run)
Set experiment and run.
bool isMC() const
Is it generated data?.
unsigned int getNEvents() const
Number of events getter.
void setRunType(const std::string &rtype)
set run type
int getRun() const
run number getter.
bool m_isMC
Is it generated or real data?.
const std::string & getRunDate() const
Run date getter (UTC)
void setProcessingID(const std::string &procID)
set processing ID
std::string m_rtype
run type (physics, cosmics, etc.)
void setRunDate(const std::string &date)
set run date
std::string m_procID
processing ID
std::string m_release
Software release version.
std::string m_date
run date and time (UTC).
int m_experiment
experiment number.
void setDatabaseGlobalTag(const std::string &globalTag)
Set the database global tag used when creating this file.
void declareMCData()
Declare that this is not generated, but real data.
DQMFileMetaData()
Constructor.
int getExperiment() const
experiment number getter.
void setNEvents(unsigned int nEvents)
Number of events setter.
void setRelease(const std::string &release)
set release
ClassDefOverride(DQMFileMetaData, 1)
Metadata information about a file.
const std::string & getProcessingID() const
Processing ID getter.
Abstract base class for different kinds of events.