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
18
namespace
Belle2
{
27
class
DQMFileMetaData
:
public
TObject {
28
public
:
31
DQMFileMetaData
();
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
;
130
int
m_experiment
;
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
;
144
std::string
m_databaseGlobalTag
;
148
void
declareMCData
() {
m_isMC
=
true
;}
149
150
ClassDefOverride
(
DQMFileMetaData
, 1);
152
};
//class
153
155
}
// namespace Belle2
Belle2::DQMFileMetaData
Metadata information about a DQM file.
Definition:
DQMFileMetaData.h:27
Belle2::DQMFileMetaData::Print
virtual void Print(Option_t *option="") const override
Print the content of the meta data object.
Definition:
DQMFileMetaData.cc:29
Belle2::DQMFileMetaData::getDatabaseGlobalTag
const std::string & getDatabaseGlobalTag() const
Get the database global tag used when creating this file.
Definition:
DQMFileMetaData.h:66
Belle2::DQMFileMetaData::m_databaseGlobalTag
std::string m_databaseGlobalTag
Global tag in the database used for production of this file.
Definition:
DQMFileMetaData.h:144
Belle2::DQMFileMetaData::m_nEvents
unsigned int m_nEvents
Number of events.
Definition:
DQMFileMetaData.h:128
Belle2::DQMFileMetaData::getRelease
const std::string & getRelease() const
Software release version getter.
Definition:
DQMFileMetaData.h:49
Belle2::DQMFileMetaData::getRunType
const std::string & getRunType() const
Run type getter.
Definition:
DQMFileMetaData.h:55
Belle2::DQMFileMetaData::setExperimentRun
void setExperimentRun(int experiment, int run)
Set experiment and run.
Definition:
DQMFileMetaData.h:79
Belle2::DQMFileMetaData::isMC
bool isMC() const
Is it generated data?.
Definition:
DQMFileMetaData.h:59
Belle2::DQMFileMetaData::getNEvents
unsigned int getNEvents() const
Number of events getter.
Definition:
DQMFileMetaData.h:35
Belle2::DQMFileMetaData::setRunType
void setRunType(const std::string &rtype)
set run type
Definition:
DQMFileMetaData.h:108
Belle2::DQMFileMetaData::getRun
int getRun() const
run number getter.
Definition:
DQMFileMetaData.h:43
Belle2::DQMFileMetaData::m_isMC
bool m_isMC
Is it generated or real data?.
Definition:
DQMFileMetaData.h:142
Belle2::DQMFileMetaData::getRunDate
const std::string & getRunDate() const
Run date getter (UTC)
Definition:
DQMFileMetaData.h:46
Belle2::DQMFileMetaData::setProcessingID
void setProcessingID(const std::string &procID)
set processing ID
Definition:
DQMFileMetaData.h:100
Belle2::DQMFileMetaData::m_rtype
std::string m_rtype
run type (physics, cosmics, etc.)
Definition:
DQMFileMetaData.h:140
Belle2::DQMFileMetaData::setRunDate
void setRunDate(const std::string &date)
set run date
Definition:
DQMFileMetaData.h:92
Belle2::DQMFileMetaData::m_procID
std::string m_procID
processing ID
Definition:
DQMFileMetaData.h:138
Belle2::DQMFileMetaData::m_release
std::string m_release
Software release version.
Definition:
DQMFileMetaData.h:136
Belle2::DQMFileMetaData::m_date
std::string m_date
run date and time (UTC).
Definition:
DQMFileMetaData.h:134
Belle2::DQMFileMetaData::m_experiment
int m_experiment
experiment number.
Definition:
DQMFileMetaData.h:130
Belle2::DQMFileMetaData::setDatabaseGlobalTag
void setDatabaseGlobalTag(const std::string &globalTag)
Set the database global tag used when creating this file.
Definition:
DQMFileMetaData.h:118
Belle2::DQMFileMetaData::declareMCData
void declareMCData()
Declare that this is not generated, but real data.
Definition:
DQMFileMetaData.h:148
Belle2::DQMFileMetaData::DQMFileMetaData
DQMFileMetaData()
Constructor.
Definition:
DQMFileMetaData.cc:22
Belle2::DQMFileMetaData::getExperiment
int getExperiment() const
experiment number getter.
Definition:
DQMFileMetaData.h:39
Belle2::DQMFileMetaData::setNEvents
void setNEvents(unsigned int nEvents)
Number of events setter.
Definition:
DQMFileMetaData.h:72
Belle2::DQMFileMetaData::setRelease
void setRelease(const std::string &release)
set release
Definition:
DQMFileMetaData.h:84
Belle2::DQMFileMetaData::ClassDefOverride
ClassDefOverride(DQMFileMetaData, 1)
Metadata information about a file.
Belle2::DQMFileMetaData::getProcessingID
const std::string & getProcessingID() const
Processing ID getter.
Definition:
DQMFileMetaData.h:52
Belle2::DQMFileMetaData::m_run
int m_run
run number.
Definition:
DQMFileMetaData.h:132
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
dqm
dataobjects
include
DQMFileMetaData.h
Generated on Fri Nov 8 2024 02:36:23 for Belle II Software by
1.9.6