| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 {
33 int dbase,container,link,clid,svc,entry;
35 RootRef() { this->reset(); }
37 RootRef(const RootRef& c)
38 : dbase(c.dbase),container(c.container),link(c.link),clid(c.clid),svc(c.svc),entry(c.entry)
39 {
40 }
42 RootRef& operator=(const RootRef& c) {
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
79 RootObjectRefs() {}
81 RootObjectRefs(const RootObjectRefs& r) : links(r.links), refs(r.refs) {}
83 ~RootObjectRefs() {}
85 RootObjectRefs& operator=(const RootObjectRefs& r) {
86 links = r.links;
87 refs = r.refs;
88 return *this;
89 }
90 };
91
99 struct RootNTupleDescriptor {
101 std::string description;
103 std::string optional;
105 std::string container;
107 unsigned long clid;
109 RootNTupleDescriptor() {}
111 virtual ~RootNTupleDescriptor() {}
112 };
113 }
114
115 #endif // GAUDIROOTCNV_ROOTREFS_H
116