MpdEmcHitCreation.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // -------------------------------------------------------------------------
  2. // ----- MpdEmcHitCreator header file -----
  3. // -------------------------------------------------------------------------
  4. #ifndef MPDEMCHITCREATION_H
  5. #define MPDEMCHITCREATION_H 1
  6. #include <iostream>
  7. #include "FairTask.h"
  8. #include "MpdEmcHit.h"
  9. #include "MpdEmcGeoParams.h"
  10. class TClonesArray;
  11. class MpdEmcHitCreation : public FairTask {
  12. public:
  13. /** Default constructor **/
  14. MpdEmcHitCreation();
  15. /** Destructor **/
  16. ~MpdEmcHitCreation();
  17. /** Virtual method Init **/
  18. virtual InitStatus Init();
  19. /** Virtual method Exec **/
  20. virtual void Exec(Option_t* opt);
  21. void virtual Finish();
  22. private:
  23. /** Input array of MpdEmcPoints **/
  24. TClonesArray* fPointArray;
  25. /** Input array of MCTracks **/
  26. TClonesArray* fMcTrackArray;
  27. /** Output array of MpdEmcHit **/
  28. TClonesArray* fDigiArray;
  29. Int_t GetSecId(Double_t , Double_t);
  30. Int_t GetRowId(Double_t , Double_t);
  31. Int_t GetTowerId(Double_t, Double_t, Double_t, Int_t, Double_t&, Double_t&, Double_t&, Double_t&, Double_t&);
  32. MpdEmcHit* SearchHit(UInt_t sec, UInt_t row, UInt_t tower);
  33. MpdEmcGeoParams* fGeoPar;
  34. ClassDef(MpdEmcHitCreation, 2);
  35. };
  36. #endif