CMS 3D CMS Logo

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

#include <HcalADCSaturationFlag.h>

Public Member Functions

 HcalADCSaturationFlag ()
 
 HcalADCSaturationFlag (int level)
 
void setSaturationFlag (HBHERecHit &rechit, const HBHEDataFrame &digi)
 
void setSaturationFlag (HFRecHit &rechit, const HFDataFrame &digi)
 
void setSaturationFlag (HORecHit &rechit, const HODataFrame &digi)
 
void setSaturationFlag (ZDCRecHit &rechit, const ZDCDataFrame &digi)
 
 ~HcalADCSaturationFlag ()
 

Private Attributes

int SaturationLevel_
 

Detailed Description

HcalADCSaturationFlag Class sets the Saturation status bit if the ADC count for any time slice within a digi is >= a certain value (SaturationLevel_). This value is user-configurable, but perhaps it should be hard-coded, as we know the QIE's have 7 bits (for a maximum ADC value of 2^7=127).
Is it better to hard-code to 127, or to allow the user to change it?

Author
J. Temple – University of Maryland

Definition at line 23 of file HcalADCSaturationFlag.h.

Constructor & Destructor Documentation

◆ HcalADCSaturationFlag() [1/2]

HcalADCSaturationFlag::HcalADCSaturationFlag ( )

Definition at line 23 of file HcalADCSaturationFlag.cc.

23  {
24  SaturationLevel_ = 127; // default saturation level (7-bit QIE)
25 }

◆ HcalADCSaturationFlag() [2/2]

HcalADCSaturationFlag::HcalADCSaturationFlag ( int  level)

Definition at line 27 of file HcalADCSaturationFlag.cc.

27  {
28  SaturationLevel_ = level; // allow user to specify saturation level
29 }

References personalPlayback::level.

◆ ~HcalADCSaturationFlag()

HcalADCSaturationFlag::~HcalADCSaturationFlag ( )

Definition at line 31 of file HcalADCSaturationFlag.cc.

31 {}

Member Function Documentation

◆ setSaturationFlag() [1/4]

void HcalADCSaturationFlag::setSaturationFlag ( HBHERecHit rechit,
const HBHEDataFrame digi 
)

Definition at line 33 of file HcalADCSaturationFlag.cc.

33  {
34  checkADCSaturation<HBHERecHit, HBHEDataFrame>(rechit, digi, SaturationLevel_);
35  return;
36 }

Referenced by ZdcHitReconstructor::produce(), and HcalHitReconstructor::produce().

◆ setSaturationFlag() [2/4]

void HcalADCSaturationFlag::setSaturationFlag ( HFRecHit rechit,
const HFDataFrame digi 
)

Definition at line 43 of file HcalADCSaturationFlag.cc.

43  {
44  checkADCSaturation<HFRecHit, HFDataFrame>(rechit, digi, SaturationLevel_);
45  return;
46 }

◆ setSaturationFlag() [3/4]

void HcalADCSaturationFlag::setSaturationFlag ( HORecHit rechit,
const HODataFrame digi 
)

Definition at line 38 of file HcalADCSaturationFlag.cc.

38  {
39  checkADCSaturation<HORecHit, HODataFrame>(rechit, digi, SaturationLevel_);
40  return;
41 }

◆ setSaturationFlag() [4/4]

void HcalADCSaturationFlag::setSaturationFlag ( ZDCRecHit rechit,
const ZDCDataFrame digi 
)

Definition at line 48 of file HcalADCSaturationFlag.cc.

48  {
49  checkADCSaturation<ZDCRecHit, ZDCDataFrame>(rechit, digi, SaturationLevel_);
50  return;
51 }

Member Data Documentation

◆ SaturationLevel_

int HcalADCSaturationFlag::SaturationLevel_
private

Definition at line 35 of file HcalADCSaturationFlag.h.

personalPlayback.level
level
Definition: personalPlayback.py:22
HcalADCSaturationFlag::SaturationLevel_
int SaturationLevel_
Definition: HcalADCSaturationFlag.h:35