FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMQExHistoDevice.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 FAIRMQEXHISTODEVICE
9 #define FAIRMQEXHISTODEVICE
10 
11 #include <FairMQDevice.h>
12 #include <TH1.h> // for TH1F
13 #include <TH2.h> // for TH2F
14 #include <TObjArray.h>
15 #include <TRandom3.h>
16 
17 class FairMQExHistoDevice : public FairMQDevice
18 {
19  public:
21  virtual ~FairMQExHistoDevice();
22 
23  protected:
24  virtual void InitTask();
25  virtual void PreRun();
26  virtual void PostRun();
27  virtual bool ConditionalRun();
28 
29  private:
31  FairMQExHistoDevice& operator=(const FairMQExHistoDevice&);
32 
33  TRandom3 fRandom;
34 
35  TH1F fh_histo1;
36  TH1F fh_histo2;
37  TH2F fh_histo3;
38  TH2F fh_histo4;
39 
40  TObjArray fArrayHisto;
41 };
42 
43 #endif
virtual bool ConditionalRun()