CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalADCSaturationFlag Class Reference

#include <HcalADCSaturationFlag.h>

List of all members.

Public Member Functions

 HcalADCSaturationFlag ()
 HcalADCSaturationFlag (int level)
void setSaturationFlag (ZDCRecHit &rechit, const ZDCDataFrame &digi)
void setSaturationFlag (HORecHit &rechit, const HODataFrame &digi)
void setSaturationFlag (HBHERecHit &rechit, const HBHEDataFrame &digi)
void setSaturationFlag (HFRecHit &rechit, const HFDataFrame &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?

Date:
2010/10/22 03:02:53
Revision:
1.2
Author:
J. Temple -- University of Maryland

Definition at line 27 of file HcalADCSaturationFlag.h.


Constructor & Destructor Documentation

HcalADCSaturationFlag::HcalADCSaturationFlag ( )

Definition at line 29 of file HcalADCSaturationFlag.cc.

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

Definition at line 34 of file HcalADCSaturationFlag.cc.

References testEve_cfg::level.

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

Definition at line 39 of file HcalADCSaturationFlag.cc.

{}

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().

{
  checkADCSaturation<HBHERecHit, HBHEDataFrame>(rechit, digi, SaturationLevel_);
  return;
}
void HcalADCSaturationFlag::setSaturationFlag ( ZDCRecHit rechit,
const ZDCDataFrame digi 
)

Definition at line 60 of file HcalADCSaturationFlag.cc.

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

Definition at line 54 of file HcalADCSaturationFlag.cc.

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

Definition at line 48 of file HcalADCSaturationFlag.cc.

{
  checkADCSaturation<HORecHit, HODataFrame>(rechit, digi, SaturationLevel_);
  return;
}

Member Data Documentation

Definition at line 39 of file HcalADCSaturationFlag.h.