CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DTTimeEvolutionHisto Class Reference

#include <DTTimeEvolutionHisto.h>

Public Member Functions

void accumulateValueTimeSlot (float value)
 
 DTTimeEvolutionHisto (DQMStore::IBooker &ibooker, const std::string &name, const std::string &title, int nbins, int lsPrescale, bool sliding, int mode=0)
 
 DTTimeEvolutionHisto (DQMStore::IBooker &ibooker, const std::string &name, const std::string &title, int nbins, int firstLS, int lsPrescale, bool sliding, int mode=0)
 
 DTTimeEvolutionHisto (MonitorElement *)
 
void normalizeTo (const MonitorElement *histForNorm)
 
void setTimeSlotValue (float value, int timeSlot)
 
void updateTimeSlot (int ls, int nEventsInLS)
 
virtual ~DTTimeEvolutionHisto ()
 Destructor. More...
 

Private Attributes

bool doSlide
 
MonitorElementhisto
 
int nBookedBins
 
std::map< int, int > nEventsInLastTimeSlot
 
std::map< int, int > nLumiTrInLastTimeSlot
 
int theFirstLS
 
int theLSPrescale
 
int theMode
 
float valueLastTimeSlot
 

Detailed Description

No description available.

Author
G. Cerminara - INFN Torino

Definition at line 18 of file DTTimeEvolutionHisto.h.

Constructor & Destructor Documentation

DTTimeEvolutionHisto::DTTimeEvolutionHisto ( DQMStore::IBooker ibooker,
const std::string &  name,
const std::string &  title,
int  nbins,
int  lsPrescale,
bool  sliding,
int  mode = 0 
)

Constructor Parameters are:

  • pointer to DQMStore
  • name of the MonitorElement
  • title of the MonitorElement
  • # of bins
  • # of LumiSections per bin
  • mode:
    0 -> rate (over event)
    need to fill using accumulateValueTimeSlot and updateTimeSlot methods
    1 -> # of entries
    2 -> # of events
    3 -> mean over LSs
DTTimeEvolutionHisto::DTTimeEvolutionHisto ( DQMStore::IBooker ibooker,
const std::string &  name,
const std::string &  title,
int  nbins,
int  firstLS,
int  lsPrescale,
bool  sliding,
int  mode = 0 
)
DTTimeEvolutionHisto::DTTimeEvolutionHisto ( MonitorElement histoGot)

Definition at line 75 of file DTTimeEvolutionHisto.cc.

DTTimeEvolutionHisto::~DTTimeEvolutionHisto ( )
virtual

Destructor.

Definition at line 85 of file DTTimeEvolutionHisto.cc.

Member Function Documentation

void DTTimeEvolutionHisto::accumulateValueTimeSlot ( float  value)

Definition at line 113 of file DTTimeEvolutionHisto.cc.

void DTTimeEvolutionHisto::normalizeTo ( const MonitorElement histForNorm)

Definition at line 205 of file DTTimeEvolutionHisto.cc.

void DTTimeEvolutionHisto::setTimeSlotValue ( float  value,
int  timeSlot 
)

Definition at line 89 of file DTTimeEvolutionHisto.cc.

Referenced by DTDCSByLumiSummary::dqmEndJob().

void DTTimeEvolutionHisto::updateTimeSlot ( int  ls,
int  nEventsInLS 
)

Definition at line 119 of file DTTimeEvolutionHisto.cc.

Member Data Documentation

bool DTTimeEvolutionHisto::doSlide
private

Definition at line 74 of file DTTimeEvolutionHisto.h.

MonitorElement* DTTimeEvolutionHisto::histo
private

Definition at line 77 of file DTTimeEvolutionHisto.h.

int DTTimeEvolutionHisto::nBookedBins
private

Definition at line 75 of file DTTimeEvolutionHisto.h.

std::map<int,int> DTTimeEvolutionHisto::nEventsInLastTimeSlot
private

Definition at line 70 of file DTTimeEvolutionHisto.h.

std::map<int,int> DTTimeEvolutionHisto::nLumiTrInLastTimeSlot
private

Definition at line 71 of file DTTimeEvolutionHisto.h.

int DTTimeEvolutionHisto::theFirstLS
private

Definition at line 72 of file DTTimeEvolutionHisto.h.

int DTTimeEvolutionHisto::theLSPrescale
private

Definition at line 73 of file DTTimeEvolutionHisto.h.

int DTTimeEvolutionHisto::theMode
private

Definition at line 76 of file DTTimeEvolutionHisto.h.

float DTTimeEvolutionHisto::valueLastTimeSlot
private

Definition at line 69 of file DTTimeEvolutionHisto.h.