The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
RootRefs.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11//====================================================================
12// Dictionary classes for internal classes used to write ROOT files.
13//--------------------------------------------------------------------
14//
15// Author : M.Frank
16//
17//====================================================================
18#pragma once
19
20// Framework include files
21#include <GaudiKernel/Kernel.h>
22
23// C++ include files
24#include <string>
25#include <vector>
26
27/*
28 * Gaudi namespace declaration
29 */
30namespace Gaudi {
31
39 struct RootRef {
43 RootRef() { this->reset(); }
45 RootRef( const RootRef& c ) = default;
47 RootRef& operator=( const RootRef& c ) = default;
49 void reset() {
50 dbase = -1;
51 container = -1;
52 link = -1;
53 entry = -1;
54 svc = 1;
55 clid = 1;
56 }
57 };
58
67 struct RootObjectRefs {
69 std::vector<int> links;
71 std::vector<RootRef> refs;
72
74 RootObjectRefs() = default;
76 ~RootObjectRefs() = default;
77 };
78
88 std::string description;
90 std::string optional;
92 std::string container;
94 unsigned long clid{ 1 };
98 virtual ~RootNTupleDescriptor() = default;
99 };
100} // namespace Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1
RootNTupleDescriptor()=default
Standard constructor.
unsigned long clid
Class ID of the described object.
Definition RootRefs.h:94
std::string optional
Optional description.
Definition RootRefs.h:90
std::string description
Description string.
Definition RootRefs.h:88
virtual ~RootNTupleDescriptor()=default
Standard destructor.
std::string container
Identifier of description.
Definition RootRefs.h:92
~RootObjectRefs()=default
Default destructor.
RootObjectRefs()=default
Default constructor.
std::vector< int > links
The links of the link manager.
Definition RootRefs.h:69
std::vector< RootRef > refs
The references corresponding to the next layer of items in the data store.
Definition RootRefs.h:71
Persistent reference object.
Definition extractEvt.C:44
int dbase
Data members to define object location in the persistent world.
Definition RootRefs.h:41
RootRef & operator=(const RootRef &c)=default
Assignment operator.
void reset()
Reset data content.
Definition RootRefs.h:49
RootRef()
Standard constructor.
Definition RootRefs.h:43
RootRef(const RootRef &c)=default
Copy constructor.