#include <BesEventHeader.h>
Public Member Functions | |
BesEventHeader () | |
BesEventHeader () | |
virtual Float_t | GetE () |
virtual Float_t | GetE () |
Int_t | GetEventDay () |
Int_t | GetEventDay () |
Int_t | GetEventHour () |
Int_t | GetEventHour () |
Bool_t | GetEventMC () |
Bool_t | GetEventMC () |
Int_t | GetEventMin () |
Int_t | GetEventMin () |
Int_t | GetEventMonth () |
Int_t | GetEventMonth () |
Long64_t | GetEventNumber () |
Long64_t | GetEventNumber () |
Int_t | GetEventSec () |
Int_t | GetEventSec () |
Int_t | GetEventYear () |
Int_t | GetEventYear () |
virtual Float_t | GetP () |
virtual Float_t | GetP () |
virtual Float_t | GetPt () |
virtual Float_t | GetPt () |
virtual Float_t | GetPx () |
virtual Float_t | GetPx () |
virtual Float_t | GetPy () |
virtual Float_t | GetPy () |
virtual Float_t | GetPz () |
virtual Float_t | GetPz () |
Long64_t | GetRunNumber () |
Long64_t | GetRunNumber () |
virtual Float_t | GetT () |
virtual Float_t | GetT () |
Int_t | GetTimeType () |
Int_t | GetTimeType () |
vector< Int_t > & | GetTrigChannelVector () |
vector< Int_t > & | GetTrigChannelVector () |
vector< Int_t > & | GetTrigConditionVector () |
vector< Int_t > & | GetTrigConditionVector () |
void | PrintWord (TString &word, Int_t nbits, Int_t trigger, Int_t trigger2=0) const |
void | PrintWord (TString &word, Int_t nbits, Int_t trigger, Int_t trigger2=0) const |
virtual void | SetEventEmc (Double_t e) |
virtual void | SetEventEmc (Double_t e) |
virtual void | SetEventHeaderGeneral (Long64_t run, Long64_t event, Int_t time1, Int_t time2) |
virtual void | SetEventHeaderGeneral (Long64_t run, Long64_t event, Int_t time1, Int_t time2) |
virtual void | SetEventMC (Bool_t mc) |
virtual void | SetEventMC (Bool_t mc) |
virtual void | SetEventMdc (Double_t p, Double_t pt, Double_t px, Double_t py, Double_t pz) |
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 | SetEventTof (Double_t t) |
virtual void | SetEventTrig (Int_t timeType, vector< Int_t > &trigConditionVector, vector< Int_t > &trigChannelVector) |
virtual void | SetEventTrig (Int_t timeType, vector< Int_t > &trigConditionVector, vector< Int_t > &trigChannelVector) |
virtual | ~BesEventHeader () |
virtual | ~BesEventHeader () |
Private Attributes | |
Int_t | fDay |
Double_t | fE |
Long64_t | fEvent |
Int_t | fHour |
Bool_t | fMC |
Int_t | fMin |
Int_t | fMonth |
Double_t | fP |
Double_t | fPt |
Double_t | fPx |
Double_t | fPy |
Double_t | fPz |
Long64_t | fRun |
Int_t | fSec |
Double_t | fT |
Int_t | fTimeType |
vector< Int_t > | fTrigChannelVector |
vector< Int_t > | fTrigChannelVector |
vector< Int_t > | fTrigConditionVector |
vector< Int_t > | fTrigConditionVector |
Int_t | fYear |
|
|
|
00050 { 00051 // 00052 // BesEventHeader default destructor 00053 if ( gDebug ) cout << "BesEventHeader dtor called" << endl; 00054 00055 }
|
|
|
|
|
|
00077 { return fE; }
|
|
00077 { return fE; }
|
|
00064 { return fDay; }
|
|
00064 { return fDay; }
|
|
00065 { return fHour;}
|
|
00065 { return fHour;}
|
|
00056 { return fMC; }
|
|
00056 { return fMC; }
|
|
00066 { return fMin;}
|
|
00066 { return fMin;}
|
|
00063 { return fMonth; }
|
|
00063 { return fMonth; }
|
|
00055 { return fEvent; }
|
|
00055 { return fEvent; }
|
|
00067 { return fSec;}
|
|
00067 { return fSec;}
|
|
00062 { return fYear; }
|
|
00062 { return fYear; }
|
|
00069 { return fP; }
|
|
00069 { return fP; }
|
|
00070 { return fPt; }
|
|
00070 { return fPt; }
|
|
00071 { return fPx; }
|
|
00071 { return fPx; }
|
|
00072 { return fPy; }
|
|
00072 { return fPy; }
|
|
00073 { return fPz; }
|
|
00073 { return fPz; }
|
|
00054 { return fRun; }
|
|
00054 { return fRun; }
|
|
00075 { return fT; }
|
|
00075 { return fT; }
|
|
00058 { return fTimeType; }
|
|
00058 { return fTimeType; }
|
|
00059 { return fTrigChannelVector; }
|
|
00059 { return fTrigChannelVector; }
|
|
00060 { return fTrigConditionVector; }
|
|
00060 { return fTrigConditionVector; }
|
|
|
|
00149 { 00150 Int_t j; 00151 if (trigger!=0){ 00152 for (j=0;j<nbits;j++){ 00153 if ((trigger>>j)&0x1) word+=Form(" %.2d",j+1); 00154 } 00155 } 00156 if (trigger2!=0){ 00157 for (j=0;j<nbits;j++){ 00158 if ((trigger2>>j)&0x1) word+=Form(" %.2d",j+17); 00159 } 00160 } 00161 }
|
|
|
|
00144 { 00145 fE = e; 00146 }
|
|
|
|
00084 { 00085 // 00086 // Set general event header 00087 fRun = run; 00088 fEvent = event; 00089 00090 00091 // modify date 00092 if (time1 > 0) { 00093 int a,b; 00094 a=time1%100; 00095 fDay=a; 00096 00097 b=(time1-a)%10000; 00098 fMonth=b/100; 00099 00100 fYear=(time1-a-b)/10000; 00101 } 00102 00103 //modify time 00104 if (time2 > 0) { 00105 int c,d; 00106 c=time2%100; 00107 fSec=c; 00108 00109 d=(time2-c)%10000; 00110 fMin=d/100; 00111 00112 fHour=(time2-c-d)/10000; 00113 } 00114 }
|
|
|
|
00119 { 00120 fMC = mc; 00121 }
|
|
|
|
|
|
|
|
00137 { 00138 fT = t; 00139 }
|
|
|
|
00060 { 00061 00062 fTimeType = timeType; 00063 fTrigChannelVector.clear(); 00064 fTrigConditionVector.clear(); 00065 fTrigChannelVector = trigChannelVector; 00066 fTrigConditionVector = trigConditionVector; 00067 //************************************ 00068 cout << "BesEventHeader::time Type: " << timeType << endl; 00069 vector<Int_t>::iterator pTrigVector; 00070 for (pTrigVector = trigConditionVector.begin(); 00071 pTrigVector != trigConditionVector.end(); 00072 pTrigVector++){ 00073 cout << "BesEventHeader::trigCondition: " << *pTrigVector << endl; 00074 } 00075 for (pTrigVector = trigChannelVector.begin(); 00076 pTrigVector != trigChannelVector.end(); 00077 pTrigVector++){ 00078 cout << "BesEventHeader::trigChannel: " << *pTrigVector << endl; 00079 } 00080 //************************************ 00081 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|