CGEM BOSS 6.6.5.g
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
 
CGEMTRUTH cgemTruth
 
CGEMDIGI cgemDigi
 
TOFTRUTH tofTruth
 
TOFDIGI tofDigi
 
EMCTRUTH emcTruth
 
EMCDIGI emcDigi
 
MUCTRUTH mucTruth
 
MUCDIGI mucDigi
 

Friends

std::istream & operator>> (std::istream &, EVENT &x)
 
std::ostream & operator<< (std::ostream &, const EVENT &x)
 
std::istream & operator>> (std::istream &, EVENT &x)
 
std::ostream & operator<< (std::ostream &, 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 514 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ EVENT() [1/2]

EVENT::EVENT ( )
inline

Definition at line 516 of file AsciiData.hh.

516{};

◆ EVENT() [2/2]

EVENT::EVENT ( )
inline

Definition at line 304 of file AsciiData.h.

304{};

Friends And Related Function Documentation

◆ operator<< [1/2]

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

Definition at line 1129 of file AsciiData.cc.

1130{
1131 os << std::endl << "{ EVENT" << std::endl;
1132 if(x.initialized()) {
1133 os << " " << x.header;
1134 os << " " << x.decayMode;
1135 os << " " << x.trackTruth;
1136 os << " " << x.vertexTruth;
1137 os << " " << x.mdcTruth;
1138 os << " " << x.mdcDigi;
1139 os << " " << x.cgemTruth;
1140 os << " " << x.cgemDigi;
1141 os << " " << x.tofTruth;
1142 os << " " << x.tofDigi;
1143 os << " " << x.emcTruth;
1144 os << " " << x.emcDigi;
1145 os << " " << x.mucTruth;
1146 os << " " << x.mucDigi;
1147 }
1148 os << std::endl << "} EVENT" << std::endl;
1149 return os;
1150}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 1129 of file AsciiData.cc.

1130{
1131 os << std::endl << "{ EVENT" << std::endl;
1132 if(x.initialized()) {
1133 os << " " << x.header;
1134 os << " " << x.decayMode;
1135 os << " " << x.trackTruth;
1136 os << " " << x.vertexTruth;
1137 os << " " << x.mdcTruth;
1138 os << " " << x.mdcDigi;
1139 os << " " << x.cgemTruth;
1140 os << " " << x.cgemDigi;
1141 os << " " << x.tofTruth;
1142 os << " " << x.tofDigi;
1143 os << " " << x.emcTruth;
1144 os << " " << x.emcDigi;
1145 os << " " << x.mucTruth;
1146 os << " " << x.mucDigi;
1147 }
1148 os << std::endl << "} EVENT" << std::endl;
1149 return os;
1150}

◆ operator>> [1/2]

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

Definition at line 1037 of file AsciiData.cc.

1038{
1039 x.check_start_tag(is,"EVENT");
1040 if(!x.initialized()) return is;
1041
1042 try {
1043 is >> x.header;
1044 } catch(AsciiDumpException& ) {
1045 std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
1046 }
1047
1048 try {
1049 is >> x.decayMode;
1050 } catch(AsciiDumpException& ) {
1051 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
1052 }
1053
1054 try {
1055 is >> x.trackTruth;
1056 } catch(AsciiDumpException& ) {
1057 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
1058 }
1059
1060 try {
1061 is >> x.vertexTruth;
1062 } catch (AsciiDumpException& ) {
1063 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
1064 }
1065
1066 try {
1067 is >> x.mdcTruth;
1068 } catch (AsciiDumpException& ) {
1069 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
1070 }
1071
1072 try {
1073 is >> x.mdcDigi;
1074 } catch (AsciiDumpException& ) {
1075 std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl;
1076 }
1077
1078 try {
1079 is >> x.cgemTruth;
1080 } catch (AsciiDumpException& ) {
1081 std::cerr << "Got AsciiDumpException eror while reading cgem truth block !!!" << std::endl;
1082 }
1083
1084 try {
1085 is >> x.cgemDigi;
1086 } catch (AsciiDumpException& ) {
1087 std::cerr << "Got AsciiDumpException eror while reading cgem digi block !!!" << std::endl;
1088 }
1089
1090 try {
1091 is >> x.tofTruth;
1092 } catch (AsciiDumpException& ) {
1093 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
1094 }
1095
1096 try {
1097 is >> x.tofDigi;
1098 } catch (AsciiDumpException& ) {
1099 std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl;
1100 }
1101
1102 try {
1103 is >> x.emcTruth;
1104 } catch (AsciiDumpException& ) {
1105 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
1106 }
1107
1108 try {
1109 is >> x.emcDigi;
1110 } catch (AsciiDumpException& ) {
1111 std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl;
1112 }
1113
1114 try {
1115 is >> x.mucTruth;
1116 } catch (AsciiDumpException& ) {
1117 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
1118 }
1119
1120 try {
1121 is >> x.mucDigi;
1122 } catch (AsciiDumpException& ) {
1123 std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl;
1124 }
1125 x.check_end_tag(is, "EVENT");
1126 return is;
1127}

◆ operator>> [2/2]

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

Definition at line 1037 of file AsciiData.cc.

1038{
1039 x.check_start_tag(is,"EVENT");
1040 if(!x.initialized()) return is;
1041
1042 try {
1043 is >> x.header;
1044 } catch(AsciiDumpException& ) {
1045 std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
1046 }
1047
1048 try {
1049 is >> x.decayMode;
1050 } catch(AsciiDumpException& ) {
1051 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
1052 }
1053
1054 try {
1055 is >> x.trackTruth;
1056 } catch(AsciiDumpException& ) {
1057 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
1058 }
1059
1060 try {
1061 is >> x.vertexTruth;
1062 } catch (AsciiDumpException& ) {
1063 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
1064 }
1065
1066 try {
1067 is >> x.mdcTruth;
1068 } catch (AsciiDumpException& ) {
1069 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
1070 }
1071
1072 try {
1073 is >> x.mdcDigi;
1074 } catch (AsciiDumpException& ) {
1075 std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl;
1076 }
1077
1078 try {
1079 is >> x.cgemTruth;
1080 } catch (AsciiDumpException& ) {
1081 std::cerr << "Got AsciiDumpException eror while reading cgem truth block !!!" << std::endl;
1082 }
1083
1084 try {
1085 is >> x.cgemDigi;
1086 } catch (AsciiDumpException& ) {
1087 std::cerr << "Got AsciiDumpException eror while reading cgem digi block !!!" << std::endl;
1088 }
1089
1090 try {
1091 is >> x.tofTruth;
1092 } catch (AsciiDumpException& ) {
1093 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
1094 }
1095
1096 try {
1097 is >> x.tofDigi;
1098 } catch (AsciiDumpException& ) {
1099 std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl;
1100 }
1101
1102 try {
1103 is >> x.emcTruth;
1104 } catch (AsciiDumpException& ) {
1105 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
1106 }
1107
1108 try {
1109 is >> x.emcDigi;
1110 } catch (AsciiDumpException& ) {
1111 std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl;
1112 }
1113
1114 try {
1115 is >> x.mucTruth;
1116 } catch (AsciiDumpException& ) {
1117 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
1118 }
1119
1120 try {
1121 is >> x.mucDigi;
1122 } catch (AsciiDumpException& ) {
1123 std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl;
1124 }
1125 x.check_end_tag(is, "EVENT");
1126 return is;
1127}

Member Data Documentation

◆ cgemDigi

CGEMDIGI EVENT::cgemDigi

Definition at line 525 of file AsciiData.hh.

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

◆ cgemTruth

CGEMTRUTH EVENT::cgemTruth

Definition at line 524 of file AsciiData.hh.

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

◆ decayMode

DECAYMODE EVENT::decayMode

Definition at line 519 of file AsciiData.hh.

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

◆ emcDigi

EMCDIGI EVENT::emcDigi

Definition at line 529 of file AsciiData.hh.

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

◆ emcTruth

EMCTRUTH EVENT::emcTruth

Definition at line 528 of file AsciiData.hh.

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

◆ header

EVHEAD EVENT::header

Definition at line 518 of file AsciiData.hh.

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

◆ mdcDigi

MDCDIGI EVENT::mdcDigi

Definition at line 523 of file AsciiData.hh.

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

◆ mdcTruth

MDCTRUTH EVENT::mdcTruth

Definition at line 522 of file AsciiData.hh.

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

◆ mucDigi

MUCDIGI EVENT::mucDigi

Definition at line 531 of file AsciiData.hh.

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

◆ mucTruth

MUCTRUTH EVENT::mucTruth

Definition at line 530 of file AsciiData.hh.

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

◆ tofDigi

TOFDIGI EVENT::tofDigi

Definition at line 527 of file AsciiData.hh.

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

◆ tofTruth

TOFTRUTH EVENT::tofTruth

Definition at line 526 of file AsciiData.hh.

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

◆ trackTruth

TRACKTRUTH EVENT::trackTruth

Definition at line 520 of file AsciiData.hh.

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

◆ vertexTruth

VERTEXTRUTH EVENT::vertexTruth

Definition at line 521 of file AsciiData.hh.

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


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