ATLAS_2012_I1094061::HistoPair Struct Reference
Collaboration diagram for ATLAS_2012_I1094061::HistoPair:
![]()
Detailed DescriptionLittle container to hold a pair of foreground and background histos and then divide them at the end of the analysis Definition at line 15 of file ATLAS_2012_I1094061.cc. Member Enumeration Documentation
Definition at line 16 of file ATLAS_2012_I1094061.cc. { FOREGROUND, BACKGROUND }; Constructor & Destructor Documentation
Definition at line 18 of file ATLAS_2012_I1094061.cc. : _analysis(0), _h_foreground(0), _h_background(0), _d_final(0) { } Member Function DocumentationDefinition at line 44 of file ATLAS_2012_I1094061.cc. References ATLAS_2012_I1094061::HistoPair::BACKGROUND, ATLAS_2012_I1094061::HistoPair::fillBackground(), ATLAS_2012_I1094061::HistoPair::fillForeground(), and ATLAS_2012_I1094061::HistoPair::FOREGROUND. Referenced by ATLAS_2012_I1094061::fillHistos(). { switch(type){ case FOREGROUND: fillForeground(value, weight); break; case BACKGROUND: fillBackground(value, weight); break; } }
Definition at line 39 of file ATLAS_2012_I1094061.cc. References ATLAS_2012_I1094061::HistoPair::_h_background. Referenced by ATLAS_2012_I1094061::HistoPair::fill(). { _h_background->fill(value, weight); _h_background->fill(-value, weight); }
Definition at line 34 of file ATLAS_2012_I1094061.cc. References ATLAS_2012_I1094061::HistoPair::_h_foreground. Referenced by ATLAS_2012_I1094061::HistoPair::fill(). { _h_foreground->fill(value, weight); _h_foreground->fill(-value, weight); }
Definition at line 56 of file ATLAS_2012_I1094061.cc. References ATLAS_2012_I1094061::HistoPair::_analysis, ATLAS_2012_I1094061::HistoPair::_ds, ATLAS_2012_I1094061::HistoPair::_h_background, ATLAS_2012_I1094061::HistoPair::_h_foreground, ATLAS_2012_I1094061::HistoPair::_xaxis, ATLAS_2012_I1094061::HistoPair::_yaxis, Analysis::divide(), Analysis::histoPath(), and Rivet::Cuts::pt. Referenced by ATLAS_2012_I1094061::finalize(). { _h_foreground->scale(1. / wgtSum); _h_background->scale(1. / bgWeight); string histoPath = _analysis->histoPath(_ds, _xaxis, _yaxis); AIDA::IDataPointSet *final = _analysis->histogramFactory().divide(histoPath, *_h_foreground, *_h_background); for (int ii=0; ii!= final->size(); ++ii) { AIDA::IDataPoint* pt = final->point(ii); double y = pt->coordinate(1)->value(); pt->coordinate(1)->setValue(y-(avNTracks - 1)); } _analysis->histogramFactory().destroy(_h_foreground); _analysis->histogramFactory().destroy(_h_background); }
Definition at line 22 of file ATLAS_2012_I1094061.cc. References ATLAS_2012_I1094061::HistoPair::_analysis, ATLAS_2012_I1094061::HistoPair::_ds, ATLAS_2012_I1094061::HistoPair::_h_background, ATLAS_2012_I1094061::HistoPair::_h_foreground, ATLAS_2012_I1094061::HistoPair::_s_counter, ATLAS_2012_I1094061::HistoPair::_xaxis, and ATLAS_2012_I1094061::HistoPair::_yaxis. Referenced by ATLAS_2012_I1094061::init(). { _ds = ds; _xaxis = xaxis; _yaxis = yaxis; _analysis = analysis; ++HistoPair::_s_counter; const BinEdges& edges = _analysis->binEdges(_ds, _xaxis, _yaxis); string sCount = boost::lexical_cast<string>(HistoPair::_s_counter); _h_foreground = analysis->bookHistogram1D("tmpForeground" + sCount, edges); _h_background = analysis->bookHistogram1D("tmpBackground" + sCount, edges); } Member Data Documentation
Definition at line 79 of file ATLAS_2012_I1094061.cc. Referenced by ATLAS_2012_I1094061::HistoPair::finalize(), and ATLAS_2012_I1094061::HistoPair::init().
Definition at line 83 of file ATLAS_2012_I1094061.cc.
Definition at line 77 of file ATLAS_2012_I1094061.cc. Referenced by ATLAS_2012_I1094061::HistoPair::finalize(), and ATLAS_2012_I1094061::HistoPair::init().
Definition at line 82 of file ATLAS_2012_I1094061.cc. Referenced by ATLAS_2012_I1094061::HistoPair::fillBackground(), ATLAS_2012_I1094061::HistoPair::finalize(), and ATLAS_2012_I1094061::HistoPair::init().
Definition at line 81 of file ATLAS_2012_I1094061.cc. Referenced by ATLAS_2012_I1094061::HistoPair::fillForeground(), ATLAS_2012_I1094061::HistoPair::finalize(), and ATLAS_2012_I1094061::HistoPair::init().
Definition at line 85 of file ATLAS_2012_I1094061.cc. Referenced by ATLAS_2012_I1094061::HistoPair::init().
Definition at line 77 of file ATLAS_2012_I1094061.cc. Referenced by ATLAS_2012_I1094061::HistoPair::finalize(), and ATLAS_2012_I1094061::HistoPair::init().
Definition at line 77 of file ATLAS_2012_I1094061.cc. Referenced by ATLAS_2012_I1094061::HistoPair::finalize(), and ATLAS_2012_I1094061::HistoPair::init(). The documentation for this struct was generated from the following file: Generated on Thu Mar 10 2016 08:30:30 for The Rivet MC analysis system by ![]() |