Public Member Functions | |
void | fill (EdmEventSize::BranchRecord const &br) |
void | finalize () |
Hist (int itop) | |
Public Attributes | |
TH1F | compressed |
TAxis * | cxAxis |
int | top |
TH1F | uncompressed |
TAxis * | uxAxis |
int | x |
Definition at line 174 of file EdmEventSize.cc.
perftools::detail::Hist::Hist | ( | int | itop | ) | [inline, explicit] |
Definition at line 176 of file EdmEventSize.cc.
: top(itop), uncompressed( "uncompressed", "branch sizes", top, -0.5, - 0.5 + top ), compressed( "compressed", "branch sizes", top, -0.5, - 0.5 + top ), cxAxis(compressed.GetXaxis()), uxAxis(uncompressed.GetXaxis()), x(0) {}
void perftools::detail::Hist::fill | ( | EdmEventSize::BranchRecord const & | br | ) | [inline] |
Definition at line 184 of file EdmEventSize.cc.
References perftools::EdmEventSize::BranchRecord::compr_size, compressed, cxAxis, perftools::EdmEventSize::BranchRecord::name, top, perftools::EdmEventSize::BranchRecord::uncompr_size, uncompressed, uxAxis, and x.
Referenced by perftools::EdmEventSize::produceHistos().
void perftools::detail::Hist::finalize | ( | void | ) | [inline] |
Definition at line 194 of file EdmEventSize.cc.
References compressed, cxAxis, i, max(), top, uncompressed, and uxAxis.
Referenced by perftools::EdmEventSize::produceHistos().
{ double mn = std::numeric_limits<double>::max(); for( int i = 1; i <= top; ++i ) { double cm = compressed.GetMinimum( i ), um = uncompressed.GetMinimum( i ); if ( cm > 0 && cm < mn ) mn = cm; if ( um > 0 && um < mn ) mn = um; } mn *= 0.8; double mx = max( compressed.GetMaximum(), uncompressed.GetMaximum() ); mx *= 1.2; uncompressed.SetMinimum( mn ); uncompressed.SetMaximum( mx ); compressed.SetMinimum( mn ); // compressed.SetMaximum( mx ); cxAxis->SetLabelOffset( -0.32 ); cxAxis->LabelsOption( "v" ); cxAxis->SetLabelSize( 0.03 ); uxAxis->SetLabelOffset( -0.32 ); uxAxis->LabelsOption( "v" ); uxAxis->SetLabelSize( 0.03 ); compressed.GetYaxis()->SetTitle( "Bytes" ); compressed.SetFillColor( kBlue ); compressed.SetLineWidth( 2 ); uncompressed.GetYaxis()->SetTitle( "Bytes" ); uncompressed.SetFillColor( kRed ); uncompressed.SetLineWidth( 2 ); }
Definition at line 225 of file EdmEventSize.cc.
Referenced by fill(), finalize(), and perftools::EdmEventSize::produceHistos().
Definition at line 226 of file EdmEventSize.cc.
Referenced by fill(), and finalize().
Definition at line 223 of file EdmEventSize.cc.
Referenced by fill(), and finalize().
Definition at line 224 of file EdmEventSize.cc.
Referenced by fill(), finalize(), and perftools::EdmEventSize::produceHistos().
Definition at line 227 of file EdmEventSize.cc.
Referenced by fill(), and finalize().
Definition at line 229 of file EdmEventSize.cc.
Referenced by fill().