 |
Belle II Software
release-05-02-19
|
13 #include <framework/pcore/Mergeable.h>
14 #include <framework/dataobjects/BackgroundMetaData.h>
15 #include <framework/core/FrameworkExceptions.h>
28 class BackgroundInfo:
public Mergeable {
36 "BackgroundInfo: objects cannot be merged");
93 void setComponents(
const std::vector<std::string>& components)
243 virtual void clear()
override;
double scaleFactor
scale factor for the rate
double m_minTimeECL
minimal time shift of background event for ECL
ClassDefOverride(BackgroundInfo, 4)
Class definition.
virtual void merge(const Mergeable *other) override
Implementation of abstract class function.
const std::string & getExtensionName() const
Returns name added to default branch names of background collections Used primarily to pass this name...
void setMaxEdepECL(double maxEdepECL)
Set maximal alowed energy deposited in ECL to use BG events.
std::vector< std::string > fileNames
file names
BackgroundInfo()
Default constructor.
EMethod getMethod() const
Returns method enum used to add BG.
~BackgroundInfo()
Destructor.
double m_minTime
minimal time shift of background event
double getMaxEdepECL() const
Returns maximal alowed energy deposited in ECL to use BG events.
This class stores the information about what background was mixed or overlayed.
void setMaxTimePXD(double maxTimePXD)
Set upper edge of PXD time window.
Structure for background description.
unsigned appendBackgroundDescr(const BackgroundDescr &bgDescr)
Append background description of a sample.
double getMaxTimeECL() const
Returns upper edge of ECL time window.
const std::vector< BackgroundDescr > & getBackgrounds() const
Returns background descriptions.
std::string m_extensionName
name added to default branch names of background
double getMinTimePXD() const
Returns lower edge of PXD time window.
void setMaxTimeECL(double maxTimeECL)
Set upper edge of ECL time window.
double realTime
real time of BG samlpe
Abstract base class for different kinds of events.
double getMinTime() const
Returns lower edge of the narrow time window.
BackgroundMetaData::BG_TAG tag
background tag denoting type
double m_maxTimePXD
maximal time shift of background event for PXD
EMethod
enum for methods used to add BG
double m_maxTimeECL
maximal time shift of background event for ECL
void setMaxTime(double maxTime)
Set upper edge of the narrow time window.
void printForMixing() const
Print info when BG mixing is used.
bool m_wrapAround
wrap around events in the tail after maxTime
double rate
background rate of the sample
void setWrapAround(bool wrapAround)
Set wrap-around flag.
std::string type
background type
std::vector< BackgroundDescr > m_backgrounds
background descriptions
void setMinTime(double minTime)
Set lower edge of the narrow time window.
void printForOverlay() const
Print info when BG overlay is used.
void print() const
Print the info.
double m_minTimePXD
minimal time shift of background event for PXD
void setMinTimePXD(double minTimePXD)
Set lower edge of PXD time window.
unsigned numEvents
number of events (tree entries) in the sample
void incrementReusedCounter(unsigned index)
Increments sample reused counter.
std::vector< std::string > m_components
detector components included
virtual void clear() override
Implementation of abstract class function.
BELLE2_DEFINE_EXCEPTION(BackgroundInfoNotMergeable, "BackgroundInfo: objects cannot be merged")
Exception definition.
double getMaxTime() const
Returns upper edge of the narrow time window.
double m_maxEdepECL
maximal allowed deposited energy in ECL
unsigned reused
number of times the sample is reused
BackgroundMetaData::EFileType fileType
file type
void setMethod(EMethod method)
Set method that is used to add BG.
bool canBeMerged(const BackgroundInfo *other)
Checks if other object can be merged with this object.
double getMinTimeECL() const
Returns lower edge of ECL time window.
bool getWrapAround() const
Returns wrap-around flag.
void setExtensionName(const std::string &name)
Set name that is added to default branch names of background collections Used primarily to pass this ...
double m_maxTime
maximal time shift of background event
void setComponents(const std::vector< std::string > &components)
Set components included.
const std::vector< std::string > & getComponents() const
Returns included components.
void setMinTimeECL(double minTimeECL)
Set lower edge of ECL time window.
Abstract base class for objects that can be merged.
double getMaxTimePXD() const
Returns upper edge of PXD time window.