CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
BesStatus.cxx File Reference
#include <iostream>
#include "BesVisLib/BesStatus.h"

Go to the source code of this file.

Functions

 ClassImp (BesStatus) BesStatus
 
istream & operator>> (istream &is, BesStatus &bs)
 
ostream & operator<< (ostream &os, const BesStatus &bs)
 

Function Documentation

◆ ClassImp()

ClassImp ( BesStatus )

Definition at line 12 of file BesStatus.cxx.

20 : TObject() {
21 //
22 // BesStatus default constructor
23 Default(kXYView); //Long Peixun's update: Give an initial value
24 if ( gDebug ) cout << "BesStatus default ctor called" << endl;
25}
@ kXYView
Definition BesStatus.h:15

◆ operator<<()

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

Definition at line 813 of file BesStatus.cxx.

813 {
814 return os << hex << " "
815 << (bs.fMdcGlobal<<2) + (bs.fMdcTubes<<1) + bs.fMdcWires << " "
816 << (bs.fTofGlobal<<3) + (bs.fTofEast<<2) + (bs.fTofBarrel<<1) + bs.fTofWest << " "
817 << (bs.fEmcGlobal<<4) + (bs.fEmcEast<<3) + (bs.fEmcBarrel<<2) + (bs.fEmcWest<<1) + bs.fEmcSide << " "
818 << (bs.fMucGlobal<<4) + (bs.fMucEast<<3) + (bs.fMucBarrel<<2) + (bs.fMucWest<<1) + bs.fMucStrips << " "
819 << (bs.fFull3DMdc<<3) + (bs.fFull3DTof<<2) + (bs.fFull3DEmc<<1) + bs.fFull3DMuc << " "
820 << (bs.fBeamPipe<<2) + (bs.fZRPlaneOnXY<<1) + bs.fAxis << " "
821 << (bs.fMdcHitsGlobal<<1) + bs.fMdcHits << " "
822 << (bs.fTofHitsGlobal<<3) + (bs.fTofHitsEast<<2) + (bs.fTofHitsBarrel<<1) + bs.fTofHitsWest << " "
823 << (bs.fEmcHitsGlobal<<4) + (bs.fEmcHitsEast<<3) + (bs.fEmcHitsBarrel<<2) + (bs.fEmcHitsWest<<1) + bs.fEmcHitsSide << " "
824 << (bs.fMucHitsGlobal<<3) + (bs.fMucHitsEast<<2) + (bs.fMucHitsBarrel<<1) + bs.fMucHitsWest << " "
825 //Long Peixun's update: Write MC truth track flag
826 << (bs.fTracksIdeal<<7) + (bs.fMCTruthTrack<<6) + (bs.fTracksGlobal<<5) + (bs.fTracksMdc<<4) + (bs.fTracksTof<<3) + (bs.fTracksEmc<<2) + (bs.fTracksMuc<<1) + bs.fTracksExt << " "
827 << bs.fZoom << " "
828 //Long Peixun's update: Write CGEM flags
829 << (bs.fCgemGlobal << 3) + (bs.fCgemLayers << 2) + (bs.fCgemXStrips << 1) + bs.fCgemVStrips << " "
830 << (bs.fCgemHitsGlobal << 4) + (bs.fCgemHitsXStrip << 3) + (bs.fCgemHitsVStrip << 2) + (bs.fCgemHitsClusters << 1) + bs.fCgemHitsFiredHL;
831}
Bool_t fTracksEmc
visibility flag for Tof Tracks
Definition BesStatus.h:122
Bool_t fCgemGlobal
Definition BesStatus.h:35
Bool_t fMucHitsEast
visibility flag for global Muc Hits
Definition BesStatus.h:112
Bool_t fTofHitsEast
visibility flag for global Tof Hits
Definition BesStatus.h:97
Bool_t fMucBarrel
visivility flag for Muc east EC
Definition BesStatus.h:65
Bool_t fFull3DMdc
Definition BesStatus.h:72
Bool_t fTracksMdc
visibility flag for global Tracks
Definition BesStatus.h:119
Bool_t fMCTruthTrack
visibility flag for Ext Tracks
Definition BesStatus.h:128
Bool_t fTofBarrel
visibility flag for Tof east EC
Definition BesStatus.h:50
Bool_t fMucGlobal
visivility flag for Emc side
Definition BesStatus.h:63
Bool_t fTracksExt
visibility flag for Muc Tracks
Definition BesStatus.h:124
Bool_t fCgemHitsGlobal
visibility flag for axis
Definition BesStatus.h:84
Bool_t fMucStrips
visivility flag for Muc west EC
Definition BesStatus.h:67
Bool_t fCgemLayers
Definition BesStatus.h:36
Bool_t fAxis
visibility flag for ZRPlaneOnXY
Definition BesStatus.h:81
Bool_t fEmcHitsGlobal
visibility flag for Tof Hits West
Definition BesStatus.h:103
Bool_t fMucHitsWest
visibility flag for Muc Hits Barrel
Definition BesStatus.h:114
Bool_t fZRPlaneOnXY
visibility flag for beam pipe
Definition BesStatus.h:80
Bool_t fMucWest
visivility flag for Muc barrel
Definition BesStatus.h:66
Bool_t fMucEast
visivility flag for global Muc
Definition BesStatus.h:64
Bool_t fMdcWires
visibility flag for Mdc main tubes
Definition BesStatus.h:44
Bool_t fFull3DMuc
visivility flag for full 3D Emc
Definition BesStatus.h:75
Bool_t fEmcGlobal
visibility flag for Tof west EC
Definition BesStatus.h:55
Bool_t fTofHitsWest
visibility flag for Tof Hits Barrel
Definition BesStatus.h:99
Bool_t fCgemXStrips
Definition BesStatus.h:37
Bool_t fFull3DEmc
visivility flag for full 3D Tof
Definition BesStatus.h:74
Bool_t fTofHitsBarrel
visibility flag for Tof Hits East
Definition BesStatus.h:98
Bool_t fEmcWest
visivility flag for Emc barrel
Definition BesStatus.h:58
Bool_t fTofWest
visibility flag for Tof barrel
Definition BesStatus.h:51
Bool_t fTracksIdeal
visibility flag for Mdc Tracks
Definition BesStatus.h:120
Bool_t fTofEast
visibility flag for global Tof
Definition BesStatus.h:49
Bool_t fMdcGlobal
Definition BesStatus.h:42
Bool_t fCgemVStrips
Definition BesStatus.h:38
Bool_t fTofHitsGlobal
visibility flag for Mdc Hits
Definition BesStatus.h:96
Bool_t fEmcHitsBarrel
visibility flag for Emc Hits East
Definition BesStatus.h:105
Bool_t fEmcEast
visivility flag for global Emc
Definition BesStatus.h:56
Bool_t fMdcHits
visibility flag for global Mdc Hits
Definition BesStatus.h:92
Bool_t fMdcTubes
visibility flag for global Mdc
Definition BesStatus.h:43
Bool_t fEmcHitsSide
visibility flag for Emc Hits West
Definition BesStatus.h:107
Bool_t fEmcHitsWest
visibility flag for Emc Hits Barrel
Definition BesStatus.h:106
Bool_t fEmcSide
visivility flag for Emc west EC
Definition BesStatus.h:59
Bool_t fFull3DTof
visivility flag for full 3D Mdc
Definition BesStatus.h:73
Bool_t fTracksMuc
visibility flag for Emc Tracks
Definition BesStatus.h:123
Bool_t fTofGlobal
visibility flag for Mdc wires
Definition BesStatus.h:48
Float_t fZoom
Definition BesStatus.h:140
Bool_t fBeamPipe
visivility flag for full 3D Muc
Definition BesStatus.h:79
Bool_t fCgemHitsXStrip
Definition BesStatus.h:85
Bool_t fMucHitsBarrel
visibility flag for Muc Hits East
Definition BesStatus.h:113
Bool_t fEmcHitsEast
visibility flag for global Emc Hits
Definition BesStatus.h:104
Bool_t fCgemHitsClusters
Definition BesStatus.h:87
Bool_t fTracksTof
visibility flag for Ideal Tracks, added by wangll
Definition BesStatus.h:121
Bool_t fEmcBarrel
visivility flag for Emc east EC
Definition BesStatus.h:57
Bool_t fMucHitsGlobal
visibility flag for Emc Hits Side
Definition BesStatus.h:111
Bool_t fMdcHitsGlobal
Definition BesStatus.h:91
Bool_t fCgemHitsFiredHL
Definition BesStatus.h:88
Bool_t fCgemHitsVStrip
Definition BesStatus.h:86
Bool_t fTracksGlobal
visibility flag for Muc Hits West
Definition BesStatus.h:118

◆ operator>>()

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

Definition at line 729 of file BesStatus.cxx.

730{
731 //Long Peixun's update: Add CGEM flags;
732 unsigned int cMdc, cTof, cEmc, cMuc, cFull3D, cOther, cMdcHits, cCgem, cCgemHits;
733 unsigned int cTofHits, cEmcHits, cMucHits, cTracks;
734 Float_t cZoom;
735
736 is >> hex >> cMdc >> cTof >> cEmc >> cMuc >> cFull3D >>
737 cOther >> cMdcHits >> cTofHits >> cEmcHits >> cMucHits >> cTracks >> cZoom
738 >> cCgem >> cCgemHits; //Long Peixun's update: for CGEM
739
740 bs.fMdcGlobal = 1 & (cMdc>>2);
741 bs.fMdcTubes = 1 & (cMdc>>1);
742 bs.fMdcWires = 1 & cMdc;
743
744 bs.fTofGlobal = 1 & (cTof>>3);
745 bs.fTofEast = 1 & (cTof>>2);
746 bs.fTofBarrel = 1 & (cTof>>1);
747 bs.fTofWest = 1 & cTof;
748
749 bs.fEmcGlobal = 1 & (cEmc>>4);
750 bs.fEmcEast = 1 & (cEmc>>3);
751 bs.fEmcBarrel = 1 & (cEmc>>2);
752 bs.fEmcWest = 1 & (cEmc>>1);
753 bs.fEmcSide = 1 & cEmc;
754
755 bs.fMucGlobal = 1 & (cMuc>>4);
756 bs.fMucEast = 1 & (cMuc>>3);
757 bs.fMucBarrel = 1 & (cMuc>>2);
758 bs.fMucWest = 1 & (cMuc>>1);
759 bs.fMucStrips = 1 & cMuc;
760
761 bs.fFull3DMdc = 1 & (cFull3D>>3);
762 bs.fFull3DTof = 1 & (cFull3D>>2);
763 bs.fFull3DEmc = 1 & (cFull3D>>1);
764 bs.fFull3DMuc = 1 & cFull3D;
765
766 bs.fBeamPipe = 1 & (cOther>>2);
767 bs.fZRPlaneOnXY = 1 & (cOther>>1);
768 bs.fAxis = 1 & cOther;
769
770 bs.fMdcHitsGlobal = 1 & (cMdcHits>>1);
771 bs.fMdcHits = 1 & cMdcHits;
772
773 bs.fTofHitsGlobal = 1 & (cTofHits>>3);
774 bs.fTofHitsEast = 1 & (cTofHits>>2);
775 bs.fTofHitsBarrel = 1 & (cTofHits>>1);
776 bs.fTofHitsWest = 1 & cTofHits;
777
778 bs.fEmcHitsGlobal = 1 & (cEmcHits>>4);
779 bs.fEmcHitsEast = 1 & (cEmcHits>>3);
780 bs.fEmcHitsBarrel = 1 & (cEmcHits>>2);
781 bs.fEmcHitsWest = 1 & (cEmcHits>>1);
782 bs.fEmcHitsSide = 1 & cEmcHits;
783
784 bs.fMucHitsGlobal = 1 & (cMucHits>>3);
785 bs.fMucHitsEast = 1 & (cMucHits>>2);
786 bs.fMucHitsBarrel = 1 & (cMucHits>>1);
787 bs.fMucHitsWest = 1 & cMucHits;
788
789 bs.fTracksIdeal = 1 & (cTracks>>7); // flag for ideal track, by wangll
790 bs.fMCTruthTrack = 1 & (cTracks>>6); //Long Peixun's update: Read MC Truth track flag
791 bs.fTracksGlobal = 1 & (cTracks>>5);
792 bs.fTracksMdc = 1 & (cTracks>>4);
793 bs.fTracksTof = 1 & (cTracks>>3);
794 bs.fTracksEmc = 1 & (cTracks>>2);
795 bs.fTracksMuc = 1 & (cTracks>>1);
796 bs.fTracksExt = 1 & cTracks;
797 bs.fZoom = cZoom;
798
799 //Long Peixun's update: Read CGEM flags
800 bs.fCgemGlobal = 1 & (cCgem >> 3);
801 bs.fCgemLayers = 1 & (cCgem >> 2);
802 bs.fCgemXStrips = 1 & (cCgem >> 1);
803 bs.fCgemVStrips = 1 & cCgem;
804 bs.fCgemHitsGlobal = 1 & (cCgemHits >> 4);
805 bs.fCgemHitsXStrip = 1 & (cCgemHits >> 3);
806 bs.fCgemHitsVStrip = 1 & (cCgemHits >> 2);
807 bs.fCgemHitsClusters = 1 & (cCgemHits >> 1);
808 bs.fCgemHitsFiredHL = 1 & cCgemHits;
809
810 return is;
811}
float Float_t