CMS 3D CMS Logo

Namespaces | Classes | Typedefs | Functions | Variables
fwlite Namespace Reference

Namespaces

 internal
 

Classes

class  AnalyzerWrapper
 
class  BranchMapReader
 
class  ChainEvent
 
class  DataGetterHelper
 
class  EntryFinder
 
class  ErrorThrower
 
class  ESHandle
 
class  Event
 
class  EventBase
 
class  EventContainer
 
class  EventHistoryGetter
 
class  EventSelector
 
class  EventSetup
 
class  FWLiteEventFinder
 
class  GetterOperate
 
class  Handle
 
class  HistoryGetterBase
 
class  InputSource
 
class  IOVSyncValue
 
class  LumiHistoryGetter
 
class  LuminosityBlock
 
class  LuminosityBlockBase
 
class  MultiChainEvent
 
class  ObjectCountSelector
 
class  OutputFiles
 
class  Record
 
class  RecordWriter
 
class  Run
 
class  RunBase
 
class  RunFactory
 
class  RunHistoryGetter
 
class  RunLumiSelector
 
class  Scanner
 fwlite::Scanner<C>, a way to inspect or plots elements of a collection C by using the StringParser. More...
 
class  TFileService
 

Typedefs

typedef unsigned int RecordID
 

Functions

std::shared_ptr< cms::Exceptioneshandle_not_set_exception ()
 
static TBranch * findBranch (TTree *iTree, std::string const &iMainLabels, std::string const &iProcess)
 
std::string format_type_to_mangled (const std::string &)
 given a C++ class name returned a mangled name More...
 
edm::EDProductGetter const * setRefStreamer (edm::EDProductGetter const *ep)
 
void staticAssert ()
 
std::string unformat_mangled_to_type (const std::string &)
 given a mangled name return the C++ class name More...
 

Variables

static internal::Data branchNotFound {}
 
static const char kEmptyString [1] = {0}
 

Typedef Documentation

◆ RecordID

typedef unsigned int fwlite::RecordID

Definition at line 65 of file EventSetup.h.

Function Documentation

◆ eshandle_not_set_exception()

std::shared_ptr< cms::Exception > fwlite::eshandle_not_set_exception ( )

Definition at line 27 of file ESHandle.cc.

References doNotDelete(), and s_exc.

27  {
28  return std::shared_ptr<cms::Exception>(&s_exc, doNotDelete);
29  }
static cms::Exception s_exc("ESHandleUnset", "The ESHandle is being accessed without ever being set by a Record")
static void doNotDelete(cms::Exception *)
Definition: ESHandle.cc:24

◆ findBranch()

static TBranch* fwlite::findBranch ( TTree *  iTree,
std::string const &  iMainLabels,
std::string const &  iProcess 
)
static

Definition at line 105 of file DataGetterHelper.cc.

References electrons_cff::branchName, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by fwlite::DataGetterHelper::getBranchDataFor().

105  {
106  std::string branchName(iMainLabels);
107  branchName += iProcess;
108  //branchName+=".obj";
109  branchName += ".";
110  return iTree->GetBranch(branchName.c_str());
111  }

◆ format_type_to_mangled()

std::string fwlite::format_type_to_mangled ( const std::string &  iType)

given a C++ class name returned a mangled name

Definition at line 38 of file format_type_name.cc.

References s_symbolDemangled, s_symbolMangled, s_symbolToMangledSize, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by fwlite::Record::get(), fwlite::EventSetup::recordID(), fwlite::RecordWriter::RecordWriter(), and fwlite::RecordWriter::update().

38  {
39  std::string returnValue;
40  returnValue.append(static_cast<std::string::size_type>(iType.size() * 2), ' ');
41  std::string::size_type fromIndex = 0;
42  std::string::size_type toIndex = 0;
43  size_t sIndex = 0;
44  for (; fromIndex < iType.size(); ++fromIndex) {
45  bool foundMatch = false;
46  for (sIndex = 0; sIndex < s_symbolToMangledSize;) {
47  const std::string& symbol = s_symbolDemangled[sIndex];
48  if (iType.substr(fromIndex, symbol.size()) == symbol) {
49  foundMatch = true;
50  break;
51  }
52  ++sIndex;
53  }
54  if (!foundMatch) {
55  returnValue[toIndex] = iType[fromIndex];
56  ++toIndex;
57  } else {
58  const std::string& mangled = s_symbolMangled[sIndex];
59  returnValue.replace(toIndex, mangled.size(), mangled);
60  toIndex += mangled.size();
61  fromIndex += s_symbolDemangled[sIndex].size() - 1;
62  }
63  }
64  returnValue.resize(toIndex);
65  return returnValue;
66  }
uint16_t size_type
static const std::string s_symbolDemangled[]
static const std::string s_symbolMangled[]
static const unsigned int s_symbolToMangledSize

◆ setRefStreamer()

edm::EDProductGetter const * fwlite::setRefStreamer ( edm::EDProductGetter const *  ep)

◆ staticAssert()

void fwlite::staticAssert ( )

Definition at line 33 of file format_type_name.cc.

References s_symbolDemangled, and s_symbolMangled.

33  {
34  static_assert(sizeof(s_symbolMangled) == sizeof(s_symbolDemangled), "Arrays are not the same size.");
35  }
static const std::string s_symbolDemangled[]
static const std::string s_symbolMangled[]

◆ unformat_mangled_to_type()

std::string fwlite::unformat_mangled_to_type ( const std::string &  iMangled)

given a mangled name return the C++ class name

Definition at line 69 of file format_type_name.cc.

References s_symbolDemangled, s_symbolMangled, s_symbolToMangledSize, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by fwlite::EventSetup::exists(), fwlite::EventSetup::namesOfAvailableRecords(), and fwlite::Record::typeAndLabelOfAvailableData().

69  {
70  std::string returnValue;
71  returnValue.append(static_cast<std::string::size_type>(iMangled.size() * 2), ' ');
72  std::string::size_type fromIndex = 0;
73  std::string::size_type toIndex = 0;
74  size_t sIndex = 0;
75  for (; fromIndex < iMangled.size(); ++fromIndex) {
76  bool foundMatch = false;
77  for (sIndex = 0; sIndex < s_symbolToMangledSize;) {
78  const std::string& mangled = s_symbolMangled[sIndex];
79  if (iMangled.substr(fromIndex, mangled.size()) == mangled) {
80  foundMatch = true;
81  break;
82  }
83  ++sIndex;
84  }
85  if (!foundMatch) {
86  returnValue[toIndex] = iMangled[fromIndex];
87  ++toIndex;
88  } else {
89  const std::string& symbol = s_symbolDemangled[sIndex];
90  returnValue.replace(toIndex, symbol.size(), symbol);
91  toIndex += symbol.size();
92  fromIndex += s_symbolMangled[sIndex].size() - 1;
93  }
94  }
95  returnValue.resize(toIndex);
96  return returnValue;
97  }
uint16_t size_type
static const std::string s_symbolDemangled[]
static const std::string s_symbolMangled[]
static const unsigned int s_symbolToMangledSize

Variable Documentation

◆ branchNotFound

internal::Data fwlite::branchNotFound {}
static

Definition at line 47 of file DataGetterHelper.cc.

Referenced by fwlite::DataGetterHelper::getBranchDataFor().

◆ kEmptyString

const char fwlite::kEmptyString[1] = {0}
static

Definition at line 48 of file DataGetterHelper.cc.

Referenced by fwlite::DataGetterHelper::getBranchDataFor().