Logo ROOT  
Reference Guide
REveTypes.cxx
Go to the documentation of this file.
1// @(#)root/eve7:$Id$
2// Authors: Matevz Tadel & Alja Mrak-Tadel: 2020
3
4/*************************************************************************
5 * Copyright (C) 1995-2020, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#include <ROOT/REveTypes.hxx>
13#include <ROOT/RLogger.hxx>
14#include <iostream>
15
16using namespace ROOT::Experimental;
17namespace REX = ROOT::Experimental;
18
19
20/** \class REveException
21\ingroup REve
22Exception class thrown by Eve classes and macros.
23*/
24
25////////////////////////////////////////////////////////////////////////////////
26
27bool REX::operator==(const TString& t, const std::string& s)
28{ return (s == t.Data()); }
29
30bool REX::operator==(const std::string& s, const TString& t)
31{ return (s == t.Data()); }
32
33// Exc + ops
34
35REveException REX::operator+(const REveException &s1, const std::string &s2)
36{ REveException r(s1); r.append(s2); return r; }
37
39{ REveException r(s1); r.append(s2.Data()); return r; }
40
42{ REveException r(s1); r.append(s2); return r; }
43
45{ REveException r(s1); r.append(std::to_string(x)); return r; }
46
48{
49 static RLogChannel sLog("ROOT.Eve");
50 return sLog;
51}
52
ROOT::R::TRInterface & r
Definition: Object.C:4
#define s1(x)
Definition: RSha256.hxx:91
Bool_t operator==(const TDatime &d1, const TDatime &d2)
Definition: TDatime.h:102
TString operator+(const TString &s1, const TString &s2)
Use the special concatenation constructor.
Definition: TString.cxx:1499
REveException Exception-type thrown by Eve classes.
Definition: REveTypes.hxx:41
A log configuration for a channel, e.g.
Definition: RLogger.hxx:101
Basic string class.
Definition: TString.h:136
const char * Data() const
Definition: TString.h:369
Double_t x[n]
Definition: legend1.C:17
unsigned int ElementId_t
Definition: REveTypes.hxx:25
RLogChannel & REveLog()
Log channel for Eve diagnostics.
Definition: REveTypes.cxx:47
static constexpr double s