StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPidAmpChannelInfoOut.h
1 /***************************************************************************
2  *
3  * $Id: StPidAmpChannelInfoOut.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  * TObject version of StPidAmpChannelInfo
11  ***************************************************************************
12  *
13  * $Log: StPidAmpChannelInfoOut.h,v $
14  * Revision 1.2 2003/09/02 17:58:09 perev
15  * gcc 3.2 updates + WarnOff
16  *
17  * Revision 1.1 2000/07/22 22:27:14 aihong
18  * move files from StPidAmpMaker to StEventUtilities
19  *
20  * Revision 1.3 2000/04/09 16:36:43 aihong
21  * change for adapting NHitDcaNet added
22  *
23  * Revision 1.2 2000/03/24 15:11:09 aihong
24  * add PrintContent()
25  *
26  * Revision 1.1.1.1 2000/03/09 17:48:33 aihong
27  * Installation of package
28  *
29  **************************************************************************/
30 
31 
32 
33 
34 #ifndef ROOT_StPidAmpChannelInfoOut
35 #define ROOT_StPidAmpChannelInfoOut
36 
37 #ifndef ROOT_TObject
38 //*KEEP, TObject.
39 #include "TObject.h"
40 //*KEND.
41 #endif
42 
43 #include <Stiostream.h>
44 
45 class StPidAmpChannelInfoOut : public TObject {
46 //this is a TObject version of StPidAmpChannelInfo
47 //so that the StPidAmpChannelInfo can be write out vi ROOT IO.
48 //Differ to StPidAmpChannel,
49 //this class do not implement STL, so be careful with index, bounding, etc.
50 
51  public:
52 
55  StPidAmpChannelInfoOut(Int_t nhitsStart, Int_t nhitsEnd, Double_t ptStart, Double_t ptEnd);
56  virtual ~StPidAmpChannelInfoOut();
57  StPidAmpChannelInfoOut(Int_t nhitsStart, Int_t nhitsEnd, Double_t ptStart, Double_t ptEnd, Double_t dcaStart, Double_t dcaEnd);
58  void SetNHitsRange(Int_t nhitsStart, Int_t nhitsEnd);
59  void SetPtRange(Double_t ptStart, Double_t ptEnd);
60  void SetDcaRange(Double_t dcaStart, Double_t dcaEnd);
61 
62  void PrintContent();
63 
64  Int_t NHitsStart() const;
65  Int_t NHitsEnd() const;
66  Double_t PtStart() const;
67  Double_t PtEnd() const;
68  Double_t DcaStart() const;
69  Double_t DcaEnd() const;
70 
71  Bool_t IsInChannel(Int_t nhits, Double_t pt);
72  Bool_t IsInChannel(Int_t nhits, Double_t pt,Double_t dca);
73 
74 
75 
76  private:
77 
78  Int_t mNHitsStart;
79  Int_t mNHitsEnd;
80  Double_t mPtStart;
81  Double_t mPtEnd;
82 
83  Double_t mDcaStart;
84  Double_t mDcaEnd;
85 
86 
87  ClassDef(StPidAmpChannelInfoOut,1)
88 
89 };
90 
91 
92 ostream& operator<<(ostream& s, const StPidAmpChannelInfoOut& infoOut);
93 
94 
95 #endif