BesEventHeader Class Reference

#include <BesEventHeader.h>

List of all members.

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

Private Attributes

Long64_t fRun
Long64_t fEvent
Bool_t fMC
Int_t fDay
Int_t fMonth
Int_t fYear
Int_t fHour
Int_t fMin
Int_t fSec
Double_t fEvTime
Int_t fEvTimeStatus
Double_t fEvTimeQuality
Double_t fP
Double_t fPt
Double_t fPx
Double_t fPy
Double_t fPz
Double_t fT
Double_t fE
Int_t fTimeType
vector< Int_t > fTrigChannelVector
vector< Int_t > fTrigConditionVector


Detailed Description

Definition at line 14 of file BesEventHeader.h.


Constructor & Destructor Documentation

BesEventHeader::BesEventHeader (  ) 

BesEventHeader::~BesEventHeader (  )  [virtual]

Definition at line 50 of file BesEventHeader.cxx.

00050                                 {
00051     //
00052     // BesEventHeader default destructor
00053     if ( gDebug ) cout << "BesEventHeader dtor called" << endl;
00054 
00055 }


Member Function Documentation

virtual Float_t BesEventHeader::GetE (  )  [inline, virtual]

Definition at line 86 of file BesEventHeader.h.

References fE.

00086 { return fE; }

Int_t BesEventHeader::GetEventDay (  )  [inline]

Definition at line 69 of file BesEventHeader.h.

References fDay.

Referenced by BesEvent::GetDay().

00069 { return fDay; }

Int_t BesEventHeader::GetEventHour (  )  [inline]

Definition at line 70 of file BesEventHeader.h.

References fHour.

Referenced by BesEvent::GetHour().

00070 { return fHour;}

Bool_t BesEventHeader::GetEventMC (  )  [inline]

Definition at line 61 of file BesEventHeader.h.

References fMC.

Referenced by BesEvent::GetMC().

00061 { return fMC; }

Int_t BesEventHeader::GetEventMin (  )  [inline]

Definition at line 71 of file BesEventHeader.h.

References fMin.

Referenced by BesEvent::GetMin().

00071 { return fMin;}

Int_t BesEventHeader::GetEventMonth (  )  [inline]

Definition at line 68 of file BesEventHeader.h.

References fMonth.

Referenced by BesEvent::GetMonth().

00068 { return fMonth; }

Long64_t BesEventHeader::GetEventNumber (  )  [inline]

Definition at line 60 of file BesEventHeader.h.

References fEvent.

Referenced by BesEvent::GetEvent().

00060 { return fEvent; }

Int_t BesEventHeader::GetEventSec (  )  [inline]

Definition at line 72 of file BesEventHeader.h.

References fSec.

Referenced by BesEvent::GetSec().

00072 { return fSec;}

Int_t BesEventHeader::GetEventYear (  )  [inline]

Definition at line 67 of file BesEventHeader.h.

References fYear.

Referenced by BesEvent::GetYear().

00067 { return fYear; }

Double_t BesEventHeader::GetEvTime (  )  [inline]

Definition at line 74 of file BesEventHeader.h.

References fEvTime.

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

00074 { return fEvTime; }

Double_t BesEventHeader::GetEvTimeQuality (  )  [inline]

Definition at line 76 of file BesEventHeader.h.

References fEvTimeQuality.

Referenced by BesVisDisplay::DrawHeader().

00076 { return fEvTimeQuality; }

Int_t BesEventHeader::GetEvTimeStatus (  )  [inline]

Definition at line 75 of file BesEventHeader.h.

References fEvTimeStatus.

Referenced by BesVisDisplay::DrawHeader().

00075 { return fEvTimeStatus; }

virtual Float_t BesEventHeader::GetP (  )  [inline, virtual]

Definition at line 78 of file BesEventHeader.h.

References fP.

00078 { return fP; }

virtual Float_t BesEventHeader::GetPt (  )  [inline, virtual]

Definition at line 79 of file BesEventHeader.h.

References fPt.

00079 { return fPt; }

virtual Float_t BesEventHeader::GetPx (  )  [inline, virtual]

Definition at line 80 of file BesEventHeader.h.

References fPx.

00080 { return fPx; }

virtual Float_t BesEventHeader::GetPy (  )  [inline, virtual]

Definition at line 81 of file BesEventHeader.h.

References fPy.

00081 { return fPy; }

virtual Float_t BesEventHeader::GetPz (  )  [inline, virtual]

Definition at line 82 of file BesEventHeader.h.

References fPz.

00082 { return fPz; }

Long64_t BesEventHeader::GetRunNumber (  )  [inline]

Definition at line 59 of file BesEventHeader.h.

References fRun.

Referenced by BesEvent::GetRun().

00059 { return fRun; }

virtual Float_t BesEventHeader::GetT (  )  [inline, virtual]

Definition at line 84 of file BesEventHeader.h.

References fT.

00084 { return fT; }

Int_t BesEventHeader::GetTimeType (  )  [inline]

Definition at line 63 of file BesEventHeader.h.

References fTimeType.

Referenced by BesVisDisplay::DrawHeader().

00063 { return fTimeType; }

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

Definition at line 64 of file BesEventHeader.h.

References fTrigChannelVector.

Referenced by BesVisDisplay::DrawHeader().

00064 { return fTrigChannelVector; }

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

Definition at line 65 of file BesEventHeader.h.

References fTrigConditionVector.

Referenced by BesVisDisplay::DrawHeader().

00065 { return fTrigConditionVector; }

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

Definition at line 158 of file BesEventHeader.cxx.

References ganga-rec::j.

00158                                                                                              {
00159     Int_t j;
00160     if (trigger!=0){
00161         for (j=0;j<nbits;j++){
00162             if ((trigger>>j)&0x1) word+=Form(" %.2d",j+1);
00163         }
00164     }
00165     if (trigger2!=0){
00166         for (j=0;j<nbits;j++){
00167             if ((trigger2>>j)&0x1) word+=Form(" %.2d",j+17);
00168         }
00169     }
00170 }

void BesEventHeader::SetEventEmc ( Double_t  e  )  [virtual]

Definition at line 152 of file BesEventHeader.cxx.

References fE.

Referenced by BesEvent::SetEvent().

00153 {
00154     fE = e;
00155 }

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

Definition at line 125 of file BesEventHeader.cxx.

References fEvTime, fEvTimeQuality, and fEvTimeStatus.

Referenced by BesEvent::SetEvent().

00126 {
00127     fEvTime  = time;
00128     fEvTimeStatus  = status;
00129     fEvTimeQuality = quality;
00130 }

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

Definition at line 84 of file BesEventHeader.cxx.

References fDay, fEvent, fHour, fMin, fMonth, fRun, fSec, and fYear.

Referenced by BesEvent::SetEvent().

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 }

void BesEventHeader::SetEventMC ( Bool_t  mc  )  [virtual]

Definition at line 118 of file BesEventHeader.cxx.

References fMC.

Referenced by BesEvent::SetEvent().

00119 {
00120     fMC = mc;
00121 }

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

Definition at line 134 of file BesEventHeader.cxx.

References fP, fPt, fPx, fPy, and fPz.

Referenced by BesEvent::SetEvent().

00135 {
00136     fP  = p;
00137     fPt = pt;
00138     fPx = px;
00139     fPy = py;
00140     fPz = pz;
00141 }

void BesEventHeader::SetEventTof ( Double_t  t  )  [virtual]

Definition at line 145 of file BesEventHeader.cxx.

References fT.

00146 {
00147     fT = t;
00148 }

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

Definition at line 58 of file BesEventHeader.cxx.

References fTimeType, fTrigChannelVector, and fTrigConditionVector.

Referenced by BesEvent::SetEvent().

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 }


Member Data Documentation

Int_t BesEventHeader::fDay [private]

Definition at line 21 of file BesEventHeader.h.

Referenced by GetEventDay(), and SetEventHeaderGeneral().

Double_t BesEventHeader::fE [private]

Definition at line 38 of file BesEventHeader.h.

Referenced by GetE(), and SetEventEmc().

Long64_t BesEventHeader::fEvent [private]

Definition at line 18 of file BesEventHeader.h.

Referenced by GetEventNumber(), and SetEventHeaderGeneral().

Double_t BesEventHeader::fEvTime [private]

Definition at line 28 of file BesEventHeader.h.

Referenced by GetEvTime(), and SetEventEvTime().

Double_t BesEventHeader::fEvTimeQuality [private]

Definition at line 30 of file BesEventHeader.h.

Referenced by GetEvTimeQuality(), and SetEventEvTime().

Int_t BesEventHeader::fEvTimeStatus [private]

Definition at line 29 of file BesEventHeader.h.

Referenced by GetEvTimeStatus(), and SetEventEvTime().

Int_t BesEventHeader::fHour [private]

Definition at line 24 of file BesEventHeader.h.

Referenced by GetEventHour(), and SetEventHeaderGeneral().

Bool_t BesEventHeader::fMC [private]

Definition at line 19 of file BesEventHeader.h.

Referenced by GetEventMC(), and SetEventMC().

Int_t BesEventHeader::fMin [private]

Definition at line 25 of file BesEventHeader.h.

Referenced by GetEventMin(), and SetEventHeaderGeneral().

Int_t BesEventHeader::fMonth [private]

Definition at line 22 of file BesEventHeader.h.

Referenced by GetEventMonth(), and SetEventHeaderGeneral().

Double_t BesEventHeader::fP [private]

Definition at line 32 of file BesEventHeader.h.

Referenced by GetP(), and SetEventMdc().

Double_t BesEventHeader::fPt [private]

Definition at line 33 of file BesEventHeader.h.

Referenced by GetPt(), and SetEventMdc().

Double_t BesEventHeader::fPx [private]

Definition at line 34 of file BesEventHeader.h.

Referenced by GetPx(), and SetEventMdc().

Double_t BesEventHeader::fPy [private]

Definition at line 35 of file BesEventHeader.h.

Referenced by GetPy(), and SetEventMdc().

Double_t BesEventHeader::fPz [private]

Definition at line 36 of file BesEventHeader.h.

Referenced by GetPz(), and SetEventMdc().

Long64_t BesEventHeader::fRun [private]

Definition at line 17 of file BesEventHeader.h.

Referenced by GetRunNumber(), and SetEventHeaderGeneral().

Int_t BesEventHeader::fSec [private]

Definition at line 26 of file BesEventHeader.h.

Referenced by GetEventSec(), and SetEventHeaderGeneral().

Double_t BesEventHeader::fT [private]

Definition at line 37 of file BesEventHeader.h.

Referenced by GetT(), and SetEventTof().

Int_t BesEventHeader::fTimeType [private]

Definition at line 39 of file BesEventHeader.h.

Referenced by GetTimeType(), and SetEventTrig().

vector<Int_t> BesEventHeader::fTrigChannelVector [private]

Definition at line 40 of file BesEventHeader.h.

Referenced by GetTrigChannelVector(), and SetEventTrig().

vector<Int_t> BesEventHeader::fTrigConditionVector [private]

Definition at line 41 of file BesEventHeader.h.

Referenced by GetTrigConditionVector(), and SetEventTrig().

Int_t BesEventHeader::fYear [private]

Definition at line 23 of file BesEventHeader.h.

Referenced by GetEventYear(), and SetEventHeaderGeneral().


Generated on Tue Nov 29 23:17:31 2016 for BOSS_7.0.2 by  doxygen 1.4.7