![]() |
Belle II Software
release-05-02-19
|
This class stores the information about what background was mixed or overlayed. More...
#include <BackgroundInfo.h>
Classes | |
struct | BackgroundDescr |
Structure for background description. More... | |
Public Types | |
enum | EMethod { c_Unknown = 0, c_Mixing = 1, c_Overlay = 2 } |
enum for methods used to add BG More... | |
Public Member Functions | |
BELLE2_DEFINE_EXCEPTION (BackgroundInfoNotMergeable, "BackgroundInfo: objects cannot be merged") | |
Exception definition. | |
BackgroundInfo () | |
Default constructor. | |
~BackgroundInfo () | |
Destructor. | |
void | setMethod (EMethod method) |
Set method that is used to add BG. More... | |
unsigned | appendBackgroundDescr (const BackgroundDescr &bgDescr) |
Append background description of a sample. More... | |
void | setComponents (const std::vector< std::string > &components) |
Set components included. More... | |
void | setMinTime (double minTime) |
Set lower edge of the narrow time window. More... | |
void | setMaxTime (double maxTime) |
Set upper edge of the narrow time window. More... | |
void | setMinTimeECL (double minTimeECL) |
Set lower edge of ECL time window. More... | |
void | setMaxTimeECL (double maxTimeECL) |
Set upper edge of ECL time window. More... | |
void | setMinTimePXD (double minTimePXD) |
Set lower edge of PXD time window. More... | |
void | setMaxTimePXD (double maxTimePXD) |
Set upper edge of PXD time window. More... | |
void | setWrapAround (bool wrapAround) |
Set wrap-around flag. More... | |
void | setMaxEdepECL (double maxEdepECL) |
Set maximal alowed energy deposited in ECL to use BG events. More... | |
void | setExtensionName (const std::string &name) |
Set name that is added to default branch names of background collections Used primarily to pass this name from BGOverlayInput to BGOverlayExecutor module. More... | |
void | incrementReusedCounter (unsigned index) |
Increments sample reused counter. More... | |
EMethod | getMethod () const |
Returns method enum used to add BG. More... | |
const std::vector< BackgroundDescr > & | getBackgrounds () const |
Returns background descriptions. More... | |
const std::vector< std::string > & | getComponents () const |
Returns included components. More... | |
double | getMinTime () const |
Returns lower edge of the narrow time window. More... | |
double | getMaxTime () const |
Returns upper edge of the narrow time window. More... | |
double | getMinTimeECL () const |
Returns lower edge of ECL time window. More... | |
double | getMaxTimeECL () const |
Returns upper edge of ECL time window. More... | |
double | getMinTimePXD () const |
Returns lower edge of PXD time window. More... | |
double | getMaxTimePXD () const |
Returns upper edge of PXD time window. More... | |
bool | getWrapAround () const |
Returns wrap-around flag. More... | |
double | getMaxEdepECL () const |
Returns maximal alowed energy deposited in ECL to use BG events. More... | |
const std::string & | getExtensionName () const |
Returns name added to default branch names of background collections Used primarily to pass this name from BGOverlayInput to BGOverlayExecutor module. More... | |
virtual void | merge (const Mergeable *other) override |
Implementation of abstract class function. | |
virtual void | clear () override |
Implementation of abstract class function. | |
void | print () const |
Print the info. | |
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 BackgroundInfo *other) |
Checks if other object can be merged with this object. More... | |
void | printForMixing () const |
Print info when BG mixing is used. | |
void | printForOverlay () const |
Print info when BG overlay is used. | |
ClassDefOverride (BackgroundInfo, 4) | |
Class definition. | |
ClassDef (Mergeable, 0) | |
Abstract base class for objects that can be merged. | |
Private Attributes | |
EMethod | m_method = c_Unknown |
method | |
std::vector< BackgroundDescr > | m_backgrounds |
background descriptions | |
std::vector< std::string > | m_components |
detector components included | |
double | m_minTime = 0 |
minimal time shift of background event | |
double | m_maxTime = 0 |
maximal time shift of background event | |
double | m_minTimeECL = 0 |
minimal time shift of background event for ECL | |
double | m_maxTimeECL = 0 |
maximal time shift of background event for ECL | |
double | m_minTimePXD = 0 |
minimal time shift of background event for PXD | |
double | m_maxTimePXD = 0 |
maximal time shift of background event for PXD | |
bool | m_wrapAround = false |
wrap around events in the tail after maxTime | |
double | m_maxEdepECL = 0 |
maximal allowed deposited energy in ECL | |
std::string | m_extensionName |
name added to default branch names of background | |
This class stores the information about what background was mixed or overlayed.
Definition at line 36 of file BackgroundInfo.h.
enum EMethod |
enum for methods used to add BG
Enumerator | |
---|---|
c_Unknown | unknown |
c_Mixing | BG mixing. |
c_Overlay | BG overlay. |
Definition at line 49 of file BackgroundInfo.h.
|
inline |
Append background description of a sample.
bgDescr | description |
Definition at line 91 of file BackgroundInfo.h.
|
private |
Checks if other object can be merged with this object.
other | object to be merged with this object |
Definition at line 20 of file BackgroundInfo.cc.
|
inline |
Returns background descriptions.
Definition at line 180 of file BackgroundInfo.h.
|
inline |
Returns included components.
Definition at line 186 of file BackgroundInfo.h.
|
inline |
Returns name added to default branch names of background collections Used primarily to pass this name from BGOverlayInput to BGOverlayExecutor module.
Definition at line 241 of file BackgroundInfo.h.
|
inline |
Returns maximal alowed energy deposited in ECL to use BG events.
Definition at line 234 of file BackgroundInfo.h.
|
inline |
Returns upper edge of the narrow time window.
Definition at line 198 of file BackgroundInfo.h.
|
inline |
Returns upper edge of ECL time window.
Definition at line 210 of file BackgroundInfo.h.
|
inline |
Returns upper edge of PXD time window.
Definition at line 222 of file BackgroundInfo.h.
|
inline |
|
inline |
Returns lower edge of the narrow time window.
Definition at line 192 of file BackgroundInfo.h.
|
inline |
Returns lower edge of ECL time window.
Definition at line 204 of file BackgroundInfo.h.
|
inline |
Returns lower edge of PXD time window.
Definition at line 216 of file BackgroundInfo.h.
|
inline |
|
inline |
Increments sample reused counter.
index | element index in std::vector |
Definition at line 165 of file BackgroundInfo.h.
|
virtualinherited |
Allow merging using TFileMerger if saved directly to a file.
Definition at line 7 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 60 of file Mergeable.h.
|
inlinevirtualinherited |
Root-like Reset function for "template compatibility" with ROOT objects.
Alias for clear().
Definition at line 68 of file Mergeable.h.
|
inline |
Set components included.
components | vector of component names |
Definition at line 101 of file BackgroundInfo.h.
|
inlinevirtualinherited |
Root-like SetDirectory function for "template compatibility" with ROOT objects.
Does nothing.
Definition at line 70 of file Mergeable.h.
|
inline |
Set name that is added to default branch names of background collections Used primarily to pass this name from BGOverlayInput to BGOverlayExecutor module.
name | extension name |
Definition at line 159 of file BackgroundInfo.h.
|
inline |
Set maximal alowed energy deposited in ECL to use BG events.
maxEdepECL | energy cut [GeV] |
Definition at line 152 of file BackgroundInfo.h.
|
inline |
Set upper edge of the narrow time window.
maxTime | upper edge |
Definition at line 116 of file BackgroundInfo.h.
|
inline |
Set upper edge of ECL time window.
maxTimeECL | upper edge |
Definition at line 128 of file BackgroundInfo.h.
|
inline |
Set upper edge of PXD time window.
maxTimePXD | upper edge |
Definition at line 140 of file BackgroundInfo.h.
|
inline |
Set method that is used to add BG.
method | enum for method |
Definition at line 84 of file BackgroundInfo.h.
|
inline |
Set lower edge of the narrow time window.
minTime | lower edge |
Definition at line 110 of file BackgroundInfo.h.
|
inline |
Set lower edge of ECL time window.
minTimeECL | lower edge |
Definition at line 122 of file BackgroundInfo.h.
|
inline |
Set lower edge of PXD time window.
minTimePXD | lower edge |
Definition at line 134 of file BackgroundInfo.h.
|
inline |