BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EventDisplay/BesVisLib/BesVisLib-00-04-04/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
16 private:
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 Double_t fEvTime; // event start time
29 Int_t fEvTimeStatus; // event start time status
30 Double_t fEvTimeQuality; // event start time quality
31
32 Double_t fP; // Total momentum of all Mdc Tracks (in GeV/c)
33 Double_t fPt; // Transverse momentum
34 Double_t fPx;
35 Double_t fPy;
36 Double_t fPz;
37 Double_t fT;
38 Double_t fE;
39 Int_t fTimeType;
40 vector<Int_t> fTrigChannelVector;
41 vector<Int_t> fTrigConditionVector;
42
43
44 public:
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, vector<Int_t>& trigChannelVector);
50 virtual void SetEventMC(Bool_t mc);
51 virtual void SetEventEvTime(Double_t time, Int_t status, Double_t quality);
52 virtual void SetEventMdc(Double_t p, Double_t pt, Double_t px, Double_t py, Double_t pz);
53 virtual void SetEventTof(Double_t t);
54 virtual void SetEventEmc(Double_t e);
55 //virtual void SetEventTrig(Double_t e);
56
57 void PrintWord(TString &word,Int_t nbits, Int_t trigger,Int_t trigger2=0) const ;
58
59 inline Long64_t GetRunNumber() { return fRun; }
60 inline Long64_t GetEventNumber() { return fEvent; }
61 inline Bool_t GetEventMC() { return fMC; }
62
63 inline Int_t GetTimeType() { return fTimeType; }
64 inline vector<Int_t>& GetTrigChannelVector() { return fTrigChannelVector; }
65 inline vector<Int_t>& GetTrigConditionVector() { return fTrigConditionVector; }
66
67 inline Int_t GetEventYear() { return fYear; }
68 inline Int_t GetEventMonth() { return fMonth; }
69 inline Int_t GetEventDay() { return fDay; }
70 inline Int_t GetEventHour() { return fHour;}
71 inline Int_t GetEventMin() { return fMin;}
72 inline Int_t GetEventSec() { return fSec;}
73
74 inline Double_t GetEvTime() { return fEvTime; }
75 inline Int_t GetEvTimeStatus() { return fEvTimeStatus; }
76 inline Double_t GetEvTimeQuality() { return fEvTimeQuality; }
77
78 inline virtual Float_t GetP() { return fP; }
79 inline virtual Float_t GetPt() { return fPt; }
80 inline virtual Float_t GetPx() { return fPx; }
81 inline virtual Float_t GetPy() { return fPy; }
82 inline virtual Float_t GetPz() { return fPz; }
83
84 inline virtual Float_t GetT() { return fT; }
85
86 inline virtual Float_t GetE() { return fE; }
87
88 ClassDef(BesEventHeader,0) // Bes Event Header
89};
90
91#endif
Double_t time
virtual void SetEventTrig(Int_t timeType, vector< Int_t > &trigConditionVector, vector< Int_t > &trigChannelVector)
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 ~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