Definition at line 222 of file comparitor.cxx.
◆ bands() [1/3]
◆ bands() [2/3]
| bands::bands |
( |
const bands & | b | ) |
|
|
default |
◆ bands() [3/3]
| bands::bands |
( |
const std::vector< double > & | limits, |
|
|
const std::vector< std::string > & | labels ) |
|
inline |
Definition at line 231 of file comparitor.cxx.
233 { }
std::vector< std::string > m_labels
std::vector< double > m_limits
◆ operator=()
◆ range() [1/2]
| void bands::range |
( |
const std::string & | chain, |
|
|
TH1F * | h ) |
|
inline |
Definition at line 235 of file comparitor.cxx.
235 {
236 for (
size_t i=0 ;
i<
m_labels.size() ;
i++ ) {
238 }
240 }
void range(const std::string &chain, TH1F *h)
◆ range() [2/2]
| void bands::range |
( |
size_t | i, |
|
|
TH1F * | h ) |
|
inline |
Definition at line 243 of file comparitor.cxx.
243 {
244
245 double minx =
h->GetBinLowEdge(1);
246 double maxx =
h->GetBinLowEdge(
h->GetNbinsX()+1);
247
248 if ( i>=
m_limits.size() ) { maxx+=1; minx=maxx; }
250 else {
253 }
254
255
256 for (
int j=1 ; j<=
h->GetNbinsX() ; j++ ) {
257
258 std::cout << "range: " << j << "\tminx: " << minx << "\t" << maxx << std::endl;
259 if ( ! (
h->GetBinCenter(j)>=minx &&
h->GetBinCenter(j)<maxx ) ) {
260 h->SetBinContent(j,0);
262 }
263 }
264 }
◆ m_labels
| std::vector<std::string> bands::m_labels |
|
private |
◆ m_limits
| std::vector<double> bands::m_limits |
|
private |
The documentation for this class was generated from the following file: