CMS 3D CMS Logo

EdmEventSize.cc File Reference

#include "PerfTools/EdmEvent/interface/EdmEventSize.h"
#include <valarray>
#include <functional>
#include <algorithm>
#include <boost/bind.hpp>
#include <ostream>
#include <limits>
#include <assert.h>
#include "TROOT.h"
#include "TFile.h"
#include "TTree.h"
#include "TStyle.h"
#include "TObjArray.h"
#include "TBranch.h"
#include "TH1.h"
#include "TCanvas.h"
#include "Riostream.h"
#include "RVersion.h"
#include "TBufferFile.h"

Go to the source code of this file.

Namespaces

namespace  perftools
namespace  perftools::detail

Classes

struct  perftools::detail::Hist

Typedefs

typedef TBufferFile PerfRootBuffer
typedef std::valarray< size_t > size_type

Functions

void perftools::detail::dump (ostream &co, EdmEventSize::BranchRecord const &br)
size_type getBasketSize (TBranch *b)
size_type getBasketSize (TObjArray *branches)
size_type getBasketSize (TBranch *)
size_type getTotalSize (TBranch *br)
void perftools::detail::shorterName (EdmEventSize::BranchRecord &br)


Typedef Documentation

typedef TBufferFile PerfRootBuffer

Definition at line 29 of file EdmEventSize.cc.

typedef std::valarray<size_t> size_type [static]

Definition at line 36 of file EdmEventSize.cc.


Function Documentation

size_type @11501::getBasketSize ( TBranch *  b  )  [static]

Definition at line 51 of file EdmEventSize.cc.

References getBasketSize(), and HLT_VtxMuL3::result.

00052                                         {
00053     size_type result(size_t(0),2);
00054     if ( b != 0 ) {
00055       if ( b->GetZipBytes() > 0 ) {
00056         result[0]  = b->GetTotBytes();  result[1] = b->GetZipBytes();
00057       } else {
00058         result[0] = b->GetTotalSize(); result[1] = b->GetTotalSize();
00059       }
00060       result += getBasketSize( b->GetListOfBranches() );
00061     }
00062     return result;

size_type @11501::getBasketSize ( TObjArray *  branches  )  [static]

Definition at line 40 of file EdmEventSize.cc.

References b, getBasketSize(), i, n, and HLT_VtxMuL3::result.

00041                                                  {
00042     size_type result(size_t(0),2);
00043     size_t n = branches->GetEntries();
00044     for( size_t i = 0; i < n; ++ i ) {
00045       TBranch * b = dynamic_cast<TBranch*>( branches->At( i ) );
00046       assert( b != 0 );
00047       result += getBasketSize(b);
00048     }
00049     return result;

size_type @11501::getBasketSize ( TBranch *   )  [static]

Referenced by getBasketSize(), and getTotalSize().

size_type @11501::getTotalSize ( TBranch *  br  )  [static]

Definition at line 65 of file EdmEventSize.cc.

References getBasketSize(), and size.

Referenced by perftools::EdmEventSize::parseFile().

00066                                         {
00067     PerfRootBuffer buf( TBuffer::kWrite, 10000 );
00068     TBranch::Class()->WriteBuffer( buf, br );
00069     size_type size = getBasketSize(br);
00070     if ( br->GetZipBytes() > 0 )
00071       size[0] += buf.Length();
00072     return size;


Generated on Tue Jun 9 17:54:43 2009 for CMSSW by  doxygen 1.5.4