CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SiStripPI::Monitor1D Class Reference

#include <SiStripPayloadInspectorHelper.h>

Public Member Functions

void Fill (int apv, int det, double vx)
 
void flush ()
 
TH1F & getHist ()
 
TH1F & hist ()
 
 Monitor1D (OpMode mode, const char *name, const char *title, int nbinsx, double xmin, double xmax)
 
 Monitor1D ()
 
 ~Monitor1D ()
 

Private Attributes

Entry entry_
 
OpMode mode_
 
TH1F obj_
 
int prev_apv_ = 0
 
int prev_det_ = 0
 

Detailed Description

Definition at line 59 of file SiStripPayloadInspectorHelper.h.

Constructor & Destructor Documentation

SiStripPI::Monitor1D::Monitor1D ( OpMode  mode,
const char *  name,
const char *  title,
int  nbinsx,
double  xmin,
double  xmax 
)
inline
SiStripPI::Monitor1D::Monitor1D ( )
inline
SiStripPI::Monitor1D::~Monitor1D ( )
inline

Definition at line 66 of file SiStripPayloadInspectorHelper.h.

66 {}

Member Function Documentation

void SiStripPI::Monitor1D::Fill ( int  apv,
int  det,
double  vx 
)
inline

Definition at line 68 of file SiStripPayloadInspectorHelper.h.

References SiStripPI::APV_BASED, SiStripPI::MODULE_BASED, and SiStripPI::STRIP_BASED.

68  {
69  switch (mode_) {
70  case (OpMode::APV_BASED):
71  if (!((apv == prev_apv_ && det == prev_det_) || prev_apv_ == 0)) {
72  flush();
73  }
74  prev_apv_ = apv;
75  prev_det_ = det;
76  break;
77  case (OpMode::MODULE_BASED):
78  if (!(det == prev_det_ || prev_det_ == 0)) {
79  flush();
80  }
81  prev_det_ = det;
82  break;
83  case (OpMode::STRIP_BASED):
84  flush();
85  break;
86  }
87  entry_.add(vx);
88  }
void SiStripPI::Monitor1D::flush ( )
inline
TH1F& SiStripPI::Monitor1D::getHist ( )
inline

Definition at line 100 of file SiStripPayloadInspectorHelper.h.

TH1F& SiStripPI::Monitor1D::hist ( )
inline

Definition at line 95 of file SiStripPayloadInspectorHelper.h.

Member Data Documentation

Entry SiStripPI::Monitor1D::entry_
private

Definition at line 104 of file SiStripPayloadInspectorHelper.h.

OpMode SiStripPI::Monitor1D::mode_
private

Definition at line 105 of file SiStripPayloadInspectorHelper.h.

TH1F SiStripPI::Monitor1D::obj_
private

Definition at line 106 of file SiStripPayloadInspectorHelper.h.

int SiStripPI::Monitor1D::prev_apv_ = 0
private

Definition at line 103 of file SiStripPayloadInspectorHelper.h.

int SiStripPI::Monitor1D::prev_det_ = 0
private

Definition at line 103 of file SiStripPayloadInspectorHelper.h.