CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
HitEVENT Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for HitEVENT:

Public Member Functions

 HitEVENT ()
 
- 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
 
MDCHIT mdcHit
 
CGEMTRUTH cgemTruth
 
CGEMHIT cgemHit
 
TOFTRUTH tofTruth
 
TOFHIT tofHit
 
EMCTRUTH emcTruth
 
EMCHIT emcHit
 
MUCTRUTH mucTruth
 
MUCHIT mucHit
 

Friends

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

Constructor & Destructor Documentation

◆ HitEVENT()

HitEVENT::HitEVENT ( )
inline

Definition at line 538 of file AsciiData.hh.

538{};

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 1244 of file AsciiData.cc.

1245{
1246 os << std::endl << "{ HITEVENT" << std::endl;
1247 if(x.initialized()) {
1248 os << " " << x.header;
1249 os << " " << x.decayMode;
1250 os << " " << x.trackTruth;
1251 os << " " << x.vertexTruth;
1252 os << " " << x.mdcTruth;
1253 os << " " << x.mdcHit;
1254 os << " " << x.cgemTruth;
1255 os << " " << x.cgemHit;
1256 os << " " << x.tofTruth;
1257 os << " " << x.tofHit;
1258 os << " " << x.emcTruth;
1259 os << " " << x.emcHit;
1260 os << " " << x.mucTruth;
1261 os << " " << x.mucHit;
1262 }
1263 os << std::endl << "} HITEVENT" << std::endl;
1264 return os;
1265}
Double_t x[10]

◆ operator>>

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

Definition at line 1152 of file AsciiData.cc.

1153{
1154 x.check_start_tag(is,"HITEVENT");
1155 if(!x.initialized()) return is;
1156
1157 try {
1158 is >> x.header;
1159 } catch(AsciiDumpException& ) {
1160 std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
1161 }
1162
1163 try {
1164 is >> x.decayMode;
1165 } catch(AsciiDumpException& ) {
1166 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
1167 }
1168
1169 try {
1170 is >> x.trackTruth;
1171 } catch(AsciiDumpException& ) {
1172 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
1173 }
1174
1175 try {
1176 is >> x.vertexTruth;
1177 } catch (AsciiDumpException& ) {
1178 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
1179 }
1180
1181 try {
1182 is >> x.mdcTruth;
1183 } catch (AsciiDumpException& ) {
1184 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
1185 }
1186
1187 try {
1188 is >> x.mdcHit;
1189 } catch (AsciiDumpException& ) {
1190 std::cerr << "Got AsciiDumpException eror while reading mdc hit block !!!" << std::endl;
1191 }
1192
1193 try {
1194 is >> x.cgemTruth;
1195 } catch (AsciiDumpException& ) {
1196 std::cerr << "Got AsciiDumpException eror while reading cgem truth block !!!" << std::endl;
1197 }
1198
1199 try {
1200 is >> x.cgemHit;
1201 } catch (AsciiDumpException& ) {
1202 std::cerr << "Got AsciiDumpException eror while reading cgem hit block !!!" << std::endl;
1203 }
1204
1205 try {
1206 is >> x.tofTruth;
1207 } catch (AsciiDumpException& ) {
1208 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
1209 }
1210
1211 try {
1212 is >> x.tofHit;
1213 } catch (AsciiDumpException& ) {
1214 std::cerr << "Got AsciiDumpException eror while reading tof hiti block !!!" << std::endl;
1215 }
1216
1217 try {
1218 is >> x.emcTruth;
1219 } catch (AsciiDumpException& ) {
1220 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
1221 }
1222
1223 try {
1224 is >> x.emcHit;
1225 } catch (AsciiDumpException& ) {
1226 std::cerr << "Got AsciiDumpException eror while reading emc hit block !!!" << std::endl;
1227 }
1228
1229 try {
1230 is >> x.mucTruth;
1231 } catch (AsciiDumpException& ) {
1232 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
1233 }
1234
1235 try {
1236 is >> x.mucHit;
1237 } catch (AsciiDumpException& ) {
1238 std::cerr << "Got AsciiDumpException eror while reading muc hit block !!!" << std::endl;
1239 }
1240 x.check_end_tag(is, "HITEVENT");
1241 return is;
1242}

Member Data Documentation

◆ cgemHit

CGEMHIT HitEVENT::cgemHit

◆ cgemTruth

CGEMTRUTH HitEVENT::cgemTruth

Definition at line 546 of file AsciiData.hh.

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

◆ decayMode

DECAYMODE HitEVENT::decayMode

Definition at line 541 of file AsciiData.hh.

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

◆ emcHit

EMCHIT HitEVENT::emcHit

Definition at line 551 of file AsciiData.hh.

◆ emcTruth

EMCTRUTH HitEVENT::emcTruth

Definition at line 550 of file AsciiData.hh.

◆ header

EVHEAD HitEVENT::header

Definition at line 540 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveHitAsciiEvents().

◆ mdcHit

MDCHIT HitEVENT::mdcHit

◆ mdcTruth

MDCTRUTH HitEVENT::mdcTruth

Definition at line 544 of file AsciiData.hh.

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

◆ mucHit

MUCHIT HitEVENT::mucHit

Definition at line 553 of file AsciiData.hh.

◆ mucTruth

MUCTRUTH HitEVENT::mucTruth

Definition at line 552 of file AsciiData.hh.

◆ tofHit

TOFHIT HitEVENT::tofHit

Definition at line 549 of file AsciiData.hh.

◆ tofTruth

TOFTRUTH HitEVENT::tofTruth

Definition at line 548 of file AsciiData.hh.

◆ trackTruth

TRACKTRUTH HitEVENT::trackTruth

Definition at line 542 of file AsciiData.hh.

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

◆ vertexTruth

VERTEXTRUTH HitEVENT::vertexTruth

Definition at line 543 of file AsciiData.hh.

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


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