Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 // Author : Samvel Khalatian (samvel at cern dot ch)
0002 // Created: 05/21/08
0003 
0004 #ifndef APVANALYSIS_TT6NTPEDESTALCALCULATOR_H
0005 #define APVANALYSIS_TT6NTPEDESTALCALCULATOR_H
0006 
0007 #include "CalibTracker/SiStripAPVAnalysis/interface/ApvAnalysis.h"
0008 #include "CalibTracker/SiStripAPVAnalysis/interface/TkPedestalCalculator.h"
0009 
0010 /*
0011  * @brief
0012  *   This is a replacement of TT6 Pedestal Calculator for NoiseTask source in
0013  *   DQM/SiStripCommissioningSources. It's main tasks:
0014  *     1. Retrieve Pedestals from DB
0015  *     2. Return these Pedestals on demand
0016  *   Note: no additional calculations performed
0017  */
0018 class TT6NTPedestalCalculator : public TkPedestalCalculator {
0019 public:
0020   TT6NTPedestalCalculator();
0021   ~TT6NTPedestalCalculator() override {}
0022 
0023   /*
0024      * @brief
0025      *   Celar all Pedestals
0026      */
0027   inline void resetPedestals() override { pedestals_.clear(); }
0028 
0029   /*
0030      * @brief
0031      *   Set Pedestals
0032      */
0033   inline void setPedestals(ApvAnalysis::PedestalType &rInput) override { pedestals_ = rInput; }
0034 
0035   /*
0036      * @brief
0037      *   Update Pedestals with set of Raw Signals: plug
0038      */
0039   inline void updatePedestal(ApvAnalysis::RawSignalType &rInput) override {}
0040 
0041   /*
0042      * @brief
0043      *   Retrieve Pedestals
0044      */
0045   inline ApvAnalysis::PedestalType pedestal() const override { return pedestals_; }
0046 
0047   /*
0048      * @brief
0049      *   Retrieve Raw Noise
0050      */
0051   inline ApvAnalysis::PedestalType rawNoise() const override { return rawNoise_; }
0052 
0053   inline void setNoise(ApvAnalysis::PedestalType &rInput) override { rawNoise_ = rInput; }
0054 
0055   /*
0056      * @brief
0057      *   Request status flag update: plug
0058      */
0059   inline void updateStatus() override {}
0060 
0061 private:
0062   ApvAnalysis::PedestalType pedestals_;
0063   ApvAnalysis::PedestalType rawNoise_;
0064 };
0065 
0066 #endif  // APVANALYSIS_TT6NTPEDESTALCALCULATOR_H