Belle II Software
release-05-02-19
RelationContainer.cc
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2010 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Martin Ritter *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#include <framework/dataobjects/RelationContainer.h>
12
13
#include <framework/dataobjects/RelationElement.h>
14
15
using namespace
std;
16
using namespace
Belle2
;
17
18
RelationContainer::RelationContainer():
19
m_elements(
RelationElement
::Class()),
20
m_fromName(
""
), m_fromDurability(-1),
21
m_toName(
""
), m_toDurability(-1), m_modified(true)
22
{
23
}
24
25
const
RelationElement
&
RelationContainer::getElement
(
int
i)
const
26
{
27
return
*
static_cast<
RelationElement
*
>
(
m_elements
.At(i));
28
}
29
void
RelationContainer::Clear
(Option_t*)
30
{
31
m_elements
.Delete();
32
m_fromName
.clear();
33
m_toName
.clear();
34
m_modified
=
true
;
35
m_fromDurability
=
m_toDurability
= -1;
36
}
Belle2::RelationContainer::m_modified
bool m_modified
check for modification since creation or deserialization.
Definition:
RelationContainer.h:111
Belle2::RelationContainer::getElement
const RelationElement & getElement(int i) const
Get reference to RelationElement at index i.
Definition:
RelationContainer.cc:25
Belle2::RelationElement
Class to store a single element of a relation.
Definition:
RelationElement.h:33
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::RelationContainer::m_toDurability
int m_toDurability
durability of the StoreArray we relate to.
Definition:
RelationContainer.h:108
Belle2::RelationContainer::m_toName
std::string m_toName
name of the StoreArray we relate to.
Definition:
RelationContainer.h:105
Belle2::RelationContainer::Clear
virtual void Clear(Option_t *="")
Clear container to free memory.
Definition:
RelationContainer.cc:29
Belle2::RelationContainer::m_elements
TClonesArray m_elements
TClonesArray to store all elements.
Definition:
RelationContainer.h:96
Belle2::RelationContainer::m_fromName
std::string m_fromName
name of the StoreArray we relate from.
Definition:
RelationContainer.h:99
Belle2::RelationContainer::m_fromDurability
int m_fromDurability
durability of the StoreArray we relate from.
Definition:
RelationContainer.h:102
framework
dataobjects
src
RelationContainer.cc
Generated on Tue Jan 4 2022 02:56:33 for Belle II Software by
1.8.17