CMS 3D CMS Logo

TT6NTPedestalCalculator.h
Go to the documentation of this file.
1 // Author : Samvel Khalatian (samvel at cern dot ch)
2 // Created: 05/21/08
3 
4 #ifndef APVANALYSIS_TT6NTPEDESTALCALCULATOR_H
5 #define APVANALYSIS_TT6NTPEDESTALCALCULATOR_H
6 
9 
10 /*
11  * @brief
12  * This is a replacement of TT6 Pedestal Calculator for NoiseTask source in
13  * DQM/SiStripCommissioningSources. It's main tasks:
14  * 1. Retrieve Pedestals from DB
15  * 2. Return these Pedestals on demand
16  * Note: no additional calculations performed
17  */
19 public:
22 
23  /*
24  * @brief
25  * Celar all Pedestals
26  */
27  inline void resetPedestals() override { pedestals_.clear(); }
28 
29  /*
30  * @brief
31  * Set Pedestals
32  */
33  inline void setPedestals(ApvAnalysis::PedestalType &rInput) override { pedestals_ = rInput; }
34 
35  /*
36  * @brief
37  * Update Pedestals with set of Raw Signals: plug
38  */
39  inline void updatePedestal(ApvAnalysis::RawSignalType &rInput) override {}
40 
41  /*
42  * @brief
43  * Retrieve Pedestals
44  */
45  inline ApvAnalysis::PedestalType pedestal() const override { return pedestals_; }
46 
47  /*
48  * @brief
49  * Retrieve Raw Noise
50  */
51  inline ApvAnalysis::PedestalType rawNoise() const override { return rawNoise_; }
52 
53  inline void setNoise(ApvAnalysis::PedestalType &rInput) override { rawNoise_ = rInput; }
54 
55  /*
56  * @brief
57  * Request status flag update: plug
58  */
59  inline void updateStatus() override {}
60 
61 private:
64 };
65 
66 #endif // APVANALYSIS_TT6NTPEDESTALCALCULATOR_H
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
ApvAnalysis::PedestalType rawNoise() const override
void updatePedestal(ApvAnalysis::RawSignalType &rInput) override
void setNoise(ApvAnalysis::PedestalType &rInput) override
ApvAnalysis::PedestalType pedestals_
void setPedestals(ApvAnalysis::PedestalType &rInput) override
ApvAnalysis::PedestalType pedestal() const override
ApvAnalysis::PedestalType rawNoise_