FairRoot/PandaRoot
PndCudaExampleTask.h
Go to the documentation of this file.
1 /*
2 
3  Test Task to try out some cuda in FairRoot
4  Andreas Herten, June 2013
5 
6  */
7 #ifndef PNDCUDAEXAMPLETASK_H_
8 #define PNDCUDAEXAMPLETASK_H_
9 
10 // framework includes
11 #include "FairTask.h"
12 #include "PndDetectorList.h"
13 
14 #include <vector>
15 #include <map>
16 
17 // Actual GPU device-using function have to be declared as extern
18 extern "C" void DeviceInfo();
19 extern "C" void someOperation();
20 
21 class TClonesArray;
22 
23 class PndCudaExampleTask : public FairTask
24 {
25  public:
26 
29 
31  virtual ~PndCudaExampleTask();
32 
33 
35  virtual void SetParContainers();
36  virtual InitStatus Init();
37 
38 
40  virtual void Exec(Option_t* opt);
41 
42  virtual void Finish();
43 
44 protected:
45  // For both external functions local representatives have to exist
47  void DeviceInfo_() {return DeviceInfo();}
48 
49  private:
50 
51  void Register();
52 
53  void Reset();
54 
55  void ProduceHits();
56 
58 
59 };
60 
61 #endif
void someOperation()
void DeviceInfo()
virtual void SetParContainers()
virtual void Exec(Option_t *opt)
ClassDef(PndCudaExampleTask, 1)
virtual InitStatus Init()