Belle II Software development
NodeCompatibilityCheckerPathCollector.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10
11namespace Belle2 {
18 template<class NodeType>
20
25 bool areCompatible(NodeType* outerNode, NodeType* innerNode)
26 {
27// return true;
28 return (outerNode->getMetaInfo().getState() == (innerNode->getMetaInfo().getState() + 1));
29 }
30 };
31
33} //Belle2 namespace
NodeType
Enum of possible Nodes in parsing tree.
Abstract base class for different kinds of events.
simple NodeCompatibilityChecker, which checks for compatible Neighboring states of passed nodes (does...
bool areCompatible(NodeType *outerNode, NodeType *innerNode)
returns true, if state of outerNode is state of innerNode +1.