CGEM BOSS 6.6.5.i
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 ()
 

Detailed Description

Definition at line 14 of file BesEventHeader.h.

Constructor & Destructor Documentation

◆ BesEventHeader()

BesEventHeader::BesEventHeader ( )

◆ ~BesEventHeader()

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}

Member Function Documentation

◆ GetE()

virtual Float_t BesEventHeader::GetE ( )
inlinevirtual

Definition at line 89 of file BesEventHeader.h.

89{ return fE; }

◆ GetEventDay()

Int_t BesEventHeader::GetEventDay ( )
inline

Definition at line 71 of file BesEventHeader.h.

71{ return fDay; }

Referenced by BesEvent::GetDay().

◆ GetEventHour()

Int_t BesEventHeader::GetEventHour ( )
inline

Definition at line 72 of file BesEventHeader.h.

72{ return fHour;}

Referenced by BesEvent::GetHour().

◆ GetEventMC()

Bool_t BesEventHeader::GetEventMC ( )
inline

Definition at line 63 of file BesEventHeader.h.

63{ return fMC; }

Referenced by BesEvent::GetMC().

◆ GetEventMin()

Int_t BesEventHeader::GetEventMin ( )
inline

Definition at line 73 of file BesEventHeader.h.

73{ return fMin;}

Referenced by BesEvent::GetMin().

◆ GetEventMonth()

Int_t BesEventHeader::GetEventMonth ( )
inline

Definition at line 70 of file BesEventHeader.h.

70{ return fMonth; }

Referenced by BesEvent::GetMonth().

◆ GetEventNumber()

Long64_t BesEventHeader::GetEventNumber ( )
inline

Definition at line 62 of file BesEventHeader.h.

62{ return fEvent; }

Referenced by BesEvent::GetEvent().

◆ GetEventRec()

Bool_t BesEventHeader::GetEventRec ( )
inline

Definition at line 76 of file BesEventHeader.h.

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

Referenced by BesVisDisplay::DrawHeader().

◆ GetEventSec()

Int_t BesEventHeader::GetEventSec ( )
inline

Definition at line 74 of file BesEventHeader.h.

74{ return fSec;}

Referenced by BesEvent::GetSec().

◆ GetEventYear()

Int_t BesEventHeader::GetEventYear ( )
inline

Definition at line 69 of file BesEventHeader.h.

69{ return fYear; }

Referenced by BesEvent::GetYear().

◆ GetEvTime()

Double_t BesEventHeader::GetEvTime ( )
inline

Definition at line 77 of file BesEventHeader.h.

77{ return fEvTime; }

Referenced by BesVisDisplay::DrawHeader(), CgemROOTGeo::SetHits(), and MdcROOTGeo::SetHits().

◆ GetEvTimeQuality()

Double_t BesEventHeader::GetEvTimeQuality ( )
inline

Definition at line 79 of file BesEventHeader.h.

79{ return fEvTimeQuality; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetEvTimeStatus()

Int_t BesEventHeader::GetEvTimeStatus ( )
inline

Definition at line 78 of file BesEventHeader.h.

78{ return fEvTimeStatus; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetP()

virtual Float_t BesEventHeader::GetP ( )
inlinevirtual

Definition at line 81 of file BesEventHeader.h.

81{ return fP; }

◆ GetPt()

virtual Float_t BesEventHeader::GetPt ( )
inlinevirtual

Definition at line 82 of file BesEventHeader.h.

82{ return fPt; }

◆ GetPx()

virtual Float_t BesEventHeader::GetPx ( )
inlinevirtual

Definition at line 83 of file BesEventHeader.h.

83{ return fPx; }

◆ GetPy()

virtual Float_t BesEventHeader::GetPy ( )
inlinevirtual

Definition at line 84 of file BesEventHeader.h.

84{ return fPy; }

◆ GetPz()

virtual Float_t BesEventHeader::GetPz ( )
inlinevirtual

Definition at line 85 of file BesEventHeader.h.

85{ return fPz; }

◆ GetRunNumber()

Long64_t BesEventHeader::GetRunNumber ( )
inline

Definition at line 61 of file BesEventHeader.h.

61{ return fRun; }

Referenced by BesEvent::GetRun().

◆ GetT()

virtual Float_t BesEventHeader::GetT ( )
inlinevirtual

Definition at line 87 of file BesEventHeader.h.

87{ return fT; }

◆ GetTimeType()

Int_t BesEventHeader::GetTimeType ( )
inline

Definition at line 65 of file BesEventHeader.h.

65{ return fTimeType; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTrigChannelVector()

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

Definition at line 66 of file BesEventHeader.h.

66{ return fTrigChannelVector; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTrigConditionVector()

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

Definition at line 67 of file BesEventHeader.h.

67{ return fTrigConditionVector; }

Referenced by BesVisDisplay::DrawHeader().

◆ PrintWord()

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}
short int word(short i, const _T &v)
Definition bitmanip.h:27

◆ SetEventEmc()

void BesEventHeader::SetEventEmc ( Double_t e)
virtual

Definition at line 160 of file BesEventHeader.cxx.

161{
162 fE = e;
163}

Referenced by BesEvent::SetEvent().

◆ SetEventEvTime()

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().

◆ SetEventHeaderGeneral()

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}

Referenced by BesEvent::SetEvent().

◆ SetEventMC()

void BesEventHeader::SetEventMC ( Bool_t mc)
virtual

Definition at line 119 of file BesEventHeader.cxx.

120{
121 fMC = mc;
122}

Referenced by BesEvent::SetEvent().

◆ SetEventMdc()

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().

◆ SetEventRec()

void BesEventHeader::SetEventRec ( Bool_t rec)
virtual

Definition at line 126 of file BesEventHeader.cxx.

127{
128 fRec = rec;
129}

Referenced by BesEvent::SetEvent().

◆ SetEventTof()

void BesEventHeader::SetEventTof ( Double_t t)
virtual

Definition at line 153 of file BesEventHeader.cxx.

154{
155 fT = t;
156}
int t()
Definition t.c:1

◆ SetEventTrig()

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().


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