MpdEtofHitProducer.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //------------------------------------------------------------------------------------------------------------------------
  2. #ifndef __MPD_ETOF_HIT_PRODUCER_H
  3. #define __MPD_ETOF_HIT_PRODUCER_H 1
  4. //------------------------------------------------------------------------------------------------------------------------
  5. /// \class MpdEtofHitProducer
  6. ///
  7. /// \brief
  8. /// \author Sergei Lobastov (LHE, JINR, Dubna)
  9. //------------------------------------------------------------------------------------------------------------------------
  10. #include <map>
  11. #include <math.h>
  12. #include "TString.h"
  13. #include "TList.h"
  14. #include "TVector3.h"
  15. #include "TRandom2.h"
  16. #include "MpdEtofHitProducerIdeal.h"
  17. class TH1D;
  18. class TH2D;
  19. class MpdKalmanFilter;
  20. class TpcLheKalmanTrack;
  21. class MpdEtofHit;
  22. class TClonesArray;
  23. //------------------------------------------------------------------------------------------------------------------------
  24. class MpdEtofHitProducer : public MpdEtofHitProducerIdeal
  25. {
  26. Double_t fTimeSigma; // Uncertainties of time, gaus sigma [ns], default: 100 ps
  27. Double_t fErrPhi, fErrR; // Uncertainties of coordinates, gaus sigma [cm], dR= 10./sqrt(12.) mm, default: dPhi= 5 mm.
  28. TRandom2 *pRandom;
  29. Bool_t HitExist(Double_t val);
  30. Bool_t DoubleHitExist(Double_t val);
  31. public:
  32. MpdEtofHitProducer(const char *name = "ETOF HitProducer", Bool_t useMCdata = true, Int_t verbose = 1, Bool_t DoTest = false, const char *flnm = "QA.MpdEtofHitProducer.root");
  33. virtual ~MpdEtofHitProducer();
  34. InitStatus Init();
  35. void Exec(Option_t * option);
  36. // void Finish();
  37. void SetTimeResolution(Double_t sigma){ fTimeSigma = sigma; };
  38. void SetAlongStripzResolution(Double_t err){ fErrPhi = err;};
  39. void SetSeed(UInt_t seed = 0);
  40. ClassDef(MpdEtofHitProducer,2)
  41. };
  42. //------------------------------------------------------------------------------------------------------------------------
  43. #endif