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