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 {
20  public:
23 
24  /*
25  * @brief
26  * Celar all Pedestals
27  */
28  inline void resetPedestals() override { pedestals_.clear(); }
29 
30  /*
31  * @brief
32  * Set Pedestals
33  */
34  inline void setPedestals( ApvAnalysis::PedestalType &rInput) override
35  { pedestals_ = rInput; }
36 
37  /*
38  * @brief
39  * Update Pedestals with set of Raw Signals: plug
40  */
41  inline void updatePedestal( ApvAnalysis::RawSignalType &rInput) override {}
42 
43  /*
44  * @brief
45  * Retrieve Pedestals
46  */
47  inline ApvAnalysis::PedestalType pedestal() const override { return pedestals_; }
48 
49  /*
50  * @brief
51  * Retrieve Raw Noise
52  */
53  inline ApvAnalysis::PedestalType rawNoise() const override { return rawNoise_; }
54 
55  inline void setNoise( ApvAnalysis::PedestalType &rInput) override
56  { rawNoise_ = rInput; }
57 
58  /*
59  * @brief
60  * Request status flag update: plug
61  */
62  inline void updateStatus() override {}
63 
64  private:
67 };
68 
69 #endif // APVANALYSIS_TT6NTPEDESTALCALCULATOR_H
std::vector< float > PedestalType
Definition: ApvAnalysis.h:48
void updatePedestal(ApvAnalysis::RawSignalType &rInput) override
void setNoise(ApvAnalysis::PedestalType &rInput) override
ApvAnalysis::PedestalType pedestal() const override
ApvAnalysis::PedestalType pedestals_
void setPedestals(ApvAnalysis::PedestalType &rInput) override
ApvAnalysis::PedestalType rawNoise_
ApvAnalysis::PedestalType rawNoise() const override