CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  RefStreamer
 
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
 
class  withTCache
 

Typedefs

typedef std::map
< internal::DataKey,
boost::shared_ptr
< internal::Data > > 
DataMap
 
typedef unsigned int RecordID
 

Functions

boost::shared_ptr< cms::Exceptioneshandle_not_set_exception ()
 
static TBranch * findBranch (TTree *iTree, const std::string &iMainLabels, const std::string &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)
 
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 std::map<internal::DataKey, boost::shared_ptr<internal::Data> > fwlite::DataMap

Definition at line 54 of file DataGetterHelper.cc.

typedef unsigned int fwlite::RecordID

Definition at line 63 of file EventSetup.h.

Function Documentation

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

Definition at line 29 of file ESHandle.cc.

References doNotDelete(), and s_exc.

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

Definition at line 120 of file DataGetterHelper.cc.

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

120  {
121  std::string branchName(iMainLabels);
122  branchName+=iProcess;
123  //branchName+=".obj";
124  branchName+=".";
125  return iTree->GetBranch(branchName.c_str());
126  }
std::string fwlite::format_type_to_mangled ( const std::string &  iType)

given a C++ class name returned a mangled name

Definition at line 42 of file format_type_name.cc.

References s_symbolToMangled, and s_symbolToMangledSize.

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

42  {
43  std::string returnValue;
44  returnValue.append(static_cast<std::string::size_type>(iType.size()*2),' ');
45  std::string::size_type fromIndex=0;
46  std::string::size_type toIndex=0;
47  unsigned int sIndex=0;
48  for(;fromIndex<iType.size();++fromIndex) {
49  bool foundMatch = false;
50  for(sIndex=0;sIndex<s_symbolToMangledSize;) {
51  const std::string& symbol = s_symbolToMangled[sIndex];
52  if(iType.substr(fromIndex,symbol.size())==symbol) {
53  foundMatch = true;
54  break;
55  }
56  ++sIndex;
57  ++sIndex;
58  }
59  if(!foundMatch) {
60  returnValue[toIndex]=iType[fromIndex];
61  ++toIndex;
62  } else {
63  const std::string& mangled=s_symbolToMangled[sIndex+1];
64  returnValue.replace(toIndex,mangled.size(),mangled);
65  toIndex += mangled.size();
66  fromIndex += s_symbolToMangled[sIndex].size()-1;
67  }
68  }
69  returnValue.resize(toIndex);
70  return returnValue;
71  }
uint16_t size_type
static const std::string s_symbolToMangled[]
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 AutoLibraryLoader::enable(), fwlite::GetterOperate::GetterOperate(), and fwlite::GetterOperate::~GetterOperate().

11  {
12 
13  {
14  TClass *cl = gROOT->GetClass("edm::RefCore::CheckTransientOnWrite");
15  TClassStreamer *st = cl->GetStreamer();
16  if (st == 0) {
17  cl->AdoptStreamer(new edm::RefCoreCheckTransientOnWriteStreamer());
18  }
19  }
20 
22  }
static EDProductGetter const * switchProductGetter(EDProductGetter const *)
These can only be used internally by the framework.
std::string fwlite::unformat_mangled_to_type ( const std::string &  iMangled)

given a mangled name return the C++ class name

Definition at line 74 of file format_type_name.cc.

References s_symbolToMangled, and s_symbolToMangledSize.

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

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

Variable Documentation

internal::Data fwlite::branchNotFound
static

Definition at line 56 of file DataGetterHelper.cc.

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