BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEventHeader Class Reference

#include <BesEventHeader.h>

+ Inheritance diagram for BesEventHeader:

Public Member Functions

 BesEventHeader ()
 
virtual ~BesEventHeader ()
 
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 SetEventMC (Bool_t mc)
 
virtual void SetEventRec (Bool_t rec)
 
virtual void SetEventEvTime (Double_t time, Int_t status, Double_t quality)
 
virtual void SetEventMdc (Double_t p, Double_t pt, Double_t px, Double_t py, Double_t pz)
 
virtual void SetEventTof (Double_t t)
 
virtual void SetEventEmc (Double_t e)
 
void PrintWord (TString &word, Int_t nbits, Int_t trigger, Int_t trigger2=0) const
 
Long64_t GetRunNumber ()
 
Long64_t GetEventNumber ()
 
Bool_t GetEventMC ()
 
Int_t GetTimeType ()
 
vector< Int_t > & GetTrigChannelVector ()
 
vector< Int_t > & GetTrigConditionVector ()
 
Int_t GetEventYear ()
 
Int_t GetEventMonth ()
 
Int_t GetEventDay ()
 
Int_t GetEventHour ()
 
Int_t GetEventMin ()
 
Int_t GetEventSec ()
 
Bool_t GetEventRec ()
 
Double_t GetEvTime ()
 
Int_t GetEvTimeStatus ()
 
Double_t GetEvTimeQuality ()
 
virtual Float_t GetP ()
 
virtual Float_t GetPt ()
 
virtual Float_t GetPx ()
 
virtual Float_t GetPy ()
 
virtual Float_t GetPz ()
 
virtual Float_t GetT ()
 
virtual Float_t GetE ()
 
 BesEventHeader ()
 
virtual ~BesEventHeader ()
 
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 SetEventMC (Bool_t mc)
 
virtual void SetEventRec (Bool_t rec)
 
virtual void SetEventEvTime (Double_t time, Int_t status, Double_t quality)
 
virtual void SetEventMdc (Double_t p, Double_t pt, Double_t px, Double_t py, Double_t pz)
 
virtual void SetEventTof (Double_t t)
 
virtual void SetEventEmc (Double_t e)
 
void PrintWord (TString &word, Int_t nbits, Int_t trigger, Int_t trigger2=0) const
 
Long64_t GetRunNumber ()
 
Long64_t GetEventNumber ()
 
Bool_t GetEventMC ()
 
Int_t GetTimeType ()
 
vector< Int_t > & GetTrigChannelVector ()
 
vector< Int_t > & GetTrigConditionVector ()
 
Int_t GetEventYear ()
 
Int_t GetEventMonth ()
 
Int_t GetEventDay ()
 
Int_t GetEventHour ()
 
Int_t GetEventMin ()
 
Int_t GetEventSec ()
 
Bool_t GetEventRec ()
 
Double_t GetEvTime ()
 
Int_t GetEvTimeStatus ()
 
Double_t GetEvTimeQuality ()
 
virtual Float_t GetP ()
 
virtual Float_t GetPt ()
 
virtual Float_t GetPx ()
 
virtual Float_t GetPy ()
 
virtual Float_t GetPz ()
 
virtual Float_t GetT ()
 
virtual Float_t GetE ()
 

Detailed Description

Constructor & Destructor Documentation

◆ BesEventHeader() [1/2]

BesEventHeader::BesEventHeader ( )

◆ ~BesEventHeader() [1/2]

BesEventHeader::~BesEventHeader ( )
virtual

Definition at line 51 of file BesEventHeader.cxx.

51 {
52 //
53 // BesEventHeader default destructor
54 if ( gDebug ) cout << "BesEventHeader dtor called" << endl;
55
56}

◆ BesEventHeader() [2/2]

BesEventHeader::BesEventHeader ( )

◆ ~BesEventHeader() [2/2]

virtual BesEventHeader::~BesEventHeader ( )
virtual

Member Function Documentation

◆ GetE() [1/2]

virtual Float_t BesEventHeader::GetE ( )
inlinevirtual

Definition at line 89 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

89{ return fE; }

◆ GetE() [2/2]

virtual Float_t BesEventHeader::GetE ( )
inlinevirtual

Definition at line 89 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

89{ return fE; }

◆ GetEventDay() [1/2]

Int_t BesEventHeader::GetEventDay ( )
inline

Definition at line 71 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

71{ return fDay; }

Referenced by BesEvent::GetDay().

◆ GetEventDay() [2/2]

Int_t BesEventHeader::GetEventDay ( )
inline

Definition at line 71 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

71{ return fDay; }

◆ GetEventHour() [1/2]

Int_t BesEventHeader::GetEventHour ( )
inline

Definition at line 72 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

72{ return fHour;}

Referenced by BesEvent::GetHour().

◆ GetEventHour() [2/2]

Int_t BesEventHeader::GetEventHour ( )
inline

Definition at line 72 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

72{ return fHour;}

◆ GetEventMC() [1/2]

Bool_t BesEventHeader::GetEventMC ( )
inline

Definition at line 63 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

63{ return fMC; }

Referenced by BesEvent::GetMC().

◆ GetEventMC() [2/2]

Bool_t BesEventHeader::GetEventMC ( )
inline

Definition at line 63 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

63{ return fMC; }

◆ GetEventMin() [1/2]

Int_t BesEventHeader::GetEventMin ( )
inline

Definition at line 73 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

73{ return fMin;}

Referenced by BesEvent::GetMin().

◆ GetEventMin() [2/2]

Int_t BesEventHeader::GetEventMin ( )
inline

Definition at line 73 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

73{ return fMin;}

◆ GetEventMonth() [1/2]

Int_t BesEventHeader::GetEventMonth ( )
inline

Definition at line 70 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

70{ return fMonth; }

Referenced by BesEvent::GetMonth().

◆ GetEventMonth() [2/2]

Int_t BesEventHeader::GetEventMonth ( )
inline

Definition at line 70 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

70{ return fMonth; }

◆ GetEventNumber() [1/2]

Long64_t BesEventHeader::GetEventNumber ( )
inline

Definition at line 62 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

62{ return fEvent; }

Referenced by BesEvent::GetEvent().

◆ GetEventNumber() [2/2]

Long64_t BesEventHeader::GetEventNumber ( )
inline

Definition at line 62 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

62{ return fEvent; }

◆ GetEventRec() [1/2]

Bool_t BesEventHeader::GetEventRec ( )
inline

Definition at line 76 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

76{ return fRec; } //Long Peixun's update: Rec flag

Referenced by BesVisDisplay::DrawHeader().

◆ GetEventRec() [2/2]

Bool_t BesEventHeader::GetEventRec ( )
inline

Definition at line 76 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

76{ return fRec; } //Long Peixun's update: Rec flag

◆ GetEventSec() [1/2]

Int_t BesEventHeader::GetEventSec ( )
inline

Definition at line 74 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

74{ return fSec;}

Referenced by BesEvent::GetSec().

◆ GetEventSec() [2/2]

Int_t BesEventHeader::GetEventSec ( )
inline

Definition at line 74 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

74{ return fSec;}

◆ GetEventYear() [1/2]

Int_t BesEventHeader::GetEventYear ( )
inline

Definition at line 69 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

69{ return fYear; }

Referenced by BesEvent::GetYear().

◆ GetEventYear() [2/2]

Int_t BesEventHeader::GetEventYear ( )
inline

Definition at line 69 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

69{ return fYear; }

◆ GetEvTime() [1/2]

Double_t BesEventHeader::GetEvTime ( )
inline

◆ GetEvTime() [2/2]

Double_t BesEventHeader::GetEvTime ( )
inline

Definition at line 77 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

77{ return fEvTime; }

◆ GetEvTimeQuality() [1/2]

Double_t BesEventHeader::GetEvTimeQuality ( )
inline

Definition at line 79 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

79{ return fEvTimeQuality; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetEvTimeQuality() [2/2]

Double_t BesEventHeader::GetEvTimeQuality ( )
inline

Definition at line 79 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

79{ return fEvTimeQuality; }

◆ GetEvTimeStatus() [1/2]

Int_t BesEventHeader::GetEvTimeStatus ( )
inline

Definition at line 78 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

78{ return fEvTimeStatus; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetEvTimeStatus() [2/2]

Int_t BesEventHeader::GetEvTimeStatus ( )
inline

Definition at line 78 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

78{ return fEvTimeStatus; }

◆ GetP() [1/2]

virtual Float_t BesEventHeader::GetP ( )
inlinevirtual

Definition at line 81 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

81{ return fP; }

◆ GetP() [2/2]

virtual Float_t BesEventHeader::GetP ( )
inlinevirtual

Definition at line 81 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

81{ return fP; }

◆ GetPt() [1/2]

virtual Float_t BesEventHeader::GetPt ( )
inlinevirtual

Definition at line 82 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

82{ return fPt; }

◆ GetPt() [2/2]

virtual Float_t BesEventHeader::GetPt ( )
inlinevirtual

Definition at line 82 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

82{ return fPt; }

◆ GetPx() [1/2]

virtual Float_t BesEventHeader::GetPx ( )
inlinevirtual

Definition at line 83 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

83{ return fPx; }

◆ GetPx() [2/2]

virtual Float_t BesEventHeader::GetPx ( )
inlinevirtual

Definition at line 83 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

83{ return fPx; }

◆ GetPy() [1/2]

virtual Float_t BesEventHeader::GetPy ( )
inlinevirtual

Definition at line 84 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

84{ return fPy; }

◆ GetPy() [2/2]

virtual Float_t BesEventHeader::GetPy ( )
inlinevirtual

Definition at line 84 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

84{ return fPy; }

◆ GetPz() [1/2]

virtual Float_t BesEventHeader::GetPz ( )
inlinevirtual

Definition at line 85 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

85{ return fPz; }

◆ GetPz() [2/2]

virtual Float_t BesEventHeader::GetPz ( )
inlinevirtual

Definition at line 85 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

85{ return fPz; }

◆ GetRunNumber() [1/2]

Long64_t BesEventHeader::GetRunNumber ( )
inline

Definition at line 61 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

61{ return fRun; }

Referenced by BesEvent::GetRun().

◆ GetRunNumber() [2/2]

Long64_t BesEventHeader::GetRunNumber ( )
inline

Definition at line 61 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

61{ return fRun; }

◆ GetT() [1/2]

virtual Float_t BesEventHeader::GetT ( )
inlinevirtual

Definition at line 87 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

87{ return fT; }

◆ GetT() [2/2]

virtual Float_t BesEventHeader::GetT ( )
inlinevirtual

Definition at line 87 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

87{ return fT; }

◆ GetTimeType() [1/2]

Int_t BesEventHeader::GetTimeType ( )
inline

Definition at line 65 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

65{ return fTimeType; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTimeType() [2/2]

Int_t BesEventHeader::GetTimeType ( )
inline

Definition at line 65 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

65{ return fTimeType; }

◆ GetTrigChannelVector() [1/2]

vector< Int_t > & BesEventHeader::GetTrigChannelVector ( )
inline

Definition at line 66 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

66{ return fTrigChannelVector; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTrigChannelVector() [2/2]

vector< Int_t > & BesEventHeader::GetTrigChannelVector ( )
inline

Definition at line 66 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

66{ return fTrigChannelVector; }

◆ GetTrigConditionVector() [1/2]

vector< Int_t > & BesEventHeader::GetTrigConditionVector ( )
inline

Definition at line 67 of file EventDisplay/BesVisLib/BesVisLib-00-05-04/BesVisLib/BesEventHeader.h.

67{ return fTrigConditionVector; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTrigConditionVector() [2/2]

vector< Int_t > & BesEventHeader::GetTrigConditionVector ( )
inline

Definition at line 67 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

67{ return fTrigConditionVector; }

◆ PrintWord() [1/2]

void BesEventHeader::PrintWord ( TString &  word,
Int_t  nbits,
Int_t  trigger,
Int_t  trigger2 = 0 
) const

Definition at line 166 of file BesEventHeader.cxx.

166 {
167 Int_t j;
168 if (trigger!=0){
169 for (j=0;j<nbits;j++){
170 if ((trigger>>j)&0x1) word+=Form(" %.2d",j+1);
171 }
172 }
173 if (trigger2!=0){
174 for (j=0;j<nbits;j++){
175 if ((trigger2>>j)&0x1) word+=Form(" %.2d",j+17);
176 }
177 }
178}

◆ PrintWord() [2/2]

void BesEventHeader::PrintWord ( TString &  word,
Int_t  nbits,
Int_t  trigger,
Int_t  trigger2 = 0 
) const

◆ SetEventEmc() [1/2]

void BesEventHeader::SetEventEmc ( Double_t  e)
virtual

Definition at line 160 of file BesEventHeader.cxx.

161{
162 fE = e;
163}

Referenced by BesEvent::SetEvent().

◆ SetEventEmc() [2/2]

virtual void BesEventHeader::SetEventEmc ( Double_t  e)
virtual

◆ SetEventEvTime() [1/2]

void BesEventHeader::SetEventEvTime ( Double_t  time,
Int_t  status,
Double_t  quality 
)
virtual

Definition at line 133 of file BesEventHeader.cxx.

134{
135 fEvTime = time;
136 fEvTimeStatus = status;
137 fEvTimeQuality = quality;
138}
Double_t time

Referenced by BesEvent::SetEvent().

◆ SetEventEvTime() [2/2]

virtual void BesEventHeader::SetEventEvTime ( Double_t  time,
Int_t  status,
Double_t  quality 
)
virtual

◆ SetEventHeaderGeneral() [1/2]

void BesEventHeader::SetEventHeaderGeneral ( Long64_t  run,
Long64_t  event,
Int_t  time1,
Int_t  time2 
)
virtual

Definition at line 85 of file BesEventHeader.cxx.

85 {
86 //
87 // Set general event header
88 fRun = run;
89 fEvent = event;
90
91
92 // modify date
93 if (time1 > 0) {
94 int a,b;
95 a=time1%100;
96 fDay=a;
97
98 b=(time1-a)%10000;
99 fMonth=b/100;
100
101 fYear=(time1-a-b)/10000;
102 }
103
104 //modify time
105 if (time2 > 0) {
106 int c,d;
107 c=time2%100;
108 fSec=c;
109
110 d=(time2-c)%10000;
111 fMin=d/100;
112
113 fHour=(time2-c-d)/10000;
114 }
115}
const double b
Definition: slope.cxx:9

Referenced by BesEvent::SetEvent().

◆ SetEventHeaderGeneral() [2/2]

virtual void BesEventHeader::SetEventHeaderGeneral ( Long64_t  run,
Long64_t  event,
Int_t  time1,
Int_t  time2 
)
virtual

◆ SetEventMC() [1/2]

void BesEventHeader::SetEventMC ( Bool_t  mc)
virtual

Definition at line 119 of file BesEventHeader.cxx.

120{
121 fMC = mc;
122}

Referenced by BesEvent::SetEvent().

◆ SetEventMC() [2/2]

virtual void BesEventHeader::SetEventMC ( Bool_t  mc)
virtual

◆ SetEventMdc() [1/2]

void BesEventHeader::SetEventMdc ( Double_t  p,
Double_t  pt,
Double_t  px,
Double_t  py,
Double_t  pz 
)
virtual

Definition at line 142 of file BesEventHeader.cxx.

143{
144 fP = p;
145 fPt = pt;
146 fPx = px;
147 fPy = py;
148 fPz = pz;
149}

Referenced by BesEvent::SetEvent().

◆ SetEventMdc() [2/2]

virtual void BesEventHeader::SetEventMdc ( Double_t  p,
Double_t  pt,
Double_t  px,
Double_t  py,
Double_t  pz 
)
virtual

◆ SetEventRec() [1/2]

void BesEventHeader::SetEventRec ( Bool_t  rec)
virtual

Definition at line 126 of file BesEventHeader.cxx.

127{
128 fRec = rec;
129}

Referenced by BesEvent::SetEvent().

◆ SetEventRec() [2/2]

virtual void BesEventHeader::SetEventRec ( Bool_t  rec)
virtual

◆ SetEventTof() [1/2]

void BesEventHeader::SetEventTof ( Double_t  t)
virtual

Definition at line 153 of file BesEventHeader.cxx.

154{
155 fT = t;
156}
TTree * t
Definition: binning.cxx:23

◆ SetEventTof() [2/2]

virtual void BesEventHeader::SetEventTof ( Double_t  t)
virtual

◆ SetEventTrig() [1/2]

void BesEventHeader::SetEventTrig ( Int_t  timeType,
vector< Int_t > &  trigConditionVector,
vector< Int_t > &  trigChannelVector 
)
virtual

Definition at line 59 of file BesEventHeader.cxx.

61 {
62
63 fTimeType = timeType;
64 fTrigChannelVector.clear();
65 fTrigConditionVector.clear();
66 fTrigChannelVector = trigChannelVector;
67 fTrigConditionVector = trigConditionVector;
68 //************************************
69 cout << "BesEventHeader::time Type: " << timeType << endl;
70 vector<Int_t>::iterator pTrigVector;
71 for (pTrigVector = trigConditionVector.begin();
72 pTrigVector != trigConditionVector.end();
73 pTrigVector++){
74 cout << "BesEventHeader::trigCondition: " << *pTrigVector << endl;
75 }
76 for (pTrigVector = trigChannelVector.begin();
77 pTrigVector != trigChannelVector.end();
78 pTrigVector++){
79 cout << "BesEventHeader::trigChannel: " << *pTrigVector << endl;
80 }
81 //************************************
82}

Referenced by BesEvent::SetEvent().

◆ SetEventTrig() [2/2]

virtual void BesEventHeader::SetEventTrig ( Int_t  timeType,
vector< Int_t > &  trigConditionVector,
vector< Int_t > &  trigChannelVector 
)
virtual

The documentation for this class was generated from the following files: