TpcLheHitsMaker.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #ifndef LHE_HITS_MAKER_H
  2. #define LHE_HITS_MAKER_H
  3. // *************************************************************************
  4. // Author: Oleg Rogachevsky e-mail: rogach@sunhe.jinr.ru
  5. //
  6. // collect all hits from tracking detectors in form used for
  7. // finding and fitting in LHE program
  8. //
  9. // Created: 1-07-07
  10. // Modified:
  11. //
  12. // *************************************************************************
  13. #include "TClonesArray.h"
  14. #include "FairTask.h"
  15. #include "FairDetector.h"
  16. #include "FairHit.h"
  17. #include "TpcLheHit.h"
  18. #include "TpcLheTrack.h"
  19. #include "TpcLheTrackCuts.h"
  20. class TpcLheHitsMaker : public FairTask {
  21. protected:
  22. Int_t fNHit;
  23. Int_t fNTrack;
  24. Int_t fNofEvents;
  25. TClonesArray *fTpcPoints; //! pointers to TPC points
  26. TClonesArray *fTstPoints; //! pointers to TST points
  27. TClonesArray *fLheHits; //! pointers to LHE hits
  28. TClonesArray *fListMCtracks; //! pointers to MC tracks
  29. TClonesArray *fGeantTracks; //! pointers to selected Geant tracks
  30. TpcLheTrackCuts *fCuts;
  31. TString fOption; // options to choose particles
  32. public:
  33. virtual InitStatus Init(); //
  34. virtual InitStatus ReInit();
  35. virtual void Exec(Option_t * option); //
  36. virtual void Finish(); //
  37. void Reset();
  38. void Register();
  39. TpcLheHitsMaker(const char *name, const char *title="CBM Task");
  40. TpcLheHitsMaker();
  41. virtual ~TpcLheHitsMaker();
  42. TpcLheHit *AddHit();
  43. TpcLheTrack *AddTrack(Int_t mT);
  44. void GetTstHits();
  45. void GetTpcHits();
  46. void SetOption(Option_t *option=" ") {fOption = option; fOption.ToLower();}
  47. void SetTrack(TpcLheHit *hit);
  48. void CheckTracks();
  49. void PrintTracks(Int_t n);
  50. //void GetStripPoints();
  51. ClassDef(TpcLheHitsMaker,1) // TpcLheHitsMaker
  52. };
  53. #endif