Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Initialisation.cxx
Go to the documentation of this file.
1#ifdef __ROOFIT_BANNER
2
3#include "RConfigure.h"
4#include "TEnv.h"
5
6#include <iostream>
7
8/**
9\file Initialisation.cxx
10\ingroup Roofitcore
11Run static initialisers on first load of RooFitCore.
12**/
13
14namespace {
15
16////////////////////////////////////////////////////////////////////////////////////////////////////////////////
17/// Print RooFit banner.
18void doBanner() {
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}
31
32
33////////////////////////////////////////////////////////////////////////////////////////////////////////////////
34/// A RAII that performs RooFit's static initialisation.
35static struct RooFitInitialiser {
36 RooFitInitialiser() {
37 doBanner();
38 }
39} __rooFitInitialiser;
40
41}
42
43#endif
R__EXTERN TEnv * gEnv
Definition TEnv.h:170
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
Definition TEnv.cxx:491