CMS 3D CMS Logo

CalibrationScanAlgorithm.h
Go to the documentation of this file.
1 #ifndef DQM_SiStripCommissioningAnalysis_CalibrationScanAlgorithm_H
2 #define DQM_SiStripCommissioningAnalysis_CalibrationScanAlgorithm_H
3 
6 #include <vector>
7 #include <map>
8 #include "TGraph.h"
9 
11 class TH1;
12 class TF1;
13 
21 public:
23  ~CalibrationScanAlgorithm() override { ; }
24 
25  inline const Histo &histo(std::string &key, int &i) { return histo_[key][i]; }
26 
27  void tuneIndependently(const int &, const float &, const float &);
28  void tuneSimultaneously(const int &, const float &, const float &);
29  void fillTunedObservables(const int &);
30 
31 private:
33 
34  void extract(const std::vector<TH1 *> &) override;
35 
36  void analyse() override;
37 
38  void correctDistribution(TH1 *, const bool &) const;
39  float baseLine(TF1 *);
40  float turnOn(TF1 *, const float &);
41  float decayTime(TF1 *);
42 
44  std::map<std::string, std::vector<Histo> > histo_;
45 
48 
50  std::vector<int> scanned_isha_;
51  std::vector<int> scanned_vfs_;
52 };
53 
54 #endif // DQM_SiStripCommissioningAnalysis_CalibrationScanAlgorithm_H
CalibrationScanAlgorithm::scanned_isha_
std::vector< int > scanned_isha_
Definition: CalibrationScanAlgorithm.h:50
mps_fire.i
i
Definition: mps_fire.py:428
CalibrationScanAnalysis
Analysis for calibration scans.
Definition: CalibrationScanAnalysis.h:19
CalibrationScanAlgorithm::decayTime
float decayTime(TF1 *)
Definition: CalibrationScanAlgorithm.cc:346
tools.TF1
TF1
Definition: tools.py:23
CalibrationScanAlgorithm::histo
const Histo & histo(std::string &key, int &i)
Definition: CalibrationScanAlgorithm.h:25
CalibrationScanAlgorithm
Algorithm for calibration runs.
Definition: CalibrationScanAlgorithm.h:20
CalibrationScanAlgorithm::CalibrationScanAlgorithm
CalibrationScanAlgorithm()
Definition: CalibrationScanAlgorithm.h:32
CalibrationScanAlgorithm::scanned_vfs_
std::vector< int > scanned_vfs_
Definition: CalibrationScanAlgorithm.h:51
CalibrationScanAlgorithm::extract
void extract(const std::vector< TH1 * > &) override
Definition: CalibrationScanAlgorithm.cc:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CalibrationScanAlgorithm::~CalibrationScanAlgorithm
~CalibrationScanAlgorithm() override
Definition: CalibrationScanAlgorithm.h:23
CalibrationScanAlgorithm::histo_
std::map< std::string, std::vector< Histo > > histo_
Definition: CalibrationScanAlgorithm.h:44
edm::ParameterSet
Definition: ParameterSet.h:47
CalibrationScanAlgorithm::tuneIndependently
void tuneIndependently(const int &, const float &, const float &)
Definition: CalibrationScanAlgorithm.cc:361
CalibrationScanAlgorithm::cal_
CalibrationScanAnalysis * cal_
Definition: CalibrationScanAlgorithm.h:47
CalibrationScanAlgorithm::baseLine
float baseLine(TF1 *)
Definition: CalibrationScanAlgorithm.cc:323
CalibrationScanAlgorithm::analyse
void analyse() override
Definition: CalibrationScanAlgorithm.cc:82
CalibrationScanAlgorithm::tuneSimultaneously
void tuneSimultaneously(const int &, const float &, const float &)
Definition: CalibrationScanAlgorithm.cc:471
CommissioningAlgorithm
Definition: CommissioningAlgorithm.h:17
CalibrationScanAlgorithm::fillTunedObservables
void fillTunedObservables(const int &)
Definition: CalibrationScanAlgorithm.cc:565
CalibrationScanAlgorithm::correctDistribution
void correctDistribution(TH1 *, const bool &) const
Definition: CalibrationScanAlgorithm.cc:310
ParameterSet.h
crabWrapper.key
key
Definition: crabWrapper.py:19
CalibrationScanAlgorithm::turnOn
float turnOn(TF1 *, const float &)
Definition: CalibrationScanAlgorithm.cc:336
CommissioningAlgorithm.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
CommissioningAlgorithm::Histo
std::pair< TH1 *, std::string > Histo
Definition: CommissioningAlgorithm.h:25