MpdTpcDriftTask.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //-----------------------------------------------------------
  2. // File and Version Information:
  3. // $Id$
  4. //
  5. // Description:
  6. // Tpc Drifter reads in TpcPrimaryClusters and produces drifted electrons
  7. //
  8. //
  9. // Environment:
  10. // Software developed for the MPD Detector at NICA.
  11. //
  12. // Author List:
  13. // Alexandr Zinchenko LHEP, JINR, Dubna - adapted for MPD from PANDARoot
  14. //
  15. //
  16. //-----------------------------------------------------------
  17. #ifndef MPDTPCDRIFTTASK_HH
  18. #define MPDTPCDRIFTTASK_HH
  19. // Base Class Headers ----------------
  20. #include "FairTask.h"
  21. // Collaborating Class Headers -------
  22. // Collaborating Class Declarations --
  23. class TClonesArray;
  24. class TpcGas;
  25. class MpdTpcDriftTask : public FairTask {
  26. public:
  27. // Constructors/Destructors ---------
  28. MpdTpcDriftTask();
  29. ~MpdTpcDriftTask();
  30. // Operators
  31. // Accessors -----------------------
  32. // Modifiers -----------------------
  33. void SetPrimBranchName(const TString& name) {fPrimBranchName = name;}
  34. void SetPersistence(Bool_t opt = kTRUE) {fPersistence = opt;}
  35. void SetAttach(Bool_t opt = kTRUE) {fAttach = opt;}
  36. void SetDiffuse(Bool_t opt = kTRUE) {fDiffuse = opt;}
  37. void SetDistort(Bool_t opt = kTRUE) {fDistort = opt;}
  38. // Operations ----------------------
  39. virtual InitStatus Init();
  40. virtual void Exec(Option_t* opt);
  41. virtual void Clear(Option_t* opt);
  42. private:
  43. // Private Data Members ------------
  44. const Int_t fkNsec2;
  45. TString fPrimBranchName;
  46. TClonesArray** fPrimArray;
  47. TClonesArray** fDriftedArray;
  48. TpcGas* fGas;
  49. Double_t fzGem; // get from Geom!
  50. Bool_t fPersistence;
  51. Bool_t fAttach;
  52. Bool_t fDiffuse;
  53. Bool_t fDistort;
  54. Int_t fSec; // current sector number
  55. // Private Methods -----------------
  56. public:
  57. ClassDef(MpdTpcDriftTask,1)
  58. };
  59. #endif
  60. //--------------------------------------------------------------
  61. // $Log$
  62. //--------------------------------------------------------------