StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSpinInfo.h
1 
11 #ifndef _ST_SPIN_INFO_H_
12 #define _ST_SPIN_INFO_H_
13 
14 #include <TObject.h>
15 
16 
17 class StSpinInfo_t : public TObject {
18  public:
19 
21  StSpinInfo_t();
22 
24  virtual ~StSpinInfo_t(){ /* */ };
25 
27  void clear();
28 
29  enum PolarizationType_t { UNDEFINED_POLARIZATION, LONG_LONG_POLARIZATION, TRANS_TRANS_POLARIZATION };
30 
32  Bool_t getValidDB() const { return mValidDB; };
33  UShort_t getSpin4() const { return mSpin4; };
34  UShort_t getBunchCrossing7bit() const { return mBunchCrossing7bit; };
35  UShort_t getBunchCrossing48bit() const { return mBunchCrossing48bit; };
36  UShort_t getBunchCrossingStar() const { return mBunchCrossingStar; };
37  UShort_t getPolarizationType() const { return mPolarizationType; };
38  UShort_t getDsmVertex() const { return mDsmVertex; };
39  Bool_t bXingIsMaskedInSpinDB() const { return mbXingIsMasked; };
40 
42  void setValidDB( Bool_t ValidDB ){ mValidDB = ValidDB; };
43  void setSpin4( UShort_t Spin4 ){ mSpin4 = Spin4; };
44  void setBunchCrossing7bit( UShort_t BunchCrossing7bit ){ mBunchCrossing7bit = BunchCrossing7bit; };
45  void setBunchCrossing48bit( UShort_t BunchCrossing48bit ){ mBunchCrossing48bit = BunchCrossing48bit; };
46  void setBunchCrossingStar( UShort_t BunchCrossingStar ){ mBunchCrossingStar = BunchCrossingStar; };
47  void setPolarizationType( PolarizationType_t PolarizationType ){ mPolarizationType = PolarizationType; };
48  void setDsmVertex( UShort_t DsmVertex ){ mDsmVertex = DsmVertex; };
49  void setbXingIsMaskedInSpinDB( Bool_t itIs = 1 ){ mbXingIsMasked = itIs; };
50 
51 
52  protected:
53  Bool_t mValidDB; //
54  Bool_t mbXingIsMasked; //
55  UShort_t mSpin4; //
56  UShort_t mBunchCrossing7bit; //
57  UShort_t mBunchCrossing48bit; //
58  UShort_t mBunchCrossingStar; //
59  UShort_t mDsmVertex; //
60 
61  PolarizationType_t mPolarizationType; //
62 
63  private:
64  ClassDef( StSpinInfo_t, 3 );
65 };
66 
67 #endif
68 
69 /*
70  * $Id: StSpinInfo.h,v 1.2 2013/02/21 21:57:39 sgliske Exp $
71  * $Log: StSpinInfo.h,v $
72  * Revision 1.2 2013/02/21 21:57:39 sgliske
73  * added mask field
74  *
75  * Revision 1.1 2012/11/26 19:03:06 sgliske
76  * moved from offline/users/sgliske/StRoot/StSpinPool/StSpinInfo to StRoot/StEEmcPool/EEmcTreeContainers
77  *
78  *
79  */
Bool_t getValidDB() const
Accessors.
Definition: StSpinInfo.h:32
StSpinInfo_t()
Construtor.
Definition: StSpinInfo.cxx:14
void clear()
Clear function.
Definition: StSpinInfo.cxx:18
virtual ~StSpinInfo_t()
Deconstructor.
Definition: StSpinInfo.h:24
void setValidDB(Bool_t ValidDB)
Modifiers.
Definition: StSpinInfo.h:42