BOSS 7.1.2
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
 
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 409 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ HitEVENT()

HitEVENT::HitEVENT ( )
inline

Definition at line 411 of file AsciiData.hh.

411{};

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 967 of file AsciiData.cc.

968{
969 os << std::endl << "{ HITEVENT" << std::endl;
970 if(x.initialized()) {
971 os << " " << x.header;
972 os << " " << x.decayMode;
973 os << " " << x.trackTruth;
974 os << " " << x.vertexTruth;
975 os << " " << x.mdcTruth;
976 os << " " << x.mdcHit;
977 os << " " << x.tofTruth;
978 os << " " << x.tofHit;
979 os << " " << x.emcTruth;
980 os << " " << x.emcHit;
981 os << " " << x.mucTruth;
982 os << " " << x.mucHit;
983 }
984 os << std::endl << "} HITEVENT" << std::endl;
985 return os;
986}
Double_t x[10]

◆ operator>>

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

Definition at line 887 of file AsciiData.cc.

888{
889 x.check_start_tag(is,"HITEVENT");
890 if(!x.initialized()) return is;
891
892 try {
893 is >> x.header;
894 } catch(AsciiDumpException& ) {
895 std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
896 }
897
898 try {
899 is >> x.decayMode;
900 } catch(AsciiDumpException& ) {
901 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
902 }
903
904 try {
905 is >> x.trackTruth;
906 } catch(AsciiDumpException& ) {
907 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
908 }
909
910 try {
911 is >> x.vertexTruth;
912 } catch (AsciiDumpException& ) {
913 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
914 }
915
916 try {
917 is >> x.mdcTruth;
918 } catch (AsciiDumpException& ) {
919 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
920 }
921
922 try {
923 is >> x.mdcHit;
924 } catch (AsciiDumpException& ) {
925 std::cerr << "Got AsciiDumpException eror while reading mdc hit block !!!" << std::endl;
926 }
927
928 try {
929 is >> x.tofTruth;
930 } catch (AsciiDumpException& ) {
931 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
932 }
933
934 try {
935 is >> x.tofHit;
936 } catch (AsciiDumpException& ) {
937 std::cerr << "Got AsciiDumpException eror while reading tof hiti block !!!" << std::endl;
938 }
939
940 try {
941 is >> x.emcTruth;
942 } catch (AsciiDumpException& ) {
943 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
944 }
945
946 try {
947 is >> x.emcHit;
948 } catch (AsciiDumpException& ) {
949 std::cerr << "Got AsciiDumpException eror while reading emc hit block !!!" << std::endl;
950 }
951
952 try {
953 is >> x.mucTruth;
954 } catch (AsciiDumpException& ) {
955 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
956 }
957
958 try {
959 is >> x.mucHit;
960 } catch (AsciiDumpException& ) {
961 std::cerr << "Got AsciiDumpException eror while reading muc hit block !!!" << std::endl;
962 }
963 x.check_end_tag(is, "HITEVENT");
964 return is;
965}

Member Data Documentation

◆ decayMode

DECAYMODE HitEVENT::decayMode

Definition at line 414 of file AsciiData.hh.

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

◆ emcHit

EMCHIT HitEVENT::emcHit

Definition at line 422 of file AsciiData.hh.

◆ emcTruth

EMCTRUTH HitEVENT::emcTruth

Definition at line 421 of file AsciiData.hh.

◆ header

EVHEAD HitEVENT::header

Definition at line 413 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveHitAsciiEvents().

◆ mdcHit

MDCHIT HitEVENT::mdcHit

◆ mdcTruth

MDCTRUTH HitEVENT::mdcTruth

Definition at line 417 of file AsciiData.hh.

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

◆ mucHit

MUCHIT HitEVENT::mucHit

Definition at line 424 of file AsciiData.hh.

◆ mucTruth

MUCTRUTH HitEVENT::mucTruth

Definition at line 423 of file AsciiData.hh.

◆ tofHit

TOFHIT HitEVENT::tofHit

Definition at line 420 of file AsciiData.hh.

◆ tofTruth

TOFTRUTH HitEVENT::tofTruth

Definition at line 419 of file AsciiData.hh.

◆ trackTruth

TRACKTRUTH HitEVENT::trackTruth

Definition at line 415 of file AsciiData.hh.

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

◆ vertexTruth

VERTEXTRUTH HitEVENT::vertexTruth

Definition at line 416 of file AsciiData.hh.

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


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