CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 virtual void resetPedestals() { pedestals_.empty(); }
29 
30  /*
31  * @brief
32  * Set Pedestals
33  */
34  inline virtual void setPedestals( ApvAnalysis::PedestalType &rInput)
35  { pedestals_ = rInput; }
36 
37  /*
38  * @brief
39  * Update Pedestals with set of Raw Signals: plug
40  */
41  inline virtual void updatePedestal( ApvAnalysis::RawSignalType &rInput) {}
42 
43  /*
44  * @brief
45  * Retrieve Pedestals
46  */
47  inline virtual ApvAnalysis::PedestalType pedestal() const { return pedestals_; }
48 
49  /*
50  * @brief
51  * Retrieve Raw Noise
52  */
53  inline virtual ApvAnalysis::PedestalType rawNoise() const { return rawNoise_; }
54 
55  inline virtual void setNoise( ApvAnalysis::PedestalType &rInput)
56  { rawNoise_ = rInput; }
57 
58  /*
59  * @brief
60  * Request status flag update: plug
61  */
62  inline virtual void updateStatus() {}
63 
64  private:
67 };
68 
69 #endif // APVANALYSIS_TT6NTPEDESTALCALCULATOR_H
std::vector< float > PedestalType
Definition: ApvAnalysis.h:48
virtual void setNoise(ApvAnalysis::PedestalType &rInput)
virtual void setPedestals(ApvAnalysis::PedestalType &rInput)
ApvAnalysis::PedestalType pedestals_
virtual void updatePedestal(ApvAnalysis::RawSignalType &rInput)
virtual ApvAnalysis::PedestalType pedestal() const
ApvAnalysis::PedestalType rawNoise_
virtual ApvAnalysis::PedestalType rawNoise() const