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 (HORecHit &rechit, const HODataFrame &digi)
 
void setSaturationFlag (HFRecHit &rechit, const HFDataFrame &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 25 of file HcalADCSaturationFlag.h.

Constructor & Destructor Documentation

HcalADCSaturationFlag::HcalADCSaturationFlag ( )

Definition at line 29 of file HcalADCSaturationFlag.cc.

30 {
31  SaturationLevel_=127; // default saturation level (7-bit QIE)
32 }
HcalADCSaturationFlag::HcalADCSaturationFlag ( int  level)

Definition at line 34 of file HcalADCSaturationFlag.cc.

References hcalDigis_cfi::level.

35 {
36  SaturationLevel_=level; // allow user to specify saturation level
37 }
HcalADCSaturationFlag::~HcalADCSaturationFlag ( )

Definition at line 39 of file HcalADCSaturationFlag.cc.

40 {}

Member Function Documentation

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

Definition at line 42 of file HcalADCSaturationFlag.cc.

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

43 {
44  checkADCSaturation<HBHERecHit, HBHEDataFrame>(rechit, digi, SaturationLevel_);
45  return;
46 }
void HcalADCSaturationFlag::setSaturationFlag ( HORecHit rechit,
const HODataFrame digi 
)

Definition at line 48 of file HcalADCSaturationFlag.cc.

49 {
50  checkADCSaturation<HORecHit, HODataFrame>(rechit, digi, SaturationLevel_);
51  return;
52 }
void HcalADCSaturationFlag::setSaturationFlag ( HFRecHit rechit,
const HFDataFrame digi 
)

Definition at line 54 of file HcalADCSaturationFlag.cc.

55 {
56  checkADCSaturation<HFRecHit, HFDataFrame>(rechit, digi, SaturationLevel_);
57  return;
58 }
void HcalADCSaturationFlag::setSaturationFlag ( ZDCRecHit rechit,
const ZDCDataFrame digi 
)

Definition at line 60 of file HcalADCSaturationFlag.cc.

61 {
62  checkADCSaturation<ZDCRecHit, ZDCDataFrame>(rechit, digi, SaturationLevel_);
63  return;
64 }

Member Data Documentation

int HcalADCSaturationFlag::SaturationLevel_
private

Definition at line 37 of file HcalADCSaturationFlag.h.