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
 

Typedef Documentation

typedef unsigned int fwlite::RecordID

Definition at line 64 of file EventSetup.h.

Function Documentation

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

Definition at line 28 of file ESHandle.cc.

References doNotDelete(), and s_exc.

28  {
29  return std::shared_ptr<cms::Exception>(&s_exc, doNotDelete);
30  }
static void doNotDelete(cms::Exception *)
Definition: ESHandle.cc:25
static cms::Exception s_exc("ESHandleUnset","The ESHandle is being accessed without ever being set by a Record")
static TBranch* fwlite::findBranch ( TTree *  iTree,
std::string const &  iMainLabels,
std::string const &  iProcess 
)
static

Definition at line 107 of file DataGetterHelper.cc.

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

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

107  {
108  std::string branchName(iMainLabels);
109  branchName+=iProcess;
110  //branchName+=".obj";
111  branchName+=".";
112  return iTree->GetBranch(branchName.c_str());
113  }
std::string fwlite::format_type_to_mangled ( const std::string &  iType)

given a C++ class name returned a mangled name

Definition at line 54 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().

54  {
55  std::string returnValue;
56  returnValue.append(static_cast<std::string::size_type>(iType.size()*2),' ');
57  std::string::size_type fromIndex=0;
58  std::string::size_type toIndex=0;
59  size_t sIndex=0;
60  for(;fromIndex<iType.size();++fromIndex) {
61  bool foundMatch = false;
62  for(sIndex=0;sIndex<s_symbolToMangledSize;) {
63  const std::string& symbol = s_symbolDemangled[sIndex];
64  if(iType.substr(fromIndex,symbol.size())==symbol) {
65  foundMatch = true;
66  break;
67  }
68  ++sIndex;
69  }
70  if(!foundMatch) {
71  returnValue[toIndex]=iType[fromIndex];
72  ++toIndex;
73  } else {
74  const std::string& mangled=s_symbolMangled[sIndex];
75  returnValue.replace(toIndex,mangled.size(),mangled);
76  toIndex += mangled.size();
77  fromIndex += s_symbolDemangled[sIndex].size()-1;
78  }
79  }
80  returnValue.resize(toIndex);
81  return returnValue;
82  }
uint16_t size_type
static const std::string s_symbolDemangled[]
static const std::string s_symbolMangled[]
static const unsigned int s_symbolToMangledSize
edm::EDProductGetter const * fwlite::setRefStreamer ( edm::EDProductGetter const *  ep)

Definition at line 11 of file RefStreamer.cc.

References edm::EDProductGetter::switchProductGetter().

Referenced by FWLiteEnabler::enable(), fwlite::GetterOperate::GetterOperate(), and fwlite::GetterOperate::~GetterOperate().

11  {
13  }
static EDProductGetter const * switchProductGetter(EDProductGetter const *)
These can only be used internally by the framework.
void fwlite::staticAssert ( )

Definition at line 49 of file format_type_name.cc.

References s_symbolDemangled, and s_symbolMangled.

49  {
50  static_assert(sizeof(s_symbolMangled) == sizeof(s_symbolDemangled),"Arrays are not the same size.");
51  }
static const std::string s_symbolDemangled[]
static const std::string s_symbolMangled[]
std::string fwlite::unformat_mangled_to_type ( const std::string &  iMangled)

given a mangled name return the C++ class name

Definition at line 85 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().

85  {
86  std::string returnValue;
87  returnValue.append(static_cast<std::string::size_type>(iMangled.size()*2),' ');
88  std::string::size_type fromIndex=0;
89  std::string::size_type toIndex=0;
90  size_t sIndex=0;
91  for(;fromIndex<iMangled.size();++fromIndex) {
92  bool foundMatch = false;
93  for(sIndex=0;sIndex<s_symbolToMangledSize;) {
94  const std::string& mangled = s_symbolMangled[sIndex];
95  if(iMangled.substr(fromIndex,mangled.size())==mangled) {
96  foundMatch = true;
97  break;
98  }
99  ++sIndex;
100  }
101  if(!foundMatch) {
102  returnValue[toIndex]=iMangled[fromIndex];
103  ++toIndex;
104  } else {
105  const std::string& symbol=s_symbolDemangled[sIndex];
106  returnValue.replace(toIndex,symbol.size(),symbol);
107  toIndex += symbol.size();
108  fromIndex += s_symbolMangled[sIndex].size()-1;
109  }
110  }
111  returnValue.resize(toIndex);
112  return returnValue;
113  }
uint16_t size_type
static const std::string s_symbolDemangled[]
static const std::string s_symbolMangled[]
static const unsigned int s_symbolToMangledSize

Variable Documentation

internal::Data fwlite::branchNotFound
static

Definition at line 46 of file DataGetterHelper.cc.

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