Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:39

0001 #ifndef ApvAnalysis_TT6APVMask_H
0002 #define ApvAnalysis_TT6APVMask_H
0003 
0004 #include "CalibTracker/SiStripAPVAnalysis/interface/TkApvMask.h"
0005 #include "CalibTracker/SiStripAPVAnalysis/interface/TkNoiseCalculator.h"
0006 /**
0007  * Concrete implementation of TkApvMask  for TT6.
0008  */
0009 
0010 class TT6ApvMask : public TkApvMask {
0011 public:
0012   // Use the first constructor, as the second one will soon
0013   // be obsolete.
0014   TT6ApvMask(int ctype, float ncut, float dcut, float tcut);
0015   ~TT6ApvMask() override;
0016 
0017   void setMask(const MaskType& in) override { theMask_ = in; }
0018   MaskType mask() override { return theMask_; }
0019 
0020   void calculateMask(const ApvAnalysis::PedestalType&) override;
0021 
0022 protected:
0023   bool defineNoisy(float avrg, float rms, float noise);
0024 
0025 private:
0026   MaskType theMask_;
0027   int theCalculationFlag_;
0028   float theNoiseCut_;
0029   float theDeadCut_;
0030   float theTruncationCut_;
0031 };
0032 
0033 #endif