Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef SimCalorimetry_HcalTPGAlgos_interface_HcalFeatureBit_h_included
0002 #define SimCalorimetry_HcalTPGAlgos_interface_HcalFeatureBit_h_included 1
0003 
0004 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
0005 #include "DataFormats/HcalDigi/interface/HFDataFrame.h"
0006 #include "DataFormats/HcalDigi/interface/QIE10DataFrame.h"
0007 
0008 class HcalFeatureBit {
0009 public:
0010   HcalFeatureBit() {}
0011   virtual ~HcalFeatureBit() {
0012   }  //the virutal function is responcible for applying a cut based on a linear relationship of the energy
0013   //deposited in the short vers long fibers.
0014   virtual bool fineGrainbit(const QIE10DataFrame& short1,
0015                             const QIE10DataFrame& short2,
0016                             const QIE10DataFrame& long1,
0017                             const QIE10DataFrame& long2,
0018                             bool validShort1,
0019                             bool validShort2,
0020                             bool validLong1,
0021                             bool validLong2,
0022                             int idx) const = 0;
0023   virtual bool fineGrainbit(const HFDataFrame& shortDigi, const HFDataFrame& longDigi, int idx) const = 0;
0024 };
0025 #endif