StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRichMCInfo.h
1 
9 /***************************************************************************
10  *
11  * $Id: StRichMCInfo.h,v 2.3 2002/02/22 22:56:49 jeromel Exp $
12  *
13  * Author: Brian Lasiuk, May 2000
14  ***************************************************************************
15  *
16  * Description:
17  * Contains the simulator info that is NOT stored in the
18  * g2t tables --> most importantly a tag of the process type
19  ***************************************************************************
20  *
21  * $Log: StRichMCInfo.h,v $
22  * Revision 2.3 2002/02/22 22:56:49 jeromel
23  * Doxygen basic documentation in all header files. None of this is required
24  * for QM production.
25  *
26  * Revision 2.2 2001/04/05 04:00:40 ullrich
27  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
28  *
29  * Revision 2.1 2000/05/22 21:44:38 ullrich
30  * Initial Revision
31  *
32  **************************************************************************/
33 #ifndef StRichMCInfo_hh
34 #define StRichMCInfo_hh
35 
36 #include "StObject.h"
37 #include "StEnumerations.h"
38 
39 class StRichMCInfo : public StObject {
40 public:
41  StRichMCInfo();
42  StRichMCInfo(int id, int gid, int trk,
43  float q, int process);
44  // StRichMCInfo(const StRichMCInfo&); use default
45  // StRichMCInfo& operator=(const StRichMCInfo&); use default
46  ~StRichMCInfo();
47 
48  int operator==(const StRichMCInfo&) const;
49  int operator!=(const StRichMCInfo&) const;
50 
51  int id() const;
52  int gid() const;
53  int trackp() const;
54  float charge() const;
55  int process() const;
56 
57 protected:
58  Int_t mId;
59  Int_t mGid;
60  Int_t mTrackp;
61  Float_t mCharge;
62  Int_t mProcess;
63 
64  ClassDef(StRichMCInfo,1)
65 };
66 
67 inline int StRichMCInfo::id() const { return ( mId ); }
68 inline int StRichMCInfo::gid() const { return ( mGid );}
69 inline int StRichMCInfo::trackp() const {return ( mTrackp );}
70 inline float StRichMCInfo::charge() const {return ( mCharge );}
71 inline int StRichMCInfo::process() const { return ( mProcess );}
72 
73 #endif