BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EVENT Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for EVENT:

Public Member Functions

 EVENT ()
 
 EVENT ()
 
- Public Member Functions inherited from Tagged
 Tagged ()
 
bool initialized () const
 
void set_initialized ()
 
void unset_initalized ()
 
 Tagged ()
 
bool initialized () const
 
void set_initialized ()
 
void unset_initalized ()
 

Public Attributes

EVHEAD header
 
DECAYMODE decayMode
 
TRACKTRUTH trackTruth
 
VERTEXTRUTH vertexTruth
 
MDCTRUTH mdcTruth
 
MDCDIGI mdcDigi
 
TOFTRUTH tofTruth
 
TOFDIGI tofDigi
 
EMCTRUTH emcTruth
 
EMCDIGI emcDigi
 
MUCTRUTH mucTruth
 
MUCDIGI mucDigi
 

Friends

std::istream & operator>> (std::istream &is, EVENT &x)
 
std::ostream & operator<< (std::ostream &os, const EVENT &x)
 
std::istream & operator>> (std::istream &is, EVENT &x)
 
std::ostream & operator<< (std::ostream &os, const EVENT &x)
 

Additional Inherited Members

- Protected Member Functions inherited from Tagged
void check_start_tag (std::istream &is, const char *tag)
 
void check_end_tag (std::istream &is, const char *tag)
 
void check_start_tag (std::istream &is, const char *tag)
 
void check_end_tag (std::istream &is, const char *tag)
 

Detailed Description

Definition at line 389 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ EVENT() [1/2]

EVENT::EVENT ( )
inline

Definition at line 391 of file AsciiData.hh.

391{};

◆ EVENT() [2/2]

EVENT::EVENT ( )
inline

Definition at line 304 of file AsciiData.h.

304{};

Friends And Related Symbol Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream & os,
const EVENT & x )
friend

Definition at line 866 of file AsciiData.cc.

867{
868 os << std::endl << "{ EVENT" << std::endl;
869 if(x.initialized()) {
870 os << " " << x.header;
871 os << " " << x.decayMode;
872 os << " " << x.trackTruth;
873 os << " " << x.vertexTruth;
874 os << " " << x.mdcTruth;
875 os << " " << x.mdcDigi;
876 os << " " << x.tofTruth;
877 os << " " << x.tofDigi;
878 os << " " << x.emcTruth;
879 os << " " << x.emcDigi;
880 os << " " << x.mucTruth;
881 os << " " << x.mucDigi;
882 }
883 os << std::endl << "} EVENT" << std::endl;
884 return os;
885}
Double_t x[10]

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream & os,
const EVENT & x )
friend

Definition at line 866 of file AsciiData.cc.

867{
868 os << std::endl << "{ EVENT" << std::endl;
869 if(x.initialized()) {
870 os << " " << x.header;
871 os << " " << x.decayMode;
872 os << " " << x.trackTruth;
873 os << " " << x.vertexTruth;
874 os << " " << x.mdcTruth;
875 os << " " << x.mdcDigi;
876 os << " " << x.tofTruth;
877 os << " " << x.tofDigi;
878 os << " " << x.emcTruth;
879 os << " " << x.emcDigi;
880 os << " " << x.mucTruth;
881 os << " " << x.mucDigi;
882 }
883 os << std::endl << "} EVENT" << std::endl;
884 return os;
885}

◆ operator>> [1/2]

std::istream & operator>> ( std::istream & is,
EVENT & x )
friend

Definition at line 786 of file AsciiData.cc.

787{
788 x.check_start_tag(is,"EVENT");
789 if(!x.initialized()) return is;
790
791 try {
792 is >> x.header;
793 } catch(AsciiDumpException& ) {
794 std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
795 }
796
797 try {
798 is >> x.decayMode;
799 } catch(AsciiDumpException& ) {
800 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
801 }
802
803 try {
804 is >> x.trackTruth;
805 } catch(AsciiDumpException& ) {
806 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
807 }
808
809 try {
810 is >> x.vertexTruth;
811 } catch (AsciiDumpException& ) {
812 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
813 }
814
815 try {
816 is >> x.mdcTruth;
817 } catch (AsciiDumpException& ) {
818 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
819 }
820
821 try {
822 is >> x.mdcDigi;
823 } catch (AsciiDumpException& ) {
824 std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl;
825 }
826
827 try {
828 is >> x.tofTruth;
829 } catch (AsciiDumpException& ) {
830 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
831 }
832
833 try {
834 is >> x.tofDigi;
835 } catch (AsciiDumpException& ) {
836 std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl;
837 }
838
839 try {
840 is >> x.emcTruth;
841 } catch (AsciiDumpException& ) {
842 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
843 }
844
845 try {
846 is >> x.emcDigi;
847 } catch (AsciiDumpException& ) {
848 std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl;
849 }
850
851 try {
852 is >> x.mucTruth;
853 } catch (AsciiDumpException& ) {
854 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
855 }
856
857 try {
858 is >> x.mucDigi;
859 } catch (AsciiDumpException& ) {
860 std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl;
861 }
862 x.check_end_tag(is, "EVENT");
863 return is;
864}

◆ operator>> [2/2]

std::istream & operator>> ( std::istream & is,
EVENT & x )
friend

Definition at line 786 of file AsciiData.cc.

787{
788 x.check_start_tag(is,"EVENT");
789 if(!x.initialized()) return is;
790
791 try {
792 is >> x.header;
793 } catch(AsciiDumpException& ) {
794 std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
795 }
796
797 try {
798 is >> x.decayMode;
799 } catch(AsciiDumpException& ) {
800 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
801 }
802
803 try {
804 is >> x.trackTruth;
805 } catch(AsciiDumpException& ) {
806 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
807 }
808
809 try {
810 is >> x.vertexTruth;
811 } catch (AsciiDumpException& ) {
812 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
813 }
814
815 try {
816 is >> x.mdcTruth;
817 } catch (AsciiDumpException& ) {
818 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
819 }
820
821 try {
822 is >> x.mdcDigi;
823 } catch (AsciiDumpException& ) {
824 std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl;
825 }
826
827 try {
828 is >> x.tofTruth;
829 } catch (AsciiDumpException& ) {
830 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
831 }
832
833 try {
834 is >> x.tofDigi;
835 } catch (AsciiDumpException& ) {
836 std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl;
837 }
838
839 try {
840 is >> x.emcTruth;
841 } catch (AsciiDumpException& ) {
842 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
843 }
844
845 try {
846 is >> x.emcDigi;
847 } catch (AsciiDumpException& ) {
848 std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl;
849 }
850
851 try {
852 is >> x.mucTruth;
853 } catch (AsciiDumpException& ) {
854 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
855 }
856
857 try {
858 is >> x.mucDigi;
859 } catch (AsciiDumpException& ) {
860 std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl;
861 }
862 x.check_end_tag(is, "EVENT");
863 return is;
864}

Member Data Documentation

◆ decayMode

DECAYMODE EVENT::decayMode

Definition at line 394 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveDecayMode().

◆ emcDigi

EMCDIGI EVENT::emcDigi

Definition at line 402 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveEmcDigits().

◆ emcTruth

EMCTRUTH EVENT::emcTruth

Definition at line 401 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveEmcTruth().

◆ header

EVHEAD EVENT::header

Definition at line 393 of file AsciiData.hh.

Referenced by BesTrigL1::execute(), main(), and BesAsciiIO::SaveAsciiEvents().

◆ mdcDigi

MDCDIGI EVENT::mdcDigi

Definition at line 398 of file AsciiData.hh.

Referenced by main(), BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveMdcDigits().

◆ mdcTruth

MDCTRUTH EVENT::mdcTruth

Definition at line 397 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveMdcTruth().

◆ mucDigi

MUCDIGI EVENT::mucDigi

Definition at line 404 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveMucDigits().

◆ mucTruth

MUCTRUTH EVENT::mucTruth

Definition at line 403 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveMucTruth().

◆ tofDigi

TOFDIGI EVENT::tofDigi

Definition at line 400 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveTofDigits().

◆ tofTruth

TOFTRUTH EVENT::tofTruth

Definition at line 399 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveTofTruth().

◆ trackTruth

TRACKTRUTH EVENT::trackTruth

Definition at line 395 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveTrackTruth().

◆ vertexTruth

VERTEXTRUTH EVENT::vertexTruth

Definition at line 396 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveVertexTruth().


The documentation for this class was generated from the following files: