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
00033
00034
00035
00036
00037
00039 #ifndef StPeCEvent_h
00040 #define StPeCEvent_h
00041
00042 #include "Rtypes.h"
00043 #include "StPeCEnumerations.h"
00044 #include "TObject.h"
00045 #include "TClonesArray.h"
00046 #ifndef __CINT__
00047 #include "PhysicalConstants.h"
00049 #endif
00050 #include "StPeCPair.h"
00051 #include "StPeCTrack.h"
00052 #include "SystemOfUnits.h"
00053
00054 class StPeCEvent: public TObject {
00055
00056 public:
00057
00058 StPeCEvent();
00059 virtual ~StPeCEvent();
00060
00061
00062 Long_t eventNumber() const;
00063 Long_t runNumber() const;
00064 Int_t getNTot() const;
00065 Int_t getNPrim() const;
00066 Int_t getQTot() const;
00067 Int_t getNPriPairs ( ) { return nPPairs ; } ;
00068 Int_t getNSecPairs ( ) { return nSPairs ; } ;
00069 StPeCPair* getPriPair ( Int_t i ) ;
00070 StPeCPair* getSecPair ( Int_t i ) ;
00071 Float_t getPt() const;
00072 Float_t yRap() const;
00073 Float_t getXVertex() const;
00074 Float_t getYVertex() const;
00075 Float_t getZVertex() const;
00076 #ifndef __CINT__
00077 StMuDst* muDst;
00078 StEvent* eventP ;
00079 void addPair(StPeCPair* pair) const;
00080 Int_t fill ( StEvent* event ) ;
00081 Int_t fill(StMuDst* mudst);
00082 Int_t infoLevel ;
00083 void setInfoLevel ( Int_t in ) { infoLevel = in ; } ;
00084 StLorentzVectorF getEvent4Momentum(StPeCSpecies pid) const;
00085 #endif
00086 void clear ( ) ;
00087 void reset ( ) ;
00088
00089 Float_t mInv(StPeCSpecies pid) const;
00090 Float_t yRap(StPeCSpecies pid) const;
00091
00092 private:
00093 Int_t eventN;
00094 Int_t runN;
00095 Int_t nTot;
00096 Int_t nPrim;
00097 Int_t qTot;
00098 Int_t nGlobalTracks;
00099 Int_t nPrimaryTracks;
00100 Int_t nPrimaryTPC;
00101 Int_t nPrimaryFTPC;
00102 Float_t bField ;
00103 Float_t pt;
00104 Float_t xVertex;
00105 Float_t yVertex;
00106 Float_t zVertex;
00107 Float_t rVertex;
00108 Int_t nTracks ;
00109 Int_t nPPairs ;
00110 Int_t nSPairs ;
00111 TClonesArray *pPairs ;
00112 TClonesArray *sPairs ;
00113 TClonesArray *tracks;
00114
00115
00116 ClassDef(StPeCEvent,1)
00117 };
00118
00119 #endif
00120
00121
00122
00123
00124