CbmRoot
CbmMvdSensorBuffer.h
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // ----- CbmMvdSensorBuffer header file -----
3 // ----- Created 02/02/12 by M. Deveaux -----
4 // ------------------------------------------------------------------------
5 
16 #ifndef CBMMVDSENSORBUFFER_H
17 #define CBMMVDSENSORBUFFER_H 1
18 
19 
20 #include "TObject.h"
22 #include <iostream>
23 
24 
25 class TClonesArray;
26 class CbmMvdSensor;
27 
29 
30 public:
33 
35  virtual ~CbmMvdSensorBuffer();
36 
38  //=======================================================
39 
43  virtual void SendInputEvent(TClonesArray* /*inputStream*/) { ; };
44 
49  virtual TClonesArray* GetOutputArray() { return fCurrentEvent; };
50 
52  //=======================================================
53  virtual void ExecChain() { ; }
54  virtual void InitBuffer(CbmMvdSensor* mySensor) { fSensor = mySensor; };
55  virtual void BuildTimeSlice(Double_t /*tStart*/, Double_t /*tStop*/) { ; };
56  virtual void Finish() { ; };
57 
58 
67  virtual void Clear(Option_t* = "");
68 
74  virtual void ClearTimeSlice(Double_t /*tStart*/, Double_t /*tStop*/) { ; };
75 
76 
79 
80 protected:
81  TClonesArray* fBuffer; // full data buffer
82  TClonesArray* fCurrentEvent;
84 
85 
86  virtual void BufferReady() { ; };
87 
88 private:
91 
93 };
94 
95 
96 #endif
CbmMvdSensorBuffer::ClearTimeSlice
virtual void ClearTimeSlice(Double_t, Double_t)
Definition: CbmMvdSensorBuffer.h:74
CbmMvdSensorBuffer::CbmMvdSensorBuffer
CbmMvdSensorBuffer()
Definition: CbmMvdSensorBuffer.cxx:12
CbmMvdSensorBuffer::fCurrentEvent
TClonesArray * fCurrentEvent
Definition: CbmMvdSensorBuffer.h:82
CbmMvdSensorBuffer::GetPluginType
MvdSensorPluginType GetPluginType()
Definition: CbmMvdSensorBuffer.h:78
CbmMvdSensorPlugin
Definition: CbmMvdSensorPlugin.h:24
CbmMvdSensorPlugin.h
CbmMvdSensorBuffer::CbmMvdSensorBuffer
CbmMvdSensorBuffer(const CbmMvdSensorBuffer &)
CbmMvdSensorBuffer::ExecChain
virtual void ExecChain()
Definition: CbmMvdSensorBuffer.h:53
CbmMvdSensorBuffer::Clear
virtual void Clear(Option_t *="")
Definition: CbmMvdSensorBuffer.cxx:23
CbmMvdSensor
Definition: CbmMvdSensor.h:40
CbmMvdSensorBuffer::fBuffer
TClonesArray * fBuffer
Definition: CbmMvdSensorBuffer.h:78
buffer
@ buffer
Definition: CbmMvdSensorPlugin.h:22
CbmMvdSensorBuffer::ClassDef
ClassDef(CbmMvdSensorBuffer, 1)
CbmMvdSensorBuffer::InitBuffer
virtual void InitBuffer(CbmMvdSensor *mySensor)
Definition: CbmMvdSensorBuffer.h:54
MvdSensorPluginType
MvdSensorPluginType
Definition: CbmMvdSensorPlugin.h:22
CbmMvdSensorBuffer::Finish
virtual void Finish()
Definition: CbmMvdSensorBuffer.h:56
CbmMvdSensorBuffer::BufferReady
virtual void BufferReady()
Definition: CbmMvdSensorBuffer.h:86
CbmMvdSensorBuffer::GetOutputArray
virtual TClonesArray * GetOutputArray()
Definition: CbmMvdSensorBuffer.h:49
CbmMvdSensorBuffer::fSensor
CbmMvdSensor * fSensor
Definition: CbmMvdSensorBuffer.h:83
CbmMvdSensorBuffer::operator=
CbmMvdSensorBuffer operator=(const CbmMvdSensorBuffer &)
CbmMvdSensorBuffer::BuildTimeSlice
virtual void BuildTimeSlice(Double_t, Double_t)
Definition: CbmMvdSensorBuffer.h:55
CbmMvdSensorBuffer::SendInputEvent
virtual void SendInputEvent(TClonesArray *)
Definition: CbmMvdSensorBuffer.h:43
CbmMvdSensorBuffer::~CbmMvdSensorBuffer
virtual ~CbmMvdSensorBuffer()
Definition: CbmMvdSensorBuffer.cxx:17
CbmMvdSensorBuffer
Definition: CbmMvdSensorBuffer.h:28