Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BesEventHeader Class Reference

#include <BesEventHeader.h>

List of all members.

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


Constructor & Destructor Documentation

BesEventHeader::BesEventHeader  ) 
 

BesEventHeader::~BesEventHeader  )  [virtual]
 

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

BesEventHeader::BesEventHeader  ) 
 

virtual BesEventHeader::~BesEventHeader  )  [virtual]
 


Member Function Documentation

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

00077 { return fE; }

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

00077 { return fE; }

Int_t BesEventHeader::GetEventDay  )  [inline]
 

00064 { return fDay; }

Int_t BesEventHeader::GetEventDay  )  [inline]
 

00064 { return fDay; }

Int_t BesEventHeader::GetEventHour  )  [inline]
 

00065 { return fHour;}

Int_t BesEventHeader::GetEventHour  )  [inline]
 

00065 { return fHour;}

Bool_t BesEventHeader::GetEventMC  )  [inline]
 

00056 { return fMC; }

Bool_t BesEventHeader::GetEventMC  )  [inline]
 

00056 { return fMC; }

Int_t BesEventHeader::GetEventMin  )  [inline]
 

00066 { return fMin;}

Int_t BesEventHeader::GetEventMin  )  [inline]
 

00066 { return fMin;}

Int_t BesEventHeader::GetEventMonth  )  [inline]
 

00063 { return fMonth; }

Int_t BesEventHeader::GetEventMonth  )  [inline]
 

00063 { return fMonth; }

Long64_t BesEventHeader::GetEventNumber  )  [inline]
 

00055 { return fEvent; }

Long64_t BesEventHeader::GetEventNumber  )  [inline]
 

00055 { return fEvent; }

Int_t BesEventHeader::GetEventSec  )  [inline]
 

00067 { return fSec;}

Int_t BesEventHeader::GetEventSec  )  [inline]
 

00067 { return fSec;}

Int_t BesEventHeader::GetEventYear  )  [inline]
 

00062 { return fYear; }

Int_t BesEventHeader::GetEventYear  )  [inline]
 

00062 { return fYear; }

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

00069 { return fP; }

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

00069 { return fP; }

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

00070 { return fPt; }

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

00070 { return fPt; }

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

00071 { return fPx; }

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

00071 { return fPx; }

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

00072 { return fPy; }

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

00072 { return fPy; }

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

00073 { return fPz; }

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

00073 { return fPz; }

Long64_t BesEventHeader::GetRunNumber  )  [inline]
 

00054 { return fRun; }

Long64_t BesEventHeader::GetRunNumber  )  [inline]
 

00054 { return fRun; }

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

00075 { return fT; }

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

00075 { return fT; }

Int_t BesEventHeader::GetTimeType  )  [inline]
 

00058 { return fTimeType; }

Int_t BesEventHeader::GetTimeType  )  [inline]
 

00058 { return fTimeType; }

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

00059 { return fTrigChannelVector; }

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

00059 { return fTrigChannelVector; }

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

00060 { return fTrigConditionVector; }

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

00060 { return fTrigConditionVector; }

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

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

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 }

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

void BesEventHeader::SetEventEmc Double_t  e  )  [virtual]
 

00144 {
00145     fE = e;
00146 }

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

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

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 }

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

void BesEventHeader::SetEventMC Bool_t  mc  )  [virtual]
 

00119 {
00120     fMC = mc;
00121 }

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

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

00126 {
00127     fP  = p;
00128     fPt = pt;
00129     fPx = px;
00130     fPy = py;
00131     fPz = pz;
00132 }

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

void BesEventHeader::SetEventTof Double_t  t  )  [virtual]
 

00137 {
00138     fT = t;
00139 }

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

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

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]
 

Double_t BesEventHeader::fE [private]
 

Long64_t BesEventHeader::fEvent [private]
 

Int_t BesEventHeader::fHour [private]
 

Bool_t BesEventHeader::fMC [private]
 

Int_t BesEventHeader::fMin [private]
 

Int_t BesEventHeader::fMonth [private]
 

Double_t BesEventHeader::fP [private]
 

Double_t BesEventHeader::fPt [private]
 

Double_t BesEventHeader::fPx [private]
 

Double_t BesEventHeader::fPy [private]
 

Double_t BesEventHeader::fPz [private]
 

Long64_t BesEventHeader::fRun [private]
 

Int_t BesEventHeader::fSec [private]
 

Double_t BesEventHeader::fT [private]
 

Int_t BesEventHeader::fTimeType [private]
 

vector<Int_t> BesEventHeader::fTrigChannelVector [private]
 

vector<Int_t> BesEventHeader::fTrigChannelVector [private]
 

vector<Int_t> BesEventHeader::fTrigConditionVector [private]
 

vector<Int_t> BesEventHeader::fTrigConditionVector [private]
 

Int_t BesEventHeader::fYear [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 15:52:27 2011 for BOSS6.5.5 by  doxygen 1.3.9.1