00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091 #ifndef StHbtEvent_hh
00092 #define StHbtEvent_hh
00093
00094 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
00095 #include "StHbtMaker/Infrastructure/StHbtTrackCollection.hh"
00096 #include "StHbtMaker/Infrastructure/StHbtV0Collection.hh"
00097 #include "StHbtMaker/Infrastructure/StHbtXiCollection.hh"
00098 #include "StHbtMaker/Infrastructure/StHbtKinkCollection.hh"
00099
00100 class StHbtTrackCut;
00101 class StHbtV0Cut;
00102 class StHbtXiCut;
00103 class StHbtKinkCut;
00104 #ifdef __ROOT__
00105 class StHbtTTreeEvent;
00106 class StMuDst;
00107 #endif
00108
00109 class StHbtEvent{
00110 public:
00111 StHbtEvent();
00112 #ifdef __ROOT__
00113 StHbtEvent(const StHbtTTreeEvent* );
00114 StHbtEvent(const StMuDst*, int trackType );
00115 StHbtEvent(const StMuDst*, int trackType, bool readV0Daughters);
00116 #endif
00117 StHbtEvent(const StHbtEvent&, StHbtTrackCut* =0, StHbtV0Cut* =0, StHbtXiCut* =0, StHbtKinkCut* =0);
00118 ~StHbtEvent();
00119 void RotateZ(const double);
00120
00121 unsigned short EventNumber() const;
00122 int RunNumber() const;
00123 unsigned short CtbMult() const;
00124 unsigned short ZdcAdcEast() const;
00125 unsigned short ZdcAdcWest() const;
00126 int NumberOfTpcHits() const;
00127 unsigned short NumberOfTracks() const;
00128 unsigned short NumberOfGoodTracks() const;
00129 unsigned int UncorrectedNumberOfPositivePrimaries() const;
00130 unsigned int UncorrectedNumberOfNegativePrimaries() const;
00131 unsigned int UncorrectedNumberOfPrimaries() const;
00132 float ReactionPlane(const int& wgt=0) const;
00133 float ReactionPlaneError(const int& wgt=0) const;
00134 float ReactionPlaneSubEventDifference(const int& wgt=0) const;
00135 StHbtThreeVector PrimVertPos() const;
00136 StHbtV0Collection* V0Collection() const;
00137 StHbtXiCollection* XiCollection() const;
00138 StHbtKinkCollection* KinkCollection() const;
00139 StHbtTrackCollection* TrackCollection() const;
00140 double MagneticField() const;
00141 unsigned int TriggerWord() const;
00142 unsigned int TriggerActionWord() const;
00143 unsigned int L3TriggerAlgorithm(const unsigned int& l=0) const;
00144
00145 void SetEventNumber(const unsigned short&);
00146 void SetRunNumber(const int&);
00147 void SetCtbMult(const unsigned short&);
00148 void SetZdcAdcEast(const unsigned short&);
00149 void SetZdcAdcWest(const unsigned short&);
00150 void SetNumberOfTpcHits(const int&);
00151 void SetNumberOfTracks(const unsigned short&);
00152 void SetNumberOfGoodTracks(const unsigned short&);
00153 void SetUncorrectedNumberOfPositivePrimaries(const unsigned int&);
00154 void SetUncorrectedNumberOfNegativePrimaries(const unsigned int&);
00155 void SetUncorrectedNumberOfPrimaries(const unsigned int&);
00156 void SetReactionPlane(const float&,const int& wgt=0);
00157 void SetReactionPlaneError(const float&, const int& wgt=0);
00158 void SetReactionPlaneSubEventDifference(const float&, const int& wgt=0);
00159 void SetPrimVertPos(const StHbtThreeVector&);
00160 void SetMagneticField(const double&);
00161 void SetTriggerWord(const unsigned int&);
00162 void SetTriggerActionWord(const unsigned int&);
00163 void SetL3TriggerAlgorithm(const unsigned int&, const unsigned int&);
00164
00165
00166 friend ostream& operator<<(ostream& out, StHbtEvent& ev);
00167 friend istream& operator>>(istream& in, StHbtEvent& ev);
00168
00169 private:
00170 unsigned short mEventNumber;
00171 unsigned short mRunNumber;
00172 unsigned short mCtbMultiplicity;
00173 unsigned short mZdcAdc[2];
00174
00175 int mTpcNhits;
00176 unsigned short mNumberOfTracks;
00177 unsigned short mNumberOfGoodTracks;
00178 unsigned int mUncorrectedNumberOfPositivePrimaries;
00179 unsigned int mUncorrectedNumberOfNegativePrimaries;
00180 unsigned int mUncorrectedNumberOfPrimaries;
00181 float mReactionPlane[2];
00182 float mReactionPlanePtWgt[2];
00183 double mMagneticField;
00184 unsigned int mTriggerWord;
00185 unsigned int mTriggerActionWord;
00186 unsigned int mL3TriggerAlgorithm[4];
00187
00188 StHbtThreeVector mPrimVertPos;
00189 StHbtTrackCollection* mTrackCollection;
00190 StHbtV0Collection* mV0Collection;
00191 StHbtXiCollection* mXiCollection;
00192 StHbtKinkCollection* mKinkCollection;
00193
00194 friend class StHbtIOBinary;
00195 friend class StHbtTTreeEvent;
00196 friend class StHbtTTreeTrack;
00197 friend class StHbtTTreeV0;
00198 friend class StHbtTTreeXi;
00199 friend class StHbtTTreeKink;
00200 };
00201
00202
00203
00204 #endif