StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPidAmpNetOut.h
1 /***************************************************************************
2  *
3  * $Id: StPidAmpNetOut.h,v 1.2 2003/09/02 17:58:09 perev Exp $
4  *
5  * Author: Aihong Tang & Richard Witt (FORTRAN Version),Kent State U.
6  * Send questions to aihong@cnr.physics.kent.edu
7  ***************************************************************************
8  *
9  * Description:part of StPidAmpMaker package
10  * This is the object to be written out.
11  * It contains: (if all filled)
12  * 1.Parameters for describing the band
13  * 2.Parameters for describing the amplitude
14  * 3.Parameters for describing the resolution
15  * 4.Parameters for calibration
16  * 5.Geant ID for the net type
17  ***************************************************************************
18  *
19  * $Log: StPidAmpNetOut.h,v $
20  * Revision 1.2 2003/09/02 17:58:09 perev
21  * gcc 3.2 updates + WarnOff
22  *
23  * Revision 1.1 2000/07/22 22:27:14 aihong
24  * move files from StPidAmpMaker to StEventUtilities
25  *
26  * Revision 1.4 2000/05/05 21:24:58 aihong
27  * change operator << to let it pass sun compiler
28  *
29  * Revision 1.3 2000/05/05 19:20:46 aihong
30  * let StPidAmpNetOut::Get*ParArray() returns pointer instead of obj.
31  *
32  * Revision 1.2 2000/03/24 15:10:37 aihong
33  * add PrintContent()
34  *
35  * Revision 1.1.1.1 2000/03/09 17:48:34 aihong
36  * Installation of package
37  *
38  **************************************************************************/
39 
40 //this class do not implement STL, so be careful with index, bounding, etc.
41 
42 #ifndef ROOT_StPidAmpNetOut
43 #define ROOT_StPidAmpNetOut
44 
45 #ifndef ROOT_TObject
46 //*KEEP, TObject.
47 #include "TObject.h"
48 //*KEND.
49 #endif
50 
51 #include <Stiostream.h>
52 #include "TNamed.h"
53 #include "TArrayD.h"
54 
55 class StPidAmpNetOut : public TNamed {
56 
57  public:
58 
61  StPidAmpNetOut(Text_t* name,Text_t* title, Int_t id,TArrayD bandParAry, TArrayD ampParAry, TArrayD linrParAry);
62  StPidAmpNetOut(const char* name,const char* title, Int_t id,TArrayD bandParAry, TArrayD ampParAry, TArrayD linrParAry);
63 
64 
65  virtual ~StPidAmpNetOut();
66  void SetBandParArray(TArrayD bandParAry);
67  void SetAmpParArray(TArrayD ampParAry);
68  void SetResoParArray(TArrayD linrAry);
69  void SetGeantID(Int_t id);
70  void SetCalibConst(Double_t cal);
71  void PrintContent();
72 
73 
74  TArrayD* GetBandParArray();
75  TArrayD* GetAmpParArray();
76  TArrayD* GetResoParArray();
77 
78  Int_t GetNBandPars() const;
79  Int_t GetNAmpPars() const;
80  Int_t GetNResoPars() const;
81 
82  Int_t GetGeantID() const;
83  Double_t GetCalibConst() const;
84 
85  private:
86 
87  Int_t mGeantID;
88  Double_t mCalibConst;
89 
90  TArrayD mBandParArray;
91  TArrayD mAmpParArray;
92  TArrayD mResoParArray;
93 
94  ClassDef(StPidAmpNetOut,1)
95 
96  };
97 
98 ostream& operator<<(ostream& s, StPidAmpNetOut& netOut);
99 
100 #endif
101