// ------------------------------------------------------------------------- // ----- MvdMCClusterTask header file ----- // ----- Created 20/03/07 by R.Kliemt ----- // ------------------------------------------------------------------------- /** MvdMCClusterTask.h *@author R.Kliemt ** ** The ideal tracking produces tracks of type MvdCluster by using MC information ** directly, but with the correct data interface. **/ #ifndef MVDMCCLUSTERTASK_H #define MVDMCCLUSTERTASK_H // Root includes #include "TVector3.h" #include "TRandom.h" // framework includes #include "CbmTask.h" // Mvd includes class TClonesArray; class MvdMCClusterTask : public CbmTask { public: /** Default constructor **/ MvdMCClusterTask(); /** Destructor **/ ~MvdMCClusterTask(); /** Virtual method Init **/ virtual void SetParContainers(); virtual InitStatus Init(); /** Virtual method Exec **/ virtual void Exec(Option_t* opt); void smear(TVector3& pos, TVector3& dpos); private: TString fBranchName; /** Input array of Points **/ TClonesArray* fPointArray; TClonesArray* fMctruthArray; /** Output array of Hits **/ TClonesArray* fClusterOutputArray; void Register(); void Reset(); void ProduceHits(); ClassDef(MvdMCClusterTask,1); }; #endif