CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edm::PoolOutputModule::SpecialSplitLevelForBranch Struct Reference

#include <PoolOutputModule.h>

Public Member Functions

std::regex convert (std::string const &iGlobBranchExpression) const
 
bool match (std::string const &iBranchName) const
 
 SpecialSplitLevelForBranch (std::string const &iBranchName, int iSplitLevel)
 

Public Attributes

std::regex branch_
 
int splitLevel_
 

Detailed Description

Definition at line 110 of file PoolOutputModule.h.

Constructor & Destructor Documentation

edm::PoolOutputModule::SpecialSplitLevelForBranch::SpecialSplitLevelForBranch ( std::string const &  iBranchName,
int  iSplitLevel 
)
inline

Definition at line 111 of file PoolOutputModule.h.

References fileCollector::convert(), edm::match(), and AlCaHLTBitMon_QueryRunRegistry::string.

112  : branch_(convert(iBranchName)),
113  splitLevel_(iSplitLevel < 1 ? 1 : iSplitLevel) //minimum is 1
114  {}
std::regex convert(std::string const &iGlobBranchExpression) const

Member Function Documentation

std::regex edm::PoolOutputModule::SpecialSplitLevelForBranch::convert ( std::string const &  iGlobBranchExpression) const

Definition at line 171 of file PoolOutputModule.cc.

References AlCaHLTBitMon_QueryRunRegistry::string, and tmp.

171  {
172  std::string tmp(iGlobBranchExpression);
173  boost::replace_all(tmp, "*", ".*");
174  boost::replace_all(tmp, "?", ".");
175  return std::regex(tmp);
176  }
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
bool edm::PoolOutputModule::SpecialSplitLevelForBranch::match ( std::string const &  iBranchName) const
inline

Definition at line 167 of file PoolOutputModule.cc.

167  {
168  return std::regex_match(iBranchName, branch_);
169  }

Member Data Documentation

std::regex edm::PoolOutputModule::SpecialSplitLevelForBranch::branch_

Definition at line 118 of file PoolOutputModule.h.

Referenced by tree.Tree::var(), and tree.Tree::vector().

int edm::PoolOutputModule::SpecialSplitLevelForBranch::splitLevel_

Definition at line 119 of file PoolOutputModule.h.