Belle II Software development
BeamBkgMixerModule::BkgFiles Struct Reference

structure to hold samples of a particular background type More...

Public Member Functions

 BkgFiles ()
 default constructor
 
 BkgFiles (BackgroundMetaData::BG_TAG bkgTag, const std::string &bkgType, const std::string &fileName, double time, double scaleFac, BackgroundMetaData::EFileType fileTyp=BackgroundMetaData::c_Usual, unsigned indx=0)
 useful constructor
 

Public Attributes

BackgroundMetaData::BG_TAG tag
 background tag
 
std::string type
 background type
 
double realTime
 real time of BG samlpe
 
double scaleFactor
 scale factor for the rate
 
std::vector< std::string > fileNames
 file names
 
BackgroundMetaData::EFileType fileType
 file type
 
std::unique_ptr< TChain > tree
 tree pointer
 
unsigned numFiles
 number of files connected to TChain
 
unsigned numEvents
 number of events (tree entries) in the sample
 
unsigned eventCount
 current event (tree entry)
 
double rate
 background rate of the sample
 
unsigned index
 index of this element in the std::vector
 

Detailed Description

structure to hold samples of a particular background type

Definition at line 84 of file BeamBkgMixerModule.h.

Constructor & Destructor Documentation

◆ BkgFiles() [1/2]

BkgFiles ( )
inline

default constructor

Definition at line 101 of file BeamBkgMixerModule.h.

101 : tag(BackgroundMetaData::bg_none), realTime(0.0), scaleFactor(1.0),
102 fileType(BackgroundMetaData::c_Usual),
103 tree(nullptr), numFiles(0), numEvents(0), eventCount(0), rate(0.0), index(0)
104 {}

◆ BkgFiles() [2/2]

BkgFiles ( BackgroundMetaData::BG_TAG bkgTag,
const std::string & bkgType,
const std::string & fileName,
double time,
double scaleFac,
BackgroundMetaData::EFileType fileTyp = BackgroundMetaData::c_Usual,
unsigned indx = 0 )
inline

useful constructor

Parameters
bkgTagbackground tag
bkgTypebackground type
fileNamefile name
timereal time that corresponds to background sample
scaleFacscale factor for the rate
fileTypfile type
indxindex of this element in the std::vector

Definition at line 115 of file BeamBkgMixerModule.h.

121 :
122 tag(bkgTag), type(bkgType), realTime(time), scaleFactor(scaleFac),
123 fileType(fileTyp),
124 tree(nullptr), numFiles(0), numEvents(0), eventCount(0), rate(0.0), index(indx)
125 {
126 fileNames.push_back(fileName);
127 }

Member Data Documentation

◆ eventCount

unsigned eventCount

current event (tree entry)

Definition at line 94 of file BeamBkgMixerModule.h.

◆ fileNames

std::vector<std::string> fileNames

file names

Definition at line 89 of file BeamBkgMixerModule.h.

◆ fileType

file type

Definition at line 90 of file BeamBkgMixerModule.h.

◆ index

unsigned index

index of this element in the std::vector

Definition at line 96 of file BeamBkgMixerModule.h.

◆ numEvents

unsigned numEvents

number of events (tree entries) in the sample

Definition at line 93 of file BeamBkgMixerModule.h.

◆ numFiles

unsigned numFiles

number of files connected to TChain

Definition at line 92 of file BeamBkgMixerModule.h.

◆ rate

double rate

background rate of the sample

Definition at line 95 of file BeamBkgMixerModule.h.

◆ realTime

double realTime

real time of BG samlpe

Definition at line 87 of file BeamBkgMixerModule.h.

◆ scaleFactor

double scaleFactor

scale factor for the rate

Definition at line 88 of file BeamBkgMixerModule.h.

◆ tag

background tag

Definition at line 85 of file BeamBkgMixerModule.h.

◆ tree

std::unique_ptr<TChain> tree

tree pointer

Definition at line 91 of file BeamBkgMixerModule.h.

◆ type

std::string type

background type

Definition at line 86 of file BeamBkgMixerModule.h.


The documentation for this struct was generated from the following file: