Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:46

0001 #ifndef HBHENegativeFlag_H
0002 #define HBHENegativeFlag_H
0003 
0004 //---------------------------------------------------------------------------
0005 // Negative filter algorithms for HBHE noise flagging
0006 //---------------------------------------------------------------------------
0007 
0008 #include "DataFormats/HcalDigi/interface/HBHEDataFrame.h"
0009 #include "DataFormats/HcalRecHit/interface/HBHERecHit.h"
0010 #include "CalibFormats/HcalObjects/interface/HcalCalibrations.h"
0011 #include "CalibFormats/HcalObjects/interface/HcalCoderDb.h"
0012 #include "CondFormats/HcalObjects/interface/HBHENegativeEFilter.h"
0013 
0014 class HBHENegativeFlagSetter {
0015 public:
0016   inline HBHENegativeFlagSetter() : filter_(nullptr) {}
0017 
0018   inline void configFilter(const HBHENegativeEFilter* f) { filter_ = f; }
0019 
0020   void setPulseShapeFlags(HBHERecHit& hbhe,
0021                           const HBHEDataFrame& digi,
0022                           const HcalCoder& coder,
0023                           const HcalCalibrations& calib);
0024 
0025 private:
0026   const HBHENegativeEFilter* filter_;
0027 };
0028 
0029 #endif