Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:25

0001 #ifndef HCALADCSATURATIONFLAG_GUARD_H
0002 #define HCALADCSATURATIONFLAG_GUARD_H
0003 
0004 #include "DataFormats/HcalDigi/interface/HBHEDataFrame.h"
0005 #include "DataFormats/HcalRecHit/interface/HBHERecHit.h"
0006 #include "DataFormats/HcalDigi/interface/HODataFrame.h"
0007 #include "DataFormats/HcalRecHit/interface/HORecHit.h"
0008 #include "DataFormats/HcalDigi/interface/HFDataFrame.h"
0009 #include "DataFormats/HcalRecHit/interface/HFRecHit.h"
0010 #include "DataFormats/HcalDigi/interface/ZDCDataFrame.h"
0011 #include "DataFormats/HcalRecHit/interface/ZDCRecHit.h"
0012 
0013 /** HcalADCSaturationFlag
0014     Class sets the Saturation status bit if the ADC count for any time slice 
0015     within a digi is >= a certain value (SaturationLevel_).  This value is 
0016     user-configurable, but perhaps it should be hard-coded, as we know the
0017     QIE's have 7 bits (for a maximum ADC value of 2^7=127).  
0018     Is it better to hard-code to 127, or to allow the user to change it?
0019        
0020     \author J. Temple -- University of Maryland
0021 */
0022 
0023 class HcalADCSaturationFlag {
0024 public:
0025   HcalADCSaturationFlag();
0026   HcalADCSaturationFlag(int level);
0027   ~HcalADCSaturationFlag();
0028 
0029   void setSaturationFlag(HBHERecHit& rechit, const HBHEDataFrame& digi);
0030   void setSaturationFlag(HORecHit& rechit, const HODataFrame& digi);
0031   void setSaturationFlag(HFRecHit& rechit, const HFDataFrame& digi);
0032   void setSaturationFlag(ZDCRecHit& rechit, const ZDCDataFrame& digi);
0033 
0034 private:
0035   int SaturationLevel_;
0036 };
0037 
0038 #endif