All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RootRefs.h
Go to the documentation of this file.
1 // $Id: RootRefs.h,v 1.4 2010-08-24 23:30:32 frankb Exp $
2 //====================================================================
3 // Dictionary classes for internal classes used to write ROOT files.
4 //--------------------------------------------------------------------
5 //
6 // Author : M.Frank
7 //
8 //====================================================================
9 #ifndef GAUDIROOTCNV_ROOTREFS_H
10 #define GAUDIROOTCNV_ROOTREFS_H
11 
12 // Framework include files
13 #include "GaudiKernel/Kernel.h"
14 
15 // C++ include files
16 #include <string>
17 #include <vector>
18 
19 /*
20  * Gaudi namespace declaration
21  */
22 namespace Gaudi {
23 
31  struct RootRef {
35  RootRef() { this->reset(); }
37  RootRef(const RootRef& c)
39  {
40  }
43  if ( this != &c ) {
44  dbase = c.dbase;
45  container = c.container;
46  link = c.link;
47  clid = c.clid;
48  svc = c.svc;
49  entry = c.entry;
50  }
51  return *this;
52  }
54  void reset() {
55  dbase = -1;
56  container = -1;
57  link = -1;
58  entry = -1;
59  svc = 1;
60  clid = 1;
61  }
62  };
63 
72  struct RootObjectRefs {
74  std::vector<int> links;
76  std::vector<RootRef> refs;
77 
86  links = r.links;
87  refs = r.refs;
88  return *this;
89  }
90  };
91 
101  std::string description;
103  std::string optional;
105  std::string container;
107  unsigned long clid;
112  };
113 }
114 
115 #endif // GAUDIROOTCNV_ROOTREFS_H
116 
RootRef(const RootRef &c)
Copy constructor.
Definition: RootRefs.h:37
RootObjectRefs()
Default constructor.
Definition: RootRefs.h:79
tuple c
Definition: gaudirun.py:341
std::vector< RootRef > refs
The references corresponding to the next layer of items in the data store.
Definition: RootRefs.h:76
Persistent reference object containing all leafs and links corresponding to a Gaudi DataObject...
Definition: RootRefs.h:72
RootObjectRefs(const RootObjectRefs &r)
Copy constructor.
Definition: RootRefs.h:81
int dbase
Data members to define object location in the persistent world.
Definition: RootRefs.h:33
Persistent reference object.
Definition: RootRefs.h:31
std::string optional
Optional description.
Definition: RootRefs.h:103
std::string description
Description string.
Definition: RootRefs.h:101
std::vector< int > links
The links of the link manager.
Definition: RootRefs.h:74
void reset()
Reset data content.
Definition: RootRefs.h:54
RootObjectRefs & operator=(const RootObjectRefs &r)
Assignment operator.
Definition: RootRefs.h:85
std::string container
Identifier of description.
Definition: RootRefs.h:105
RootNTupleDescriptor()
Standard constructor.
Definition: RootRefs.h:109
unsigned long clid
Class ID of the described object.
Definition: RootRefs.h:107
This is a number of static methods for bootstrapping the Gaudi framework.
Definition: Bootstrap.h:14
RootRef & operator=(const RootRef &c)
Assignment operator.
Definition: RootRefs.h:42
RootRef()
Standard constructor.
Definition: RootRefs.h:35
~RootObjectRefs()
Default destructor.
Definition: RootRefs.h:83
virtual ~RootNTupleDescriptor()
Standard destructor.
Definition: RootRefs.h:111