ROOT
v6-26
Reference Guide
Loading...
Searching...
No Matches
Initialisation.cxx
Go to the documentation of this file.
1
#include "RConfigure.h"
2
#include "
TEnv.h
"
3
4
#include <iostream>
5
6
/**
7
\file Initialisation.cxx
8
\ingroup Roofitcore
9
10
Run static initialisers on first load of RooFitCore.
11
**/
12
13
namespace
{
14
15
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
16
/// Print RooFit banner.
17
void
doBanner() {
18
#ifndef __ROOFIT_NOBANNER
19
if
(
gEnv
->
GetValue
(
"RooFit.Banner"
, 1) == 0)
20
return
;
21
22
/// RooFit version tag.
23
constexpr
char
VTAG[] =
"3.60"
;
24
25
std::cout <<
'\n'
26
<<
"\033[1mRooFit v"
<< VTAG <<
" -- Developed by Wouter Verkerke and David Kirkby\033[0m "
<<
'\n'
27
<<
" Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University"
<<
'\n'
28
<<
" All rights reserved, please read http://roofit.sourceforge.net/license.txt"
<<
'\n'
29
<< std::endl;
30
#endif
31
}
32
33
34
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
35
/// A RAII that performs RooFit's static initialisation.
36
static
struct
RooFitInitialiser {
37
RooFitInitialiser() {
38
doBanner();
39
}
40
} __rooFitInitialiser;
41
42
}
TEnv.h
gEnv
R__EXTERN TEnv * gEnv
Definition
TEnv.h:170
TEnv::GetValue
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
Definition
TEnv.cxx:491
roofit
roofitcore
src
Initialisation.cxx
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:47 (GVA Time) using Doxygen 1.9.8