Belle II Software
release-08-01-10
|
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. More... | |
void | setBackgroundTag (BG_TAG tag) |
Sets background tag value that corresponds to background type. More... | |
void | setRealTime (float time) |
Sets real time that corresponds to this background sample. More... | |
void | setFileType (EFileType type) |
Sets file type. More... | |
const std::string & | getBackgroundType () const |
Returns the type of background. More... | |
BG_TAG | getBackgroundTag () const |
Returns background tag value. More... | |
float | getRealTime () const |
Returns real time that corresponds to this background sample. More... | |
EFileType | getFileType () const |
Returns file type. More... | |
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. More... | |
virtual Long64_t | Merge (TCollection *hlist) |
Allow merging using TFileMerger if saved directly to a file. More... | |
virtual void | Reset () |
Root-like Reset function for "template compatibility" with ROOT objects. More... | |
virtual void | SetDirectory (TDirectory *) |
Root-like SetDirectory function for "template compatibility" with ROOT objects. More... | |
Private Member Functions | |
bool | canBeMerged (const BackgroundMetaData *other) |
Checks if other object can be merged with this object. More... | |
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 | |
Metadata information about the beam background file.
Definition at line 24 of file BackgroundMetaData.h.
enum BG_TAG |
Enum for background tags.
Definition at line 31 of file BackgroundMetaData.h.
enum EFileType |
Enum for BG file types.
Enumerator | |
---|---|
c_Usual | usual BG file |
c_ECL | additional for ECL |
c_PXD | additional for PXD |
Definition at line 75 of file BackgroundMetaData.h.
|
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.
|
inline |
|
inline |
Returns the type of background.
Definition at line 114 of file BackgroundMetaData.h.
|
inline |
|
inline |
Returns real time that corresponds to this background sample.
Definition at line 126 of file BackgroundMetaData.h.
|
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 96 of file BackgroundMetaData.h.
|
inline |
Sets background type.
type | background type |
Definition at line 90 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 |
|
inline |
Sets real time that corresponds to this background sample.
time | real time |
Definition at line 102 of file BackgroundMetaData.h.