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
|
#ifndef DQM_SiStripCommissioningAnalysis_SamplingAlgorithm_H
#define DQM_SiStripCommissioningAnalysis_SamplingAlgorithm_H
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DQM/SiStripCommissioningAnalysis/interface/CommissioningAlgorithm.h"
#include <vector>
class SamplingAnalysis;
class TProfile;
class TF1;
/**
@class SamplingAlgorithm
@author C. Delaere
@brief Algorithm for latency run
*/
class SamplingAlgorithm : public CommissioningAlgorithm {
public:
SamplingAlgorithm(const edm::ParameterSet& pset, SamplingAnalysis* const, uint32_t latencyCode = 0);
~SamplingAlgorithm() override { ; }
inline const Histo& histo() const;
private:
SamplingAlgorithm() { ; }
void extract(const std::vector<TH1*>&) override;
void analyse() override;
void pruneProfile(TProfile* profile) const;
void correctBinning(TProfile* prof) const;
void correctProfile(TProfile* profile, float SoNcut = 3.) const;
private:
/** pulse shape*/
Histo histo_;
/** Fitter in peak and deconvolution mode */
TF1* deconv_fitter_;
TF1* peak_fitterA_;
TF1* peak_fitterB_;
/** latency code for fine delay scans */
uint32_t latencyCode_;
/** SamplingAnalysis object */
SamplingAnalysis* samp_;
};
#endif // DQM_SiStripCommissioningAnalysis_SamplingAlgorithm_H
|