Belle II Software development
|
Metadata information about the beam background file. More...
#include <BackgroundMetaData.h>
Public Types | |
enum | BG_TAG { bg_none = 0 , bg_Coulomb_LER = 1 , bg_Coulomb_HER = 2 , bg_RBB_LER = 3 , bg_RBB_HER = 4 , bg_Touschek_LER = 5 , bg_Touschek_HER = 6 , bg_twoPhoton = 7 , bg_RBB_gamma = 8 , bg_RBB_LER_far = 9 , bg_RBB_HER_far = 10 , bg_Touschek_LER_far = 11 , bg_Touschek_HER_far = 12 , bg_SynchRad_LER = 13 , bg_SynchRad_HER = 14 , bg_BHWide_LER = 15 , bg_BHWide_HER = 16 , bg_RBB = 17 , bg_BHWide = 18 , bg_BHWideLargeAngle = 19 , bg_InjectionLER = 21 , bg_InjectionHER = 22 , bg_Brems_LER = 23 , bg_Brems_HER = 24 , bg_Brems_base_LER = 25 , bg_Brems_dynamic_LER = 26 , bg_Brems_base_HER = 27 , bg_Brems_dynamic_HER = 28 , bg_Coulomb_base_LER = 29 , bg_Coulomb_dynamic_LER = 30 , bg_Coulomb_base_HER = 31 , bg_Coulomb_dynamic_HER = 32 , bg_other = 99 } |
Enum for background tags. More... | |
enum | EFileType { c_Usual = 0 , c_ECL = 1 , c_PXD = 2 } |
Enum for BG file types. More... | |
Public Member Functions | |
BELLE2_DEFINE_EXCEPTION (BackgroundMetaDataNotMergeable, "BackgroundMetaData: objects cannot be merged") | |
Exception definition. | |
BackgroundMetaData () | |
Constructor. | |
void | setBackgroundType (const std::string &type) |
Sets background type. | |
void | setBackgroundTag (BG_TAG tag) |
Sets background tag value that corresponds to background type. | |
void | setRealTime (float time) |
Sets real time that corresponds to this background sample. | |
void | setFileType (EFileType type) |
Sets file type. | |
const std::string & | getBackgroundType () const |
Returns the type of background. | |
BG_TAG | getBackgroundTag () const |
Returns background tag value. | |
float | getRealTime () const |
Returns real time that corresponds to this background sample. | |
EFileType | getFileType () const |
Returns file type. | |
virtual void | merge (const Mergeable *other) override |
Implementation of abstract class function. | |
virtual void | clear () override |
Implementation of abstract class function. | |
virtual void | removeSideEffects () |
An ugly little method that is called before event() for input and worker processes. | |
virtual Long64_t | Merge (TCollection *hlist) |
Allow merging using TFileMerger if saved directly to a file. | |
virtual void | Reset () |
Root-like Reset function for "template compatibility" with ROOT objects. | |
virtual void | SetDirectory (TDirectory *) |
Root-like SetDirectory function for "template compatibility" with ROOT objects. | |
Static Public Member Functions | |
static constexpr std::string_view | getDefaultBackgroundOverlayType () |
Returns the default name for background overlay type. | |
Private Member Functions | |
bool | canBeMerged (const BackgroundMetaData *other) |
Checks if other object can be merged with this object. | |
ClassDefOverride (BackgroundMetaData, 4) | |
Class definition required for creation of ROOT dictionary. | |
ClassDef (Mergeable, 0) | |
Abstract base class for objects that can be merged. | |
Private Attributes | |
std::string | m_backgroundType |
beam background type | |
BG_TAG | m_backgroundTag = bg_other |
background tag | |
float | m_realTime = 0 |
real time that corresponds to beam background sample | |
EFileType | m_fileType = c_Usual |
file type | |
Static Private Attributes | |
static constexpr std::string_view | c_defaultBackgroundOverlayType = "RandomTrigger" |
default name for background overlay type | |
Metadata information about the beam background file.
Definition at line 26 of file BackgroundMetaData.h.
enum BG_TAG |
Enum for background tags.
Definition at line 33 of file BackgroundMetaData.h.
enum EFileType |
|
inline |
|
private |
Checks if other object can be merged with this object.
other | object to be merged with this object |
Definition at line 16 of file BackgroundMetaData.cc.
|
overridevirtual |
Implementation of abstract class function.
Implements Mergeable.
Definition at line 55 of file BackgroundMetaData.cc.
|
inline |
|
inline |
Returns the type of background.
Definition at line 116 of file BackgroundMetaData.h.
|
inlinestaticconstexpr |
Returns the default name for background overlay type.
Definition at line 139 of file BackgroundMetaData.h.
|
inline |
|
inline |
Returns real time that corresponds to this background sample.
Definition at line 128 of file BackgroundMetaData.h.
|
overridevirtual |
Implementation of abstract class function.
Implements Mergeable.
Definition at line 38 of file BackgroundMetaData.cc.
|
virtualinherited |
Allow merging using TFileMerger if saved directly to a file.
Definition at line 14 of file Mergeable.cc.
|
inlinevirtualinherited |
An ugly little method that is called before event() for input and worker processes.
Main use case is to detach any attached TFile from this object. In the output process, it can stay attached (and grow as much as it likes).
Reimplemented in RootMergeable< T >.
Definition at line 58 of file Mergeable.h.
|
inlinevirtualinherited |
Root-like Reset function for "template compatibility" with ROOT objects.
Alias for clear().
Definition at line 66 of file Mergeable.h.
|
inline |
Sets background tag value that corresponds to background type.
tag | a tag value |
Definition at line 98 of file BackgroundMetaData.h.
|
inline |
Sets background type.
type | background type |
Definition at line 92 of file BackgroundMetaData.h.
|
inlinevirtualinherited |
Root-like SetDirectory function for "template compatibility" with ROOT objects.
Does nothing.
Definition at line 68 of file Mergeable.h.
|
inline |
Sets file type.
type | file type |
Definition at line 110 of file BackgroundMetaData.h.
|
inline |
Sets real time that corresponds to this background sample.
time | real time |
Definition at line 104 of file BackgroundMetaData.h.
|
staticconstexprprivate |
default name for background overlay type
Definition at line 165 of file BackgroundMetaData.h.
background tag
Definition at line 162 of file BackgroundMetaData.h.
|
private |
beam background type
Definition at line 161 of file BackgroundMetaData.h.
file type
Definition at line 164 of file BackgroundMetaData.h.
|
private |
real time that corresponds to beam background sample
Definition at line 163 of file BackgroundMetaData.h.