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 155 of file EdmEventSize.cc.

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

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

155  {
156  co << br.name << " " << br.uncompr_size << " " << br.compr_size << "\n";
157  }
__host__ __device__ VT * co
Definition: prefixScan.h:47

◆ shorterName()

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

Definition at line 132 of file EdmEventSize.cc.

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

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

132  {
133  size_t b = br.fullName.find('_');
134  size_t e = br.fullName.rfind('_');
135  if (b == e)
136  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)
143  br.name.replace(e, 1, ":");
144  // add the type name
145  br.name.append(" (" + br.fullName.substr(0, b) + ")");
146  }
147  }
double b
Definition: hdecay.h:118