BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EventDisplay/BesVisLib/include/BesVisLib/BesEventHeader.h
Go to the documentation of this file.
1//
2// BesEventHeader.h
3//
4
5#ifndef BES_EVENT_HEADER
6#define BES_EVENT_HEADER
7
8#include <TObject.h>
9#include <TString.h>
10#include <vector>
11
12using std::vector;
13
14class BesEventHeader : public TObject {
15
16private:
17 Long64_t fRun; // Run number
18 Long64_t fEvent; // Event number
19 Bool_t fMC; // MC event
20
21 Int_t fDay; // Day of Event
22 Int_t fMonth; // Month of Event
23 Int_t fYear; // Year of Event
24 Int_t fHour; // Hour of Event
25 Int_t fMin; // Minute of Event
26 Int_t fSec; // Second of Event
27
28 Bool_t fRec; // Long Peixun's update: Reconstruction Event
29 Double_t fEvTime; // event start time
30 Int_t fEvTimeStatus; // event start time status
31 Double_t fEvTimeQuality; // event start time quality
32
33 Double_t fP; // Total momentum of all Mdc Tracks (in GeV/c)
34 Double_t fPt; // Transverse momentum
35 Double_t fPx;
36 Double_t fPy;
37 Double_t fPz;
38 Double_t fT;
39 Double_t fE;
40 Int_t fTimeType;
41 vector<Int_t> fTrigChannelVector;
42 vector<Int_t> fTrigConditionVector;
43
44public:
46 virtual ~BesEventHeader();
47
48 virtual void SetEventHeaderGeneral( Long64_t run, Long64_t event, Int_t time1, Int_t time2 );
49 virtual void SetEventTrig( Int_t timeType, vector<Int_t>& trigConditionVector,
50 vector<Int_t>& trigChannelVector );
51 virtual void SetEventMC( Bool_t mc );
52 virtual void SetEventRec( Bool_t rec ); // Long Peixun's update: Rec flag
53 virtual void SetEventEvTime( Double_t time, Int_t status, Double_t quality );
54 virtual void SetEventMdc( Double_t p, Double_t pt, Double_t px, Double_t py, Double_t pz );
55 virtual void SetEventTof( Double_t t );
56 virtual void SetEventEmc( Double_t e );
57 // virtual void SetEventTrig(Double_t e);
58
59 void PrintWord( TString& word, Int_t nbits, Int_t trigger, Int_t trigger2 = 0 ) const;
60
61 inline Long64_t GetRunNumber() { return fRun; }
62 inline Long64_t GetEventNumber() { return fEvent; }
63 inline Bool_t GetEventMC() { return fMC; }
64
65 inline Int_t GetTimeType() { return fTimeType; }
66 inline vector<Int_t>& GetTrigChannelVector() { return fTrigChannelVector; }
67 inline vector<Int_t>& GetTrigConditionVector() { return fTrigConditionVector; }
68
69 inline Int_t GetEventYear() { return fYear; }
70 inline Int_t GetEventMonth() { return fMonth; }
71 inline Int_t GetEventDay() { return fDay; }
72 inline Int_t GetEventHour() { return fHour; }
73 inline Int_t GetEventMin() { return fMin; }
74 inline Int_t GetEventSec() { return fSec; }
75
76 inline Bool_t GetEventRec() { return fRec; } // Long Peixun's update: Rec flag
77 inline Double_t GetEvTime() { return fEvTime; }
78 inline Int_t GetEvTimeStatus() { return fEvTimeStatus; }
79 inline Double_t GetEvTimeQuality() { return fEvTimeQuality; }
80
81 inline virtual Float_t GetP() { return fP; }
82 inline virtual Float_t GetPt() { return fPt; }
83 inline virtual Float_t GetPx() { return fPx; }
84 inline virtual Float_t GetPy() { return fPy; }
85 inline virtual Float_t GetPz() { return fPz; }
86
87 inline virtual Float_t GetT() { return fT; }
88
89 inline virtual Float_t GetE() { return fE; }
90
91 ClassDef( BesEventHeader, 0 ) // Bes Event Header
92};
93
94#endif
Double_t time
virtual void SetEventMdc(Double_t p, Double_t pt, Double_t px, Double_t py, Double_t pz)
void PrintWord(TString &word, Int_t nbits, Int_t trigger, Int_t trigger2=0) const
virtual void SetEventHeaderGeneral(Long64_t run, Long64_t event, Int_t time1, Int_t time2)
virtual void SetEventTrig(Int_t timeType, vector< Int_t > &trigConditionVector, vector< Int_t > &trigChannelVector)
virtual void SetEventRec(Bool_t rec)
virtual ~BesEventHeader()
virtual void SetEventEvTime(Double_t time, Int_t status, Double_t quality)
virtual void SetEventEmc(Double_t e)
virtual void SetEventTof(Double_t t)
virtual void SetEventMC(Bool_t mc)
int t()
Definition t.c:1