StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPidAmpMaker.h
1 //
3 // $Id: StPidAmpMaker.h,v 1.11 2014/08/06 11:43:32 jeromel Exp $
4 //
5 // Authors: Aihong Tang
6 //
8 //
9 // Description: produce hist. for PIDFitter, which builds PID tables.
10 //
12 
13 #ifndef StPidAmpMaker_H
14 #define StPidAmpMaker_H
15 #include <Stiostream.h>
16 #include "StMaker.h"
17 #include "StFlowMaker/StFlowConstants.h"
18 #include "StPidProbabilityConst.hh"
19 #include "TVector2.h"
20 #include "TString.h"
21 class StFlowEvent;
22 class TH1F;
23 class TH1D;
24 class TH2F;
25 class TH2D;
26 class TH3F;
27 class StFlowSelection;
28 
29 class StPidAmpMaker : public StMaker {
30 
31 public:
32 
33  StPidAmpMaker(const Char_t* name="PidAmp");
34  StPidAmpMaker(const StPidAmpMaker &from){};
35  virtual ~StPidAmpMaker();
36 
37  Int_t Init();
38  Int_t Make();
39  Int_t Finish();
40  void SetMultBinNumber(int val);
41  virtual const char *GetCVS() const {static const char cvs[]=
42  "Tag $Name: $ $Id: StPidAmpMaker.h,v 1.11 2014/08/06 11:43:32 jeromel Exp $ built " __DATE__ " " __TIME__ ;
43  return cvs;}
44 
45 private:
46 
47  void FillParticleHistograms();
48  Int_t GetPositionInArray(Int_t theMultBin, Int_t theDcaBin, Int_t theChargeBin, Int_t thePBin, Int_t theEtaBin, Int_t theNHitsBin);
49 
50  StFlowEvent* pFlowEvent;
51  StFlowSelection* pFlowSelect;
52  TH1F** pidHisto;
53  int mSingleMultiplicityBin; //always be 1.
54  int theMultBin;
55 
56  TString MakerName;
57 
58  ClassDef(StPidAmpMaker,0) // macro for rootcint
59 };
60 
61 
62 inline void StPidAmpMaker::SetMultBinNumber(int val) {
63  theMultBin=val;
64 }
65 
66 #endif
67 
69 //
70 // $Log: StPidAmpMaker.h,v $
71 // Revision 1.11 2014/08/06 11:43:32 jeromel
72 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
73 //
74 // Revision 1.10 2003/09/10 19:47:26 perev
75 // ansi corrs
76 //
77 // Revision 1.9 2003/09/02 17:58:47 perev
78 // gcc 3.2 updates + WarnOff
79 //
80 // Revision 1.8 2002/02/14 21:25:56 aihong
81 // re-install the new version
82 //
83 
84 //