Belle II Software
release-05-01-25
EventExtraInfo.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2014 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Thomas Keck *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#pragma once
12
13
#include <map>
14
15
#include <TObject.h>
16
17
namespace
Belle2
{
27
class
EventExtraInfo :
public
TObject {
28
29
public
:
34
float
getExtraInfo
(
const
std::string& name)
const
;
35
37
bool
hasExtraInfo
(
const
std::string& name)
const
;
38
39
41
void
removeExtraInfo
();
42
47
void
addExtraInfo
(
const
std::string& name,
float
value);
48
53
void
setExtraInfo
(
const
std::string& name,
float
value);
54
56
std::string
getInfoHTML
()
const
;
57
59
std::vector<std::string>
getNames
()
const
;
60
61
private
:
62
std::map<std::string, float>
eventExtraInfo
;
64
ClassDef
(
EventExtraInfo
, 2);
65
};
66
68
}
// end namespace Belle2
69
Belle2::EventExtraInfo::addExtraInfo
void addExtraInfo(const std::string &name, float value)
Sets the user-defined data of given name to the given value.
Definition:
EventExtraInfo.cc:34
Belle2::EventExtraInfo::getNames
std::vector< std::string > getNames() const
Grab the names in this event extra info (for printing etc)
Definition:
EventExtraInfo.cc:56
Belle2::EventExtraInfo::getInfoHTML
std::string getInfoHTML() const
Return a short summary of this object's contents in HTML format.
Definition:
EventExtraInfo.cc:47
Belle2::EventExtraInfo::ClassDef
ClassDef(EventExtraInfo, 2)
Class to store event extra info.
Belle2::EventExtraInfo::hasExtraInfo
bool hasExtraInfo(const std::string &name) const
Return wether the extra info with the given name is set.
Definition:
EventExtraInfo.cc:23
Belle2::EventExtraInfo::setExtraInfo
void setExtraInfo(const std::string &name, float value)
Sets the user-defined data of given name to the given value.
Definition:
EventExtraInfo.cc:42
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::EventExtraInfo
Class to stores ExtraInfo of the whole event.
Definition:
EventExtraInfo.h:35
Belle2::EventExtraInfo::eventExtraInfo
std::map< std::string, float > eventExtraInfo
map variable names to values.
Definition:
EventExtraInfo.h:70
Belle2::EventExtraInfo::getExtraInfo
float getExtraInfo(const std::string &name) const
Return given value if set.
Definition:
EventExtraInfo.cc:18
Belle2::EventExtraInfo::removeExtraInfo
void removeExtraInfo()
Removes extra info from event.
Definition:
EventExtraInfo.cc:29
analysis
dataobjects
include
EventExtraInfo.h
Generated on Fri Nov 5 2021 03:45:11 for Belle II Software by
1.8.17