CMS 3D CMS Logo

Classes | Functions
perftools::detail Namespace Reference

Classes

struct  Hist
 

Functions

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

Function Documentation

◆ dump()

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

Definition at line 156 of file EdmEventSize.cc.

156  {
157  co << br.name << " " << br.uncompr_size << " " << br.compr_size << "\n";
158  }

References beamvalidation::br, and cms::cuda::co.

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

◆ shorterName()

void perftools::detail::shorterName ( EdmEventSize::BranchRecord br)

Definition at line 133 of file EdmEventSize.cc.

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

References b, beamvalidation::br, and MillePedeFileConverter_cfg::e.

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

cms::cuda::co
T *__restrict__ co
Definition: prefixScan.h:46
b
double b
Definition: hdecay.h:118
beamvalidation.br
br
Definition: beamvalidation.py:398
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37