CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
perftools::detail Namespace Reference

Classes

struct  Hist
 

Functions

void dump (ostream &co, EdmEventSize::BranchRecord const &br)
 
void shorterName (EdmEventSize::BranchRecord &br)
 

Function Documentation

void perftools::detail::dump ( ostream &  co,
EdmEventSize::BranchRecord const &  br 
)

Definition at line 159 of file EdmEventSize.cc.

References perftools::EdmEventSize::BranchRecord::compr_size, perftools::EdmEventSize::BranchRecord::name, and perftools::EdmEventSize::BranchRecord::uncompr_size.

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

159  {
160  co << br.name << " " << br.compr_size << " " << br.uncompr_size << "\n";
161  }
void perftools::detail::shorterName ( EdmEventSize::BranchRecord &  br)

Definition at line 133 of file EdmEventSize.cc.

References ExpressReco_HICollisions_FallBack::e, perftools::EdmEventSize::BranchRecord::fullName, and perftools::EdmEventSize::BranchRecord::name.

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

133  {
134  size_t b = br.fullName.find('_');
135  size_t e = br.fullName.rfind('_');
136  if (b==e) br.name=br.fullName;
137  else {
138  // remove type and process
139  br.name = br.fullName.substr(b+1,e-b-1);
140  // change label separator in :
141  e = br.name.rfind('_');
142  if (e!=std::string::npos) br.name.replace(e,1,":");
143  // add the type name
144  br.name.append(" ("+br.fullName.substr(0,b)+")");
145  }
146  }
double b
Definition: hdecay.h:120