// ------------------------------------------------------------------------- // PndDchIdealHitProducer // is a dummy hit reconstruction task, which converts each point // into a hit (1:1 conversion) with a resolution defined per chamber // in the initialization of the task // ------------------------------------------------------------------------- #ifndef PNDDCHIDEALHITPRODUCER_H #define PNDDCHIDEALHITPRODUCER_H 1 #include "CbmTask.h" class TClonesArray; class PndDchHit; class PndDchPoint; class PndDchStructure; class TVector3; class PndDchIdealHitProducer : public CbmTask{ public: /** Default constructor **/ PndDchIdealHitProducer(); /** Destructor **/ ~PndDchIdealHitProducer(); /** Virtual method Init **/ virtual InitStatus Init(); /** Virtual method Exec **/ virtual void Exec(Option_t* opt); PndDchHit* AddHit(const PndDchPoint* point, Int_t idx); private: /** Input array of PndDchPoints **/ TClonesArray* fPointArray; /** Output array of PndDchHits **/ TClonesArray* fHitArray; /** Structure of dch setup **/ PndDchStructure* fDchStructure; /** smearing of position **/ void Smear(TVector3& pos, const TVector3 dpos) const; ClassDef(PndDchIdealHitProducer,1); }; #endif