CbmRoot
CbmMvdSensorReadoutTask.h
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // ----- CbmMvdSensorTask header file -----
3 // ----- Created 02/02/12 by M. Deveaux -----
4 // ------------------------------------------------------------------------
5 
13 #ifndef CBMMVDSENSORREADOUTTASK_H
14 #define CBMMVDSENSORREADOUTTASK_H 1
15 
16 #include "CbmMvdDigi.h"
17 #include "CbmMvdSensorTask.h"
18 #include "TObject.h"
19 #include <iostream>
20 
21 
22 class TClonesArray;
23 class CbmMvdSensor;
24 
26 
27 public:
30  CbmMvdSensorReadoutTask(const char* name);
31 
33  virtual ~CbmMvdSensorReadoutTask();
34 
36  void SetInputArray(TClonesArray* inputStream);
37  void SetInputDigi(CbmMvdDigi* digi);
38 
39  virtual TClonesArray* GetOutputArray() { return fOutputBuffer; };
40 
41  void InitTask(CbmMvdSensor* mySensor);
42 
43  void Exec();
44  void Finish();
45  void ExecChain();
46 
47  void Reset();
48 
49 private:
50  static const Int_t maxBanks = 64;
51 
52  TClonesArray* fInputBuffer; // Buffer of background events
53  TClonesArray* fOutputBuffer;
55 
57  const Int_t fPixelsPerBank = 22;
58 
59  Int_t GetBankNumber(const Int_t& yPixelNr) const;
60 
63 
65 };
66 
67 
68 #endif
CbmMvdSensorReadoutTask::operator=
CbmMvdSensorReadoutTask operator=(const CbmMvdSensorReadoutTask &)
CbmMvdSensorReadoutTask::GetBankNumber
Int_t GetBankNumber(const Int_t &yPixelNr) const
Definition: CbmMvdSensorReadoutTask.cxx:93
CbmMvdSensorReadoutTask::Exec
void Exec()
Definition: CbmMvdSensorReadoutTask.cxx:82
CbmMvdDigi.h
CbmMvdSensorReadoutTask::fOutputBuffer
TClonesArray * fOutputBuffer
Definition: CbmMvdSensorReadoutTask.h:53
CbmMvdSensorReadoutTask::Finish
void Finish()
Definition: CbmMvdSensorReadoutTask.cxx:109
CbmMvdSensorReadoutTask
Definition: CbmMvdSensorReadoutTask.h:25
CbmMvdSensorReadoutTask::CbmMvdSensorReadoutTask
CbmMvdSensorReadoutTask(const CbmMvdSensorReadoutTask &)
CbmMvdSensorReadoutTask::ExecChain
void ExecChain()
Definition: CbmMvdSensorReadoutTask.cxx:78
CbmMvdSensorTask
Definition: CbmMvdSensorTask.h:26
CbmMvdSensor
Definition: CbmMvdSensor.h:40
CbmMvdSensorReadoutTask::fInputBuffer
TClonesArray * fInputBuffer
Definition: CbmMvdSensorReadoutTask.h:52
CbmMvdSensorReadoutTask::Reset
void Reset()
Definition: CbmMvdSensorReadoutTask.cxx:105
CbmMvdSensorReadoutTask::SetInputDigi
void SetInputDigi(CbmMvdDigi *digi)
Definition: CbmMvdSensorReadoutTask.cxx:70
CbmMvdSensorReadoutTask::ClassDef
ClassDef(CbmMvdSensorReadoutTask, 1)
CbmMvdSensorReadoutTask::SetInputArray
void SetInputArray(TClonesArray *inputStream)
Definition: CbmMvdSensorReadoutTask.cxx:57
CbmMvdSensorReadoutTask::GetOutputArray
virtual TClonesArray * GetOutputArray()
Definition: CbmMvdSensorReadoutTask.h:39
CbmMvdSensorReadoutTask::fSensor
CbmMvdSensor * fSensor
Definition: CbmMvdSensorReadoutTask.h:54
CbmMvdDigi
Definition: CbmMvdDigi.h:21
CbmMvdSensorReadoutTask::fSensorBanks
Int_t fSensorBanks[maxBanks]
Definition: CbmMvdSensorReadoutTask.h:56
CbmMvdSensorReadoutTask::CbmMvdSensorReadoutTask
CbmMvdSensorReadoutTask()
Definition: CbmMvdSensorReadoutTask.cxx:17
CbmMvdSensorReadoutTask::~CbmMvdSensorReadoutTask
virtual ~CbmMvdSensorReadoutTask()
Definition: CbmMvdSensorReadoutTask.cxx:38
CbmMvdSensorTask.h
CbmMvdSensorReadoutTask::maxBanks
static const Int_t maxBanks
Definition: CbmMvdSensorReadoutTask.h:50
CbmMvdSensorReadoutTask::InitTask
void InitTask(CbmMvdSensor *mySensor)
Definition: CbmMvdSensorReadoutTask.cxx:45
CbmMvdSensorReadoutTask::fPixelsPerBank
const Int_t fPixelsPerBank
Definition: CbmMvdSensorReadoutTask.h:57