BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
ResultTree.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef COMPRESULTTREE_H
19#define COMPRESULTTREE_H
20
21#include "Result.hh"
22
23#include <sstream>
24#include <string>
25
32class ResultTree: public Result
33{
34public:
35 int t1NEntries;
36 int t2NEntries;
37 std::vector<std::string> offendingBranches;
38
39 virtual std::string print() const
40 {
41 std::stringstream ss;
42 ss << Result::print();
43 ss << "File (1/2) entries (" << t1NEntries << "/" << t2NEntries << ")\n";
44 ss << "Offending branches: ";
45 for (const auto& branchName : offendingBranches)
46 {ss << branchName << " ";}
47 ss << "\n";
48 return ss.str();
49 }
50};
51
52#endif
Result of comparing 2 TTrees.
Definition ResultTree.hh:33
virtual std::string print() const
Print the result of the test - ie information store in the class.
Definition ResultTree.hh:39
Base class of a result.
Definition Result.hh:36
virtual std::string print() const
Print the result of the test - ie information store in the class.
Definition Result.hh:57