FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMQExHistoCanvasDrawerExample.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FAIRMQEXHISTOCANVASDRAWEREXAMPLE
9 #define FAIRMQEXHISTOCANVASDRAWEREXAMPLE
10 
12 
13 class TCanvas;
14 
15 #include <functional>
16 #include <memory>
17 
19 {
20  public:
23 
24  void CreateCanvases(THttpServer&);
25 
26  void DrawHistograms(TObjArray&);
27 
28  private:
31 
32  std::unique_ptr<TCanvas, std::function<void(TCanvas*)>> fCanvas;
33 };
34 
35 #endif