StFlowPhiWgtMaker.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // $Id: StFlowPhiWgtMaker.h,v 1.6 2014/08/06 11:43:14 jeromel Exp $
  4. //
  5. // Authors: Art Poskanzer and Jamie Dunlop, May 2003
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////
  8. //
  9. // Description: Maker to produce PhiWgt files
  10. //
  11. ///////////////////////////////////////////////////////////////////////////////
  12. #ifndef StFlowPhiWgtMaker_H
  13. #define StFlowPhiWgtMaker_H
  14. #include <Stiostream.h>
  15. #include "StMaker.h"
  16. #include "StFlowMaker/StFlowConstants.h"
  17. #include "TString.h"
  18. class StFlowEvent;
  19. class StFlowSelection;
  20. class TFile;
  21. class TH1D;
  22. class StFlowPhiWgtMaker : public StMaker {
  23. // Makes histograms for PhiWgt and writes them out.
  24. // It reads particle quantities from StFlowEvent.
  25. public:
  26. /// Constructor
  27. StFlowPhiWgtMaker(const Char_t* name="FlowPhiWgt");
  28. virtual ~StFlowPhiWgtMaker();
  29. Int_t Init();
  30. Int_t Make();
  31. Int_t Finish();
  32. virtual const char *GetCVS() const {static const char cvs[]=
  33. "Tag $Name: $ $Id: StFlowPhiWgtMaker.h,v 1.6 2014/08/06 11:43:14 jeromel Exp $ built " __DATE__ " " __TIME__ ;
  34. return cvs;}
  35. private:
  36. static const int nCens = 10;
  37. TFile* phiWgtFile[nCens];
  38. void FillParticleHistograms();
  39. StFlowEvent* pFlowEvent; //! pointer to StFlowEvent
  40. StFlowSelection* pFlowSelect; //! selection object
  41. // for single histograms
  42. TH1F* mHistZDCSMDPsiWgtEast; //!
  43. TH1F* mHistZDCSMDPsiWgtWest; //!
  44. // for each harmonic, each selection, and each centrality
  45. struct histHars {
  46. TH1D* mHistPhiFarEast;
  47. TH1D* mHistPhiEast;
  48. TH1D* mHistPhiWest;
  49. TH1D* mHistPhiFarWest;
  50. TH1D* mHistPhiFtpcFarEast;
  51. TH1D* mHistPhiFtpcEast;
  52. TH1D* mHistPhiFtpcWest;
  53. TH1D* mHistPhiFtpcFarWest;
  54. TH1D* mHistPhiWgtFarEast;
  55. TH1D* mHistPhiWgtEast;
  56. TH1D* mHistPhiWgtWest;
  57. TH1D* mHistPhiWgtFarWest;
  58. TH1D* mHistPhiWgtFtpcFarEast;
  59. TH1D* mHistPhiWgtFtpcEast;
  60. TH1D* mHistPhiWgtFtpcWest;
  61. TH1D* mHistPhiWgtFtpcFarWest;
  62. };
  63. struct histCens;
  64. friend struct histCens;
  65. struct histCens {
  66. struct histHars histHar[2];
  67. };
  68. struct hists;
  69. friend struct hists;
  70. struct hists {
  71. struct histCens histCen[nCens];
  72. };
  73. struct hists hist[Flow::nSels]; //!
  74. TString MakerName;
  75. ClassDef(StFlowPhiWgtMaker,0) // macro for rootcint
  76. };
  77. #endif
  78. ///////////////////////////////////////////////////////////////////////////////
  79. //
  80. // $Log: StFlowPhiWgtMaker.h,v $
  81. // Revision 1.6 2014/08/06 11:43:14 jeromel
  82. // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
  83. //
  84. // Revision 1.5 2004/12/07 23:10:23 posk
  85. // Only odd and even phiWgt hists. If the old phiWgt file contains more than
  86. // two harmonics, only the first two are read. Now writes only the first two.
  87. //
  88. // Revision 1.4 2004/05/31 20:09:26 oldi
  89. // PicoDst format changed (Version 7) to hold ZDC SMD information.
  90. // Trigger cut modified to comply with TriggerCollections.
  91. // Centrality definition for 62 GeV data introduced.
  92. // Minor bug fixes.
  93. //
  94. // Revision 1.3 2003/09/10 19:47:15 perev
  95. // ansi corrs
  96. //
  97. // Revision 1.2 2003/09/02 17:58:11 perev
  98. // gcc 3.2 updates + WarnOff
  99. //
  100. // Revision 1.1 2003/05/16 20:44:51 posk
  101. // First commit of StFlowPhiWgtMaker
  102. //
  103. //
  104. /////////////////////////////////////////////////////////////////////////////////