CbmRoot
CbmMvdSensorPlugin.h
Go to the documentation of this file.
1 
2 // ------------------------------------------------------------------------
3 // ----- CbmMvdSensorPlugin header file -----
4 // ----- Created 02/02/12 by M. Deveaux -----
5 // ------------------------------------------------------------------------
6 
14 #ifndef CBMMVDSENSORPLUGIN_H
15 #define CBMMVDSENSORPLUGIN_H 1
16 
17 #include "CbmMvdPoint.h"
18 
19 class TClonesArray;
20 class CbmMvdSensor;
21 
23 
24 class CbmMvdSensorPlugin : public TObject {
25 
26 public:
29  CbmMvdSensorPlugin(const char* name);
30 
32  virtual ~CbmMvdSensorPlugin();
33 
35  virtual void Init() { ; }
36  virtual void Exec() { ; }
37  virtual void ExecChain() { ; }
38  virtual void Finish() { ; };
39 
40  virtual TClonesArray* GetInputArray() { return 0; }
41  virtual TClonesArray* GetOutputArray() { return 0; }
42  virtual TClonesArray* GetMatchArray() { return 0; }
43  virtual TClonesArray* GetWriteArray() { return 0; }
44 
45  virtual void SetInputArray(TClonesArray*) { ; }
46  virtual void SetInput(CbmMvdPoint*) { ; }
47  virtual void SetOutputArray(TClonesArray*) { ; }
48 
49  virtual void SetNextPlugin(CbmMvdSensorPlugin* plugin) {
50  fNextPlugin = plugin;
51  }
52  virtual void SetPreviousPlugin(CbmMvdSensorPlugin* plugin) {
53  fPreviousPlugin = plugin;
54  }
55 
58 
59  bool PluginReady() { return (bFlag); };
60  void SetPluginReady(bool flag) { bFlag = flag; }
61  void ShowDebugHistos() { fShowDebugHistos = kTRUE; }
62  virtual const char* GetName() const { return fName; }
63  Bool_t IsInit() { return (initialized); }
68 
69 protected:
70  bool bFlag;
71  Bool_t initialized;
73  const char* fName;
74 
75 private:
78 
80 };
81 
82 
83 #endif
CbmMvdSensorPlugin::Finish
virtual void Finish()
Definition: CbmMvdSensorPlugin.h:38
CbmMvdSensorPlugin::GetWriteArray
virtual TClonesArray * GetWriteArray()
Definition: CbmMvdSensorPlugin.h:43
CbmMvdSensorPlugin::GetOutputArray
virtual TClonesArray * GetOutputArray()
Definition: CbmMvdSensorPlugin.h:41
CbmMvdSensorPlugin::~CbmMvdSensorPlugin
virtual ~CbmMvdSensorPlugin()
Definition: CbmMvdSensorPlugin.cxx:33
CbmMvdSensorPlugin::ShowDebugHistos
void ShowDebugHistos()
Definition: CbmMvdSensorPlugin.h:61
CbmMvdSensorPlugin
Definition: CbmMvdSensorPlugin.h:24
CbmMvdSensorPlugin::GetPrevousPlugin
virtual CbmMvdSensorPlugin * GetPrevousPlugin()
Definition: CbmMvdSensorPlugin.h:57
CbmMvdSensorPlugin::GetMatchArray
virtual TClonesArray * GetMatchArray()
Definition: CbmMvdSensorPlugin.h:42
CbmMvdSensorPlugin::ExecChain
virtual void ExecChain()
Definition: CbmMvdSensorPlugin.h:37
CbmMvdSensorPlugin::CbmMvdSensorPlugin
CbmMvdSensorPlugin()
Definition: CbmMvdSensorPlugin.cxx:12
CbmMvdSensorPlugin::operator=
CbmMvdSensorPlugin & operator=(const CbmMvdSensorPlugin &)
CbmMvdSensorPlugin::GetPluginType
virtual MvdSensorPluginType GetPluginType()=0
CbmMvdSensorPlugin::SetPreviousPlugin
virtual void SetPreviousPlugin(CbmMvdSensorPlugin *plugin)
Definition: CbmMvdSensorPlugin.h:52
CbmMvdSensorPlugin::CbmMvdSensorPlugin
CbmMvdSensorPlugin(const CbmMvdSensorPlugin &)
CbmMvdSensorPlugin::fShowDebugHistos
Bool_t fShowDebugHistos
Definition: CbmMvdSensorPlugin.h:72
CbmMvdSensorPlugin::fPreviousPlugin
CbmMvdSensorPlugin * fPreviousPlugin
Definition: CbmMvdSensorPlugin.h:67
CbmMvdSensorPlugin::GetNextPlugin
virtual CbmMvdSensorPlugin * GetNextPlugin()
Definition: CbmMvdSensorPlugin.h:56
CbmMvdSensorPlugin::fName
const char * fName
Definition: CbmMvdSensorPlugin.h:73
CbmMvdSensorPlugin::initialized
Bool_t initialized
Definition: CbmMvdSensorPlugin.h:71
CbmMvdPoint.h
CbmMvdSensor
Definition: CbmMvdSensor.h:40
CbmMvdPoint
Definition: CbmMvdPoint.h:28
buffer
@ buffer
Definition: CbmMvdSensorPlugin.h:22
CbmMvdSensorPlugin::ClassDef
ClassDef(CbmMvdSensorPlugin, 1)
MvdSensorPluginType
MvdSensorPluginType
Definition: CbmMvdSensorPlugin.h:22
CbmMvdSensorPlugin::GetName
virtual const char * GetName() const
Definition: CbmMvdSensorPlugin.h:62
CbmMvdSensorPlugin::fNextPlugin
CbmMvdSensorPlugin * fNextPlugin
Definition: CbmMvdSensorPlugin.h:66
CbmMvdSensorPlugin::Init
virtual void Init()
Definition: CbmMvdSensorPlugin.h:35
CbmMvdSensorPlugin::SetOutputArray
virtual void SetOutputArray(TClonesArray *)
Definition: CbmMvdSensorPlugin.h:47
task
@ task
Definition: CbmMvdSensorPlugin.h:22
CbmMvdSensorPlugin::bFlag
bool bFlag
Definition: CbmMvdSensorPlugin.h:70
CbmMvdSensorPlugin::GetInputArray
virtual TClonesArray * GetInputArray()
Definition: CbmMvdSensorPlugin.h:40
CbmMvdSensorPlugin::SetNextPlugin
virtual void SetNextPlugin(CbmMvdSensorPlugin *plugin)
Definition: CbmMvdSensorPlugin.h:49
CbmMvdSensorPlugin::SetPluginReady
void SetPluginReady(bool flag)
Definition: CbmMvdSensorPlugin.h:60
CbmMvdSensorPlugin::PluginReady
bool PluginReady()
Definition: CbmMvdSensorPlugin.h:59
CbmMvdSensorPlugin::Exec
virtual void Exec()
Definition: CbmMvdSensorPlugin.h:36
CbmMvdSensorPlugin::IsInit
Bool_t IsInit()
Definition: CbmMvdSensorPlugin.h:63
CbmMvdSensorPlugin::SetInputArray
virtual void SetInputArray(TClonesArray *)
Definition: CbmMvdSensorPlugin.h:45
CbmMvdSensorPlugin::SetInput
virtual void SetInput(CbmMvdPoint *)
Definition: CbmMvdSensorPlugin.h:46