MpdStsHitProducerV1.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // -------------------------------------------------------------------------
  2. // ----- MpdStsHitproducerV1 header file -----
  3. // -------------------------------------------------------------------------
  4. #ifndef CBMHYPHITPRODUCERV1_H
  5. #define CBMHYPHITPRODUCERV1_H 1
  6. #include <map>
  7. #include <iostream>
  8. #include "FairTask.h"
  9. #include "TH1F.h"
  10. #include "TFile.h"
  11. #include "MpdStsHit.h"
  12. #include "TVector3.h"
  13. class TClonesArray;
  14. class TObjectArray;
  15. class MpdStsHitProducerV1 : public FairTask
  16. {
  17. public:
  18. /** Default constructor **/
  19. MpdStsHitProducerV1(const char* fileGeo);
  20. /** Destructor **/
  21. ~MpdStsHitProducerV1();
  22. /** Virtual method Init **/
  23. virtual InitStatus Init();
  24. void SetParContainers(); // get par. containers
  25. /** Virtual method Exec **/
  26. virtual void Exec(Option_t* opt);
  27. MpdStsHit* AddHit(Int_t trackID, Int_t detID, Int_t side);
  28. void CreateStructure();
  29. private:
  30. /** Input array of MpdStsPoints **/
  31. TClonesArray* fPointArray;
  32. /** Output array of MpdStsHit **/
  33. TClonesArray* fDigiArray;
  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(MpdStsHitProducerV1,1);
  47. };
  48. #endif