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

#include <AsciiData.hh>

Inheritance diagram for EVENT:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EVENT() [1/4]

EVENT::EVENT ( )
inline

Definition at line 418 of file Event/AsciiDmp/include/AsciiDmp/AsciiData.hh.

418{};

Referenced by operator<<, and operator>>.

◆ EVENT() [2/4]

EVENT::EVENT ( )
inline

◆ EVENT() [3/4]

EVENT::EVENT ( )
inline

◆ EVENT() [4/4]

EVENT::EVENT ( )
inline

Definition at line 326 of file AsciiData.h.

326{};

◆ operator<< [1/4]

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

Definition at line 795 of file AsciiData.cc.

795 {
796 os << std::endl << "{ EVENT" << std::endl;
797 if ( x.initialized() )
798 {
799 os << " " << x.header;
800 os << " " << x.decayMode;
801 os << " " << x.trackTruth;
802 os << " " << x.vertexTruth;
803 os << " " << x.mdcTruth;
804 os << " " << x.mdcDigi;
805 os << " " << x.tofTruth;
806 os << " " << x.tofDigi;
807 os << " " << x.emcTruth;
808 os << " " << x.emcDigi;
809 os << " " << x.mucTruth;
810 os << " " << x.mucDigi;
811 }
812 os << std::endl << "} EVENT" << std::endl;
813 return os;
814}
Double_t x[10]

◆ operator<< [2/4]

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

Definition at line 795 of file AsciiData.cc.

795 {
796 os << std::endl << "{ EVENT" << std::endl;
797 if ( x.initialized() )
798 {
799 os << " " << x.header;
800 os << " " << x.decayMode;
801 os << " " << x.trackTruth;
802 os << " " << x.vertexTruth;
803 os << " " << x.mdcTruth;
804 os << " " << x.mdcDigi;
805 os << " " << x.tofTruth;
806 os << " " << x.tofDigi;
807 os << " " << x.emcTruth;
808 os << " " << x.emcDigi;
809 os << " " << x.mucTruth;
810 os << " " << x.mucDigi;
811 }
812 os << std::endl << "} EVENT" << std::endl;
813 return os;
814}

◆ operator<< [3/4]

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

Definition at line 795 of file AsciiData.cc.

795 {
796 os << std::endl << "{ EVENT" << std::endl;
797 if ( x.initialized() )
798 {
799 os << " " << x.header;
800 os << " " << x.decayMode;
801 os << " " << x.trackTruth;
802 os << " " << x.vertexTruth;
803 os << " " << x.mdcTruth;
804 os << " " << x.mdcDigi;
805 os << " " << x.tofTruth;
806 os << " " << x.tofDigi;
807 os << " " << x.emcTruth;
808 os << " " << x.emcDigi;
809 os << " " << x.mucTruth;
810 os << " " << x.mucDigi;
811 }
812 os << std::endl << "} EVENT" << std::endl;
813 return os;
814}

◆ operator<< [4/4]

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

Definition at line 795 of file AsciiData.cc.

795 {
796 os << std::endl << "{ EVENT" << std::endl;
797 if ( x.initialized() )
798 {
799 os << " " << x.header;
800 os << " " << x.decayMode;
801 os << " " << x.trackTruth;
802 os << " " << x.vertexTruth;
803 os << " " << x.mdcTruth;
804 os << " " << x.mdcDigi;
805 os << " " << x.tofTruth;
806 os << " " << x.tofDigi;
807 os << " " << x.emcTruth;
808 os << " " << x.emcDigi;
809 os << " " << x.mucTruth;
810 os << " " << x.mucDigi;
811 }
812 os << std::endl << "} EVENT" << std::endl;
813 return os;
814}

◆ operator>> [1/4]

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

Definition at line 724 of file AsciiData.cc.

724 {
725 x.check_start_tag( is, "EVENT" );
726 if ( !x.initialized() ) return is;
727
728 try
729 { is >> x.header; } catch ( AsciiDumpException& )
730 { std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl; }
731
732 try
733 { is >> x.decayMode; } catch ( AsciiDumpException& )
734 {
735 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
736 }
737
738 try
739 { is >> x.trackTruth; } catch ( AsciiDumpException& )
740 {
741 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!"
742 << std::endl;
743 }
744
745 try
746 { is >> x.vertexTruth; } catch ( AsciiDumpException& )
747 {
748 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!"
749 << std::endl;
750 }
751
752 try
753 { is >> x.mdcTruth; } catch ( AsciiDumpException& )
754 {
755 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
756 }
757
758 try
759 { is >> x.mdcDigi; } catch ( AsciiDumpException& )
760 { std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl; }
761
762 try
763 { is >> x.tofTruth; } catch ( AsciiDumpException& )
764 {
765 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
766 }
767
768 try
769 { is >> x.tofDigi; } catch ( AsciiDumpException& )
770 { std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl; }
771
772 try
773 { is >> x.emcTruth; } catch ( AsciiDumpException& )
774 {
775 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
776 }
777
778 try
779 { is >> x.emcDigi; } catch ( AsciiDumpException& )
780 { std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl; }
781
782 try
783 { is >> x.mucTruth; } catch ( AsciiDumpException& )
784 {
785 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
786 }
787
788 try
789 { is >> x.mucDigi; } catch ( AsciiDumpException& )
790 { std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl; }
791 x.check_end_tag( is, "EVENT" );
792 return is;
793}

◆ operator>> [2/4]

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

Definition at line 724 of file AsciiData.cc.

724 {
725 x.check_start_tag( is, "EVENT" );
726 if ( !x.initialized() ) return is;
727
728 try
729 { is >> x.header; } catch ( AsciiDumpException& )
730 { std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl; }
731
732 try
733 { is >> x.decayMode; } catch ( AsciiDumpException& )
734 {
735 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
736 }
737
738 try
739 { is >> x.trackTruth; } catch ( AsciiDumpException& )
740 {
741 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!"
742 << std::endl;
743 }
744
745 try
746 { is >> x.vertexTruth; } catch ( AsciiDumpException& )
747 {
748 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!"
749 << std::endl;
750 }
751
752 try
753 { is >> x.mdcTruth; } catch ( AsciiDumpException& )
754 {
755 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
756 }
757
758 try
759 { is >> x.mdcDigi; } catch ( AsciiDumpException& )
760 { std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl; }
761
762 try
763 { is >> x.tofTruth; } catch ( AsciiDumpException& )
764 {
765 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
766 }
767
768 try
769 { is >> x.tofDigi; } catch ( AsciiDumpException& )
770 { std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl; }
771
772 try
773 { is >> x.emcTruth; } catch ( AsciiDumpException& )
774 {
775 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
776 }
777
778 try
779 { is >> x.emcDigi; } catch ( AsciiDumpException& )
780 { std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl; }
781
782 try
783 { is >> x.mucTruth; } catch ( AsciiDumpException& )
784 {
785 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
786 }
787
788 try
789 { is >> x.mucDigi; } catch ( AsciiDumpException& )
790 { std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl; }
791 x.check_end_tag( is, "EVENT" );
792 return is;
793}

◆ operator>> [3/4]

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

Definition at line 724 of file AsciiData.cc.

724 {
725 x.check_start_tag( is, "EVENT" );
726 if ( !x.initialized() ) return is;
727
728 try
729 { is >> x.header; } catch ( AsciiDumpException& )
730 { std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl; }
731
732 try
733 { is >> x.decayMode; } catch ( AsciiDumpException& )
734 {
735 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
736 }
737
738 try
739 { is >> x.trackTruth; } catch ( AsciiDumpException& )
740 {
741 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!"
742 << std::endl;
743 }
744
745 try
746 { is >> x.vertexTruth; } catch ( AsciiDumpException& )
747 {
748 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!"
749 << std::endl;
750 }
751
752 try
753 { is >> x.mdcTruth; } catch ( AsciiDumpException& )
754 {
755 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
756 }
757
758 try
759 { is >> x.mdcDigi; } catch ( AsciiDumpException& )
760 { std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl; }
761
762 try
763 { is >> x.tofTruth; } catch ( AsciiDumpException& )
764 {
765 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
766 }
767
768 try
769 { is >> x.tofDigi; } catch ( AsciiDumpException& )
770 { std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl; }
771
772 try
773 { is >> x.emcTruth; } catch ( AsciiDumpException& )
774 {
775 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
776 }
777
778 try
779 { is >> x.emcDigi; } catch ( AsciiDumpException& )
780 { std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl; }
781
782 try
783 { is >> x.mucTruth; } catch ( AsciiDumpException& )
784 {
785 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
786 }
787
788 try
789 { is >> x.mucDigi; } catch ( AsciiDumpException& )
790 { std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl; }
791 x.check_end_tag( is, "EVENT" );
792 return is;
793}

◆ operator>> [4/4]

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

Definition at line 724 of file AsciiData.cc.

724 {
725 x.check_start_tag( is, "EVENT" );
726 if ( !x.initialized() ) return is;
727
728 try
729 { is >> x.header; } catch ( AsciiDumpException& )
730 { std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl; }
731
732 try
733 { is >> x.decayMode; } catch ( AsciiDumpException& )
734 {
735 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
736 }
737
738 try
739 { is >> x.trackTruth; } catch ( AsciiDumpException& )
740 {
741 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!"
742 << std::endl;
743 }
744
745 try
746 { is >> x.vertexTruth; } catch ( AsciiDumpException& )
747 {
748 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!"
749 << std::endl;
750 }
751
752 try
753 { is >> x.mdcTruth; } catch ( AsciiDumpException& )
754 {
755 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
756 }
757
758 try
759 { is >> x.mdcDigi; } catch ( AsciiDumpException& )
760 { std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl; }
761
762 try
763 { is >> x.tofTruth; } catch ( AsciiDumpException& )
764 {
765 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
766 }
767
768 try
769 { is >> x.tofDigi; } catch ( AsciiDumpException& )
770 { std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl; }
771
772 try
773 { is >> x.emcTruth; } catch ( AsciiDumpException& )
774 {
775 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
776 }
777
778 try
779 { is >> x.emcDigi; } catch ( AsciiDumpException& )
780 { std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl; }
781
782 try
783 { is >> x.mucTruth; } catch ( AsciiDumpException& )
784 {
785 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
786 }
787
788 try
789 { is >> x.mucDigi; } catch ( AsciiDumpException& )
790 { std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl; }
791 x.check_end_tag( is, "EVENT" );
792 return is;
793}

Member Data Documentation

◆ decayMode

◆ emcDigi

◆ emcTruth

◆ header

◆ mdcDigi

◆ mdcTruth

◆ mucDigi

◆ mucTruth

◆ tofDigi

◆ tofTruth

◆ trackTruth

◆ vertexTruth


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