Belle II Software
release-08-01-10
|
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 26 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 39 of file BackgroundInfo.h.
|
inline |
Append background description of a sample.
bgDescr | description |
Definition at line 81 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 18 of file BackgroundInfo.cc.
|
inline |
Returns background descriptions.
Definition at line 170 of file BackgroundInfo.h.
|
inline |
Returns included components.
Definition at line 176 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 231 of file BackgroundInfo.h.
|
inline |
Returns maximal alowed energy deposited in ECL to use BG events.
Definition at line 224 of file BackgroundInfo.h.
|
inline |
Returns upper edge of the narrow time window.
Definition at line 188 of file BackgroundInfo.h.
|
inline |
Returns upper edge of ECL time window.
Definition at line 200 of file BackgroundInfo.h.
|
inline |
Returns upper edge of PXD time window.
Definition at line 212 of file BackgroundInfo.h.
|
inline |
|
inline |
Returns lower edge of the narrow time window.
Definition at line 182 of file BackgroundInfo.h.
|
inline |
Returns lower edge of ECL time window.
Definition at line 194 of file BackgroundInfo.h.
|
inline |
Returns lower edge of PXD time window.
Definition at line 206 of file BackgroundInfo.h.
|
inline |
|
inline |
Increments sample reused counter.
index | element index in std::vector |
Definition at line 155 of file BackgroundInfo.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 |
Set components included.
components | vector of component names |
Definition at line 91 of file BackgroundInfo.h.
|
inlinevirtualinherited |
Root-like SetDirectory function for "template compatibility" with ROOT objects.
Does nothing.
Definition at line 68 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 149 of file BackgroundInfo.h.
|
inline |
Set maximal alowed energy deposited in ECL to use BG events.
maxEdepECL | energy cut [GeV] |
Definition at line 142 of file BackgroundInfo.h.
|
inline |
Set upper edge of the narrow time window.
maxTime | upper edge |
Definition at line 106 of file BackgroundInfo.h.
|
inline |
Set upper edge of ECL time window.
maxTimeECL | upper edge |
Definition at line 118 of file BackgroundInfo.h.
|
inline |
Set upper edge of PXD time window.
maxTimePXD | upper edge |
Definition at line 130 of file BackgroundInfo.h.
|
inline |
Set method that is used to add BG.
method | enum for method |
Definition at line 74 of file BackgroundInfo.h.
|
inline |
Set lower edge of the narrow time window.
minTime | lower edge |
Definition at line 100 of file BackgroundInfo.h.
|
inline |
Set lower edge of ECL time window.
minTimeECL | lower edge |
Definition at line 112 of file BackgroundInfo.h.
|
inline |
Set lower edge of PXD time window.
minTimePXD | lower edge |
Definition at line 124 of file BackgroundInfo.h.
|
inline |