MpdTpcClusterizerTask.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //-----------------------------------------------------------
  2. // File and Version Information:
  3. // $Id$
  4. //
  5. // Description:
  6. // Tpc Clusterizer reads in MCPoints and produces primary 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 MPDTPCCLUSTERIZERTASK_HH
  18. #define MPDTPCCLUSTERIZERTASK_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 MpdTpcClusterizerTask : public FairTask {
  26. public:
  27. static const Int_t fgkNsec2; // number of readout sectors (12 * 2)
  28. // Constructors/Destructors ---------
  29. MpdTpcClusterizerTask();
  30. ~MpdTpcClusterizerTask();
  31. // Operators
  32. // Accessors -----------------------
  33. // Modifiers -----------------------
  34. void SetPointBranchName(const TString& name) {fPointBranchName=name;}
  35. void SetPersistence(Bool_t opt=kTRUE) {fPersistence=opt;}
  36. // Operations ----------------------
  37. virtual InitStatus Init();
  38. void FinishTask();
  39. virtual void Exec(Option_t* opt);
  40. //virtual void Clear(Option_t* opt);
  41. private:
  42. // Private Data Members ------------
  43. TString fPointBranchName;
  44. TClonesArray* fPointArray;
  45. TClonesArray** fPrimArray;
  46. TpcGas* fGas;
  47. Bool_t fPersistence;
  48. // Private Methods -----------------
  49. void ClearData(Int_t isec); // save and clear data structures
  50. public:
  51. ClassDef(MpdTpcClusterizerTask,1)
  52. };
  53. #endif
  54. //--------------------------------------------------------------
  55. // $Log$
  56. //--------------------------------------------------------------