#include "dqm_algorithms/TripleGaussCollFit.h"
#include <dqm_core/AlgorithmManager.h>
#include <dqm_core/exceptions.h>
#include <dqm_algorithms/tools/AlgorithmHelper.h>
#include "ers/ers.h"
#include "TH2.h"
#include "TH1.h"
#include "TF1.h"
#include "TClass.h"
#include <iostream>
#include <cmath>
Go to the source code of this file.
|
| #define | PARAM_IS_AREA |
| #define | ADJUST_VAL startVal = startVal * hist1D->GetBinWidth(1) / m_gaus3_fn->GetParameter(2) / 2.5066 |
|
| typedef std::map< std::string, double > | param_map |
| typedef std::map< std::string, double > | err_map |
|
| const char *const | fmt = "%0*d" |
◆ ADJUST_VAL
| #define ADJUST_VAL startVal = startVal * hist1D->GetBinWidth(1) / m_gaus3_fn->GetParameter(2) / 2.5066 |
◆ PARAM_IS_AREA
◆ err_map
| typedef std::map<std::string, double> err_map |
◆ param_map
| typedef std::map<std::string, double> param_map |
◆ getStartValue()
| Double_t getStartValue |
( |
TH1 * | thehist, |
|
|
Double_t | minx, |
|
|
Double_t | maxx ) |
Definition at line 70 of file TripleGaussCollFit.cxx.
70 {
71
73 int minidx = thehist->FindBin(minx),
maxidx = thehist->FindBin(maxx);
75 Double_t
val = thehist->GetBinContent(idx);
78 }
79
81}
◆ multLB_writeTags()
| void multLB_writeTags |
( |
std::vector< int > * | goodLB, |
|
|
dqm_core::Result * | result, |
|
|
const TH1 * | thehist ) |
Definition at line 86 of file TripleGaussCollFit.cxx.
86 {
87
88
89
91 std::string lb_str = "LB_";
92 int firstLB = (*goodLB)[0],
offset = 1;
93 unsigned int c = 1,
sz = goodLB->size(), psz =
static_cast<unsigned int>( std::log10(
sz))+1;
94 Double_t lo, hi;
95
97 if ((*goodLB)[c] == firstLB + offset)
99
100 else {
102
103
104 lo = thehist->GetXaxis()->GetBinLowEdge(firstLB);
105
106 if (lo == std::floor(lo))
107 sprintf(buf,
fmt, psz,
static_cast<Int_t
>(lo));
108 else
109 sprintf(buf,
fmt, psz,
static_cast<Int_t
>(std::floor(lo))+1);
110
113
114 hi = thehist->GetXaxis()->GetBinUpEdge(firstLB+offset-1);
115
116 if (hi == std::floor(hi))
117 sprintf(buf,
fmt, psz,
static_cast<Int_t
>(std::floor(hi))-1);
118 else
119 sprintf(buf,
fmt, psz,
static_cast<Int_t
>(std::floor(hi)));
120
123 firstLB = (*goodLB)[
c];
125 }
126
128 }
129
130 lo = thehist->GetXaxis()->GetBinLowEdge(firstLB);
131
132 if (lo == std::floor(lo))
133 sprintf(buf,
fmt, psz,
static_cast<Int_t
>(lo));
134 else
135 sprintf(buf,
fmt, psz,
static_cast<Int_t
>(std::floor(lo))+1);
136
138 lb_str += "_";
139 hi = thehist->GetXaxis()->GetBinUpEdge(firstLB+offset-1);
140 if (hi == std::floor(hi))
141 sprintf(buf,
fmt, psz,
static_cast<Int_t
>(std::floor(hi))-1);
142 else
143 sprintf(buf,
fmt, psz,
static_cast<Int_t
>(std::floor(hi)));
145 result->tags_ [lb_str] = 1.0;
146
147}
◆ fmt
| const char* const fmt = "%0*d" |