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