Project
Loading...
Searching...
No Matches
Mergeable.cxx
Go to the documentation of this file.
1// Copyright 2019-2024 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#include <TCanvas.h>
13#include <TCollection.h>
14#include <TEfficiency.h>
15#include <TGraph.h>
16#include <TH1.h>
17#include <THnBase.h>
18#include <TObject.h>
19#include <TTree.h>
21#include "Mergers/Mergeable.h"
22
23namespace o2::mergers
24{
25
27{
28 return obj->InheritsFrom(mergers::MergeInterface::Class()) ||
29 obj->InheritsFrom(TCollection::Class()) ||
30 obj->InheritsFrom(TH1::Class()) ||
31 obj->InheritsFrom(THnBase::Class()) ||
32 obj->InheritsFrom(TTree::Class()) ||
33 obj->InheritsFrom(TGraph::Class()) ||
34 obj->InheritsFrom(TEfficiency::Class()) ||
35 obj->InheritsFrom(TCanvas::Class());
36}
37
38} // namespace o2::mergers
Definition of O2 Mergers merging interface, v0.1.
Mergeable concept.
bool isMergeable(TObject *obj)
Definition Mergeable.cxx:26