Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DIGIECAL_EBDATAFRAME_H
0002 #define DIGIECAL_EBDATAFRAME_H
0003 
0004 #include "DataFormats/EcalDetId/interface/EBDetId.h"
0005 #include "DataFormats/EcalDigi/interface/EcalDataFrame.h"
0006 #include <iosfwd>
0007 
0008 /** \class EBDataFrame
0009       
0010 */
0011 class EBDataFrame : public EcalDataFrame {
0012 public:
0013   typedef EBDetId key_type;  ///< For the sorted collection
0014   typedef EcalDataFrame Base;
0015 
0016   EBDataFrame() {}
0017   // EBDataFrame(DetId i) :  Base(i) {}
0018   EBDataFrame(edm::DataFrame const& base) : Base(base) {}
0019   EBDataFrame(EcalDataFrame const& base) : Base(base) {}
0020 
0021   /** estimator for a signal being a spike
0022    *  based on ratios between 4th, 5th and 6th sample
0023    */
0024   float spikeEstimator() const;
0025 
0026   ~EBDataFrame() override {}
0027 
0028   key_type id() const { return Base::id(); }
0029 };
0030 
0031 std::ostream& operator<<(std::ostream&, const EBDataFrame&);
0032 
0033 #endif