MpdFsaHitProducer_old.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // -------------------------------------------------------------------------
  2. // ----- MpdFsaHitproducer header file -----
  3. // -------------------------------------------------------------------------
  4. #ifndef CBMHYPHITPRODUCER_H
  5. #define CBMHYPHITPRODUCER_H 1
  6. #include <map>
  7. #include <iostream>
  8. #include "FairTask.h"
  9. #include "TH1F.h"
  10. #include "TFile.h"
  11. #include "MpdFsaHit.h"
  12. #include "TVector3.h"
  13. class TClonesArray;
  14. class TObjectArray;
  15. class MpdFsaHitProducer : public FairTask
  16. {
  17. public:
  18. /** Default constructor **/
  19. MpdFsaHitProducer(const char* fileGeo);
  20. /** Destructor **/
  21. ~MpdFsaHitProducer();
  22. /** Virtual method Init **/
  23. virtual InitStatus Init();
  24. /** Virtual method Exec **/
  25. virtual void Exec(Option_t* opt);
  26. MpdFsaHit* AddHit(Int_t trackID, Int_t detID, Float_t energy);
  27. void CreateStructure();
  28. private:
  29. /** Input array of MpdFsaPoints **/
  30. TClonesArray* fPointArray;
  31. /** Output array of MpdFsaHit **/
  32. TClonesArray* fDigiArray;
  33. TClonesArray* fListMCtracks;
  34. TObjArray *fVolumeArray;
  35. /** Geo file to use **/
  36. TString fFileGeo;
  37. Float_t eneThr;
  38. typedef std::map<Int_t, Float_t> mapper;
  39. mapper emcX, emcY, emcZ, emcTheta, emcPhi, emcTau;
  40. /* map<Int_t, Float_t> emcX; */
  41. /* map<Int_t, Float_t> emcY; */
  42. /* map<Int_t, Float_t> emcZ; */
  43. /* map<Int_t, Float_t> emcTheta; */
  44. /* map<Int_t, Float_t> emcPhi; */
  45. /* map<Int_t, Float_t> emcTau; */
  46. ClassDef(MpdFsaHitProducer,1);
  47. };
  48. #endif