CbmSttHitInfo.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /** CbmStsMapsHitInfo header file
  2. ** Class for additional information about CbmStsMapsHit
  3. *@author Michael Deveaux <m.deveaux@gsi.de>
  4. ** Acknowledgements to M. Al-Turany, D. Bertini, G. Gaycken
  5. ** Version beta 0.1 (02.02.2005)
  6. ** Slight modifications by V. Friese to match coding conventions
  7. **/
  8. #ifndef CBMSTTHITINFO_H
  9. #define CBMSTTHITINFO_H 1
  10. #include "TObject.h"
  11. class CbmSttHitInfo: public TObject
  12. {
  13. public:
  14. /** Default constructor **/
  15. CbmSttHitInfo();
  16. /** Constructor with all parameters **/
  17. CbmSttHitInfo(Int_t fileNumber, Int_t eventNumber, Int_t trackID,
  18. Int_t pointID, Int_t nMerged, Bool_t isFake);
  19. /** Destructor **/
  20. virtual ~CbmSttHitInfo();
  21. /** Accessors **/
  22. Int_t GetFileNumber() const { return fFileNumber; };
  23. Int_t GetEventNumber() const { return fEventNumber; };
  24. Int_t GetTrackID() const { return fTrackID; };
  25. Int_t GetPointID() const { return fPointID; };
  26. Int_t GetNMerged() const { return fNMerged; };
  27. Bool_t IsFake() const { return fIsFake; };
  28. /** Modifiers **/
  29. void SetNMerged(Int_t nMerged) { fNMerged = nMerged; };
  30. /** Reset data members **/
  31. void Clear();
  32. private:
  33. /** Indicates the file to which the corresponding point belongs.
  34. ** -1 => no file (fake hit)
  35. ** 0 => data file
  36. ** 1 => pileup file
  37. ** else => reserved for future use
  38. **/
  39. Int_t fFileNumber;
  40. /** Event number of the corresponding MCPoint. Important to
  41. ** find it in background files due to the random access.
  42. ** -1 => no corresponding MCPoint (fake hit)
  43. ** 0 => current event in data file
  44. ** n => event in pileup file
  45. **/
  46. Int_t fEventNumber;
  47. /** Index of the corresponding MCTrack in its TClonesArray.
  48. ** Also true for background files.
  49. ** -1 for fake hits
  50. **/
  51. Int_t fTrackID;
  52. /** Index of the corresponding MCPoint in its TClonesArray.
  53. ** Also true for background files.
  54. ** -1 for fake hits
  55. **/
  56. Int_t fPointID;
  57. /** Number of other hits this one is merged with
  58. ** -1 => Hit was created without checking for merging
  59. ** 0 => Hit was not merged
  60. ** n => Hit was merged with n other hits
  61. **/
  62. Int_t fNMerged;
  63. /** Indicator for fake flag **/
  64. Bool_t fIsFake;
  65. ClassDef(CbmSttHitInfo,1);
  66. };
  67. #endif