CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
SLBin Class Reference

#include <CastorShowerLibraryInfo.h>

Inheritance diagram for SLBin:

Public Member Functions

void Clear (Option_t *option="") override
 
std::vector< double > & getBin ()
 
double getBin (int i)
 
unsigned int getNBins ()
 
unsigned int getNEvtPerBin ()
 
unsigned int getNEvts ()
 
void setBin (const std::vector< double > &b)
 
void setBin (double val)
 
void setNBins (unsigned int n)
 
void setNEvtPerBin (unsigned int n)
 
void setNEvts (unsigned int n)
 
 SLBin ()
 
 ~SLBin () override
 

Private Member Functions

 ClassDefOverride (SLBin, 2)
 

Private Attributes

std::vector< double > Bins
 
unsigned int NBins
 
unsigned int NEvtPerBin
 
unsigned int NEvts
 

Detailed Description

Definition at line 12 of file CastorShowerLibraryInfo.h.

Constructor & Destructor Documentation

◆ SLBin()

SLBin::SLBin ( )
inline

Definition at line 14 of file CastorShowerLibraryInfo.h.

14 {};

◆ ~SLBin()

SLBin::~SLBin ( )
inlineoverride

Definition at line 15 of file CastorShowerLibraryInfo.h.

15 {};

Member Function Documentation

◆ ClassDefOverride()

SLBin::ClassDefOverride ( SLBin  ,
 
)
private

◆ Clear()

void SLBin::Clear ( Option_t *  option = "")
inlineoverride

Definition at line 17 of file CastorShowerLibraryInfo.h.

17  {
18  NEvts = NBins = NEvtPerBin = 0;
19  Bins.clear();
20  };

References Bins, NBins, NEvtPerBin, and NEvts.

Referenced by CastorShowerLibraryInfo::Clear().

◆ getBin() [1/2]

std::vector<double>& SLBin::getBin ( )
inline

Definition at line 31 of file CastorShowerLibraryInfo.h.

31 { return Bins; };

◆ getBin() [2/2]

double SLBin::getBin ( int  i)
inline

Definition at line 30 of file CastorShowerLibraryInfo.h.

30 { return Bins.at(i); };

References Bins, and mps_fire::i.

Referenced by CastorShowerLibrary::loadEventInfo().

◆ getNBins()

unsigned int SLBin::getNBins ( )
inline

Definition at line 28 of file CastorShowerLibraryInfo.h.

28 { return NBins; };

References NBins.

Referenced by CastorShowerLibrary::loadEventInfo().

◆ getNEvtPerBin()

unsigned int SLBin::getNEvtPerBin ( )
inline

Definition at line 29 of file CastorShowerLibraryInfo.h.

29 { return NEvtPerBin; };

References NEvtPerBin.

Referenced by CastorShowerLibrary::loadEventInfo().

◆ getNEvts()

unsigned int SLBin::getNEvts ( )
inline

Definition at line 27 of file CastorShowerLibraryInfo.h.

27 { return NEvts; };

References NEvts.

Referenced by CastorShowerLibrary::loadEventInfo().

◆ setBin() [1/2]

void SLBin::setBin ( const std::vector< double > &  b)
inline

Definition at line 25 of file CastorShowerLibraryInfo.h.

25 { Bins = b; };

References b, and Bins.

◆ setBin() [2/2]

void SLBin::setBin ( double  val)
inline

Definition at line 24 of file CastorShowerLibraryInfo.h.

24 { Bins.push_back(val); };

References Bins, and heppy_batch::val.

Referenced by CastorShowerLibraryMaker::InitSLHolder(), and CastorShowerLibraryMaker::update().

◆ setNBins()

void SLBin::setNBins ( unsigned int  n)
inline

◆ setNEvtPerBin()

void SLBin::setNEvtPerBin ( unsigned int  n)
inline

◆ setNEvts()

void SLBin::setNEvts ( unsigned int  n)
inline

Member Data Documentation

◆ Bins

std::vector<double> SLBin::Bins
private

Definition at line 37 of file CastorShowerLibraryInfo.h.

Referenced by Clear(), getBin(), and setBin().

◆ NBins

unsigned int SLBin::NBins
private

Definition at line 35 of file CastorShowerLibraryInfo.h.

Referenced by Clear(), getNBins(), and setNBins().

◆ NEvtPerBin

unsigned int SLBin::NEvtPerBin
private

Definition at line 36 of file CastorShowerLibraryInfo.h.

Referenced by Clear(), getNEvtPerBin(), and setNEvtPerBin().

◆ NEvts

unsigned int SLBin::NEvts
private

Definition at line 31 of file CastorShowerLibraryInfo.h.

Referenced by Clear(), getNEvts(), and setNEvts().

mps_fire.i
i
Definition: mps_fire.py:355
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
SLBin::Bins
std::vector< double > Bins
Definition: CastorShowerLibraryInfo.h:37
SLBin::NBins
unsigned int NBins
Definition: CastorShowerLibraryInfo.h:35
b
double b
Definition: hdecay.h:118
SLBin::NEvtPerBin
unsigned int NEvtPerBin
Definition: CastorShowerLibraryInfo.h:36
SLBin::NEvts
unsigned int NEvts
Definition: CastorShowerLibraryInfo.h:31
heppy_batch.val
val
Definition: heppy_batch.py:351