StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRichMCPixel.h
1 
8 /***************************************************************************
9  *
10  * $Id: StRichMCPixel.h,v 2.3 2002/02/22 22:56:49 jeromel Exp $
11  *
12  * Author: Brian Lasiuk, May 2000
13  ***************************************************************************
14  *
15  * Description:
16  * MC pixel contains the raw pixel info but also
17  *
18  ***************************************************************************
19  *
20  * $Log: StRichMCPixel.h,v $
21  * Revision 2.3 2002/02/22 22:56:49 jeromel
22  * Doxygen basic documentation in all header files. None of this is required
23  * for QM production.
24  *
25  * Revision 2.2 2001/04/05 04:00:40 ullrich
26  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
27  *
28  * Revision 2.1 2000/05/22 21:44:44 ullrich
29  * Initial Revision
30  *
31  **************************************************************************/
32 #ifndef StRichMCPixel_hh
33 #define StRichMCPixel_hh
34 
35 #include "StRichPixel.h"
36 #include "StRichMCInfo.h"
37 #include "StContainers.h"
38 
39 class StRichMCPixel : public StRichPixel {
40 public:
41  StRichMCPixel();
42  StRichMCPixel(unsigned int packedData);
43  StRichMCPixel(unsigned int packedData, const StSPtrVecRichMCInfo&);
44  // StRichMCPixel(const StRichMCPixel&); use default
45  // StRichMCPixel& operator=(const StRichMCPixel&); use default
46  ~StRichMCPixel();
47 
48  int operator==(const StRichMCPixel&) const;
49  int operator!=(const StRichMCPixel&) const;
50 
51  unsigned short contributions() const;
52 
53  void addInfo(const StRichMCInfo*);
54  void setInfo(const StSPtrVecRichMCInfo&);
55 
56  const StSPtrVecRichMCInfo& getMCInfo() const;
57  StSPtrVecRichMCInfo& getMCInfo();
58 
59 protected:
60  StSPtrVecRichMCInfo mInfo;
61 
62  ClassDef(StRichMCPixel,1)
63 };
64 
65 inline unsigned short StRichMCPixel::contributions() const { return mInfo.size(); }
66 inline void StRichMCPixel::addInfo(const StRichMCInfo* p) { mInfo.push_back(p);}
67 inline void StRichMCPixel::setInfo(const StSPtrVecRichMCInfo& p) { mInfo = p;}
68 inline const StSPtrVecRichMCInfo& StRichMCPixel::getMCInfo() const {return mInfo;}
69 inline StSPtrVecRichMCInfo& StRichMCPixel::getMCInfo() { return mInfo;}
70 
71 #endif