/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesStatus.h File Reference

#include <TObject.h>

Go to the source code of this file.

Classes

class  BesStatus

Enumerations

enum  EBESViewType { k3DView = BIT(0), kXYView = BIT(1), kZRView = BIT(2) }

Functions

istreamoperator>> (istream &is, BesStatus &bs)
ostreamoperator<< (ostream &os, const BesStatus &bs)


Enumeration Type Documentation

enum EBESViewType

Enumerator:
k3DView 
kXYView 
kZRView 

Definition at line 13 of file BesStatus.h.

00013                   {
00014   k3DView   = BIT(0),
00015   kXYView   = BIT(1),
00016   kZRView   = BIT(2)
00017 };


Function Documentation

ostream& operator<< ( ostream os,
const BesStatus bs 
)

Definition at line 479 of file BesStatus.cxx.

00479                                                       {
00480 
00481     return os << hex << " "
00482            << (bs.fMdcGlobal<<2) + (bs.fMdcTubes<<1)  + bs.fMdcWires << " "
00483            << (bs.fTofGlobal<<3) + (bs.fTofEast<<2)   + (bs.fTofBarrel<<1) + bs.fTofWest << " "
00484            << (bs.fEmcGlobal<<4) + (bs.fEmcEast<<3)   + (bs.fEmcBarrel<<2) + (bs.fEmcWest<<1) + bs.fEmcSide << " "
00485            << (bs.fMucGlobal<<4) + (bs.fMucEast<<3)   + (bs.fMucBarrel<<2) + (bs.fMucWest<<1) + bs.fMucStrips << " "
00486            << (bs.fFull3DMdc<<3) + (bs.fFull3DTof<<2) + (bs.fFull3DEmc<<1) + bs.fFull3DMuc << " "
00487            << (bs.fBeamPipe<<2)  + (bs.fZRPlaneOnXY<<1) + bs.fAxis << " "
00488            << (bs.fMdcHitsGlobal<<1) + bs.fMdcHits << " "
00489            << (bs.fTofHitsGlobal<<3) + (bs.fTofHitsEast<<2) + (bs.fTofHitsBarrel<<1) + bs.fTofHitsWest << " "
00490            << (bs.fEmcHitsGlobal<<4) + (bs.fEmcHitsEast<<3) + (bs.fEmcHitsBarrel<<2) + (bs.fEmcHitsWest<<1) + bs.fEmcHitsSide << " "
00491            << (bs.fMucHitsGlobal<<3) + (bs.fMucHitsEast<<2) + (bs.fMucHitsBarrel<<1) + bs.fMucHitsWest << " "
00492            << (bs.fTracksGlobal<<5)  + (bs.fTracksMdc<<4)   + (bs.fTracksTof<<3)     + (bs.fTracksEmc<<2)  + (bs.fTracksMuc<<1)  + bs.fTracksExt << " " << bs.fZoom;
00493 
00494 }

istream& operator>> ( istream is,
BesStatus bs 
)

Definition at line 410 of file BesStatus.cxx.

00410                                                 {
00411 
00412     unsigned int cMdc, cTof, cEmc, cMuc, cFull3D, cOther, cMdcHits;
00413     unsigned int cTofHits, cEmcHits, cMucHits, cTracks;
00414     Float_t cZoom;
00415 
00416     is >> hex >> cMdc >> cTof >> cEmc >> cMuc >> cFull3D >>
00417     cOther >> cMdcHits >> cTofHits >> cEmcHits >> cMucHits >> cTracks >> cZoom; 
00418 
00419     bs.fMdcGlobal =  1 & (cMdc>>2);
00420     bs.fMdcTubes  =  1 & (cMdc>>1);
00421     bs.fMdcWires  =  1 &  cMdc;
00422 
00423     bs.fTofGlobal =  1 & (cTof>>3);
00424     bs.fTofEast   =  1 & (cTof>>2);
00425     bs.fTofBarrel =  1 & (cTof>>1);
00426     bs.fTofWest   =  1 &  cTof;
00427 
00428     bs.fEmcGlobal =  1 & (cEmc>>4);
00429     bs.fEmcEast   =  1 & (cEmc>>3);
00430     bs.fEmcBarrel =  1 & (cEmc>>2);
00431     bs.fEmcWest   =  1 & (cEmc>>1);
00432     bs.fEmcSide   =  1 &  cEmc;
00433 
00434     bs.fMucGlobal =  1 & (cMuc>>4);
00435     bs.fMucEast   =  1 & (cMuc>>3);
00436     bs.fMucBarrel =  1 & (cMuc>>2);
00437     bs.fMucWest   =  1 & (cMuc>>1);
00438     bs.fMucStrips =  1 &  cMuc;
00439 
00440     bs.fFull3DMdc =  1 & (cFull3D>>3);
00441     bs.fFull3DTof =  1 & (cFull3D>>2);
00442     bs.fFull3DEmc =  1 & (cFull3D>>1);
00443     bs.fFull3DMuc =  1 &  cFull3D;
00444 
00445     bs.fBeamPipe    =  1 & (cOther>>2);
00446     bs.fZRPlaneOnXY =  1 & (cOther>>1);
00447     bs.fAxis        =  1 &  cOther;
00448 
00449     bs.fMdcHitsGlobal = 1 & (cMdcHits>>1);
00450     bs.fMdcHits       = 1 &  cMdcHits;
00451 
00452     bs.fTofHitsGlobal = 1 & (cTofHits>>3);
00453     bs.fTofHitsEast   = 1 & (cTofHits>>2);
00454     bs.fTofHitsBarrel = 1 & (cTofHits>>1);
00455     bs.fTofHitsWest   = 1 &  cTofHits;
00456 
00457     bs.fEmcHitsGlobal = 1 & (cEmcHits>>4);
00458     bs.fEmcHitsEast   = 1 & (cEmcHits>>3);
00459     bs.fEmcHitsBarrel = 1 & (cEmcHits>>2);
00460     bs.fEmcHitsWest   = 1 & (cEmcHits>>1);
00461     bs.fEmcHitsSide   = 1 &  cEmcHits;
00462 
00463     bs.fMucHitsGlobal = 1 & (cMucHits>>3);
00464     bs.fMucHitsEast   = 1 & (cMucHits>>2);
00465     bs.fMucHitsBarrel = 1 & (cMucHits>>1);
00466     bs.fMucHitsWest   = 1 &  cMucHits;
00467 
00468     bs.fTracksGlobal  = 1 & (cTracks>>5);
00469     bs.fTracksMdc     = 1 & (cTracks>>4);
00470     bs.fTracksTof     = 1 & (cTracks>>3);
00471     bs.fTracksEmc     = 1 & (cTracks>>2);
00472     bs.fTracksMuc     = 1 & (cTracks>>1);
00473     bs.fTracksExt     = 1 &  cTracks;
00474     bs.fZoom        = cZoom;
00475 
00476     return is;
00477 }


Generated on Tue Nov 29 23:15:41 2016 for BOSS_7.0.2 by  doxygen 1.4.7