#include <AsciiData.hh>
Inheritance diagram for HitEVENT:
|
00411 {};
|
|
00411 {};
|
|
|
|
|
|
|
|
00109 { 00110 char c; 00111 is >> c; 00112 if(c != '}') 00113 throw AsciiNoEndChar(); 00114 00115 std::string in_tag; 00116 is >> in_tag; 00117 if(in_tag != tag) 00118 throw AsciiWrongEndTag(tag, in_tag); 00119 }
|
|
|
|
|
|
|
|
00082 { 00083 // read input, check for '{' character 00084 char c; 00085 if(!(is >> c) || (c != '{')) { 00086 throw AsciiNoStartChar(); 00087 } 00088 00089 // compare tags 00090 std::string in_tag; 00091 is >> in_tag; 00092 if(in_tag != tag) 00093 throw AsciiWrongStartTag(tag, in_tag); 00094 00095 // check for empty block 00096 is >> c; 00097 if(c == '}') { 00098 is >> in_tag; 00099 if(in_tag != tag) 00100 throw AsciiWrongEndTag(tag, in_tag); 00101 } else { 00102 is.putback(c); 00103 set_initialized(); 00104 } 00105 }
|
|
|
|
|
|
|
|
00064 {
00065 return m_initialized;
00066 }
|
|
|
|
|
|
|
|
00070 {
00071 m_initialized = true;
00072 }
|
|
|
|
|
|
|
|
00076 {
00077 m_initialized = false;
00078 }
|
|
00968 { 00969 os << std::endl << "{ HITEVENT" << std::endl; 00970 if(x.initialized()) { 00971 os << " " << x.header; 00972 os << " " << x.decayMode; 00973 os << " " << x.trackTruth; 00974 os << " " << x.vertexTruth; 00975 os << " " << x.mdcTruth; 00976 os << " " << x.mdcHit; 00977 os << " " << x.tofTruth; 00978 os << " " << x.tofHit; 00979 os << " " << x.emcTruth; 00980 os << " " << x.emcHit; 00981 os << " " << x.mucTruth; 00982 os << " " << x.mucHit; 00983 } 00984 os << std::endl << "} HITEVENT" << std::endl; 00985 return os; 00986 }
|
|
00968 { 00969 os << std::endl << "{ HITEVENT" << std::endl; 00970 if(x.initialized()) { 00971 os << " " << x.header; 00972 os << " " << x.decayMode; 00973 os << " " << x.trackTruth; 00974 os << " " << x.vertexTruth; 00975 os << " " << x.mdcTruth; 00976 os << " " << x.mdcHit; 00977 os << " " << x.tofTruth; 00978 os << " " << x.tofHit; 00979 os << " " << x.emcTruth; 00980 os << " " << x.emcHit; 00981 os << " " << x.mucTruth; 00982 os << " " << x.mucHit; 00983 } 00984 os << std::endl << "} HITEVENT" << std::endl; 00985 return os; 00986 }
|
|
00888 { 00889 x.check_start_tag(is,"HITEVENT"); 00890 if(!x.initialized()) return is; 00891 00892 try { 00893 is >> x.header; 00894 } catch(AsciiDumpException& ) { 00895 std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl; 00896 } 00897 00898 try { 00899 is >> x.decayMode; 00900 } catch(AsciiDumpException& ) { 00901 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl; 00902 } 00903 00904 try { 00905 is >> x.trackTruth; 00906 } catch(AsciiDumpException& ) { 00907 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl; 00908 } 00909 00910 try { 00911 is >> x.vertexTruth; 00912 } catch (AsciiDumpException& ) { 00913 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl; 00914 } 00915 00916 try { 00917 is >> x.mdcTruth; 00918 } catch (AsciiDumpException& ) { 00919 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl; 00920 } 00921 00922 try { 00923 is >> x.mdcHit; 00924 } catch (AsciiDumpException& ) { 00925 std::cerr << "Got AsciiDumpException eror while reading mdc hit block !!!" << std::endl; 00926 } 00927 00928 try { 00929 is >> x.tofTruth; 00930 } catch (AsciiDumpException& ) { 00931 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl; 00932 } 00933 00934 try { 00935 is >> x.tofHit; 00936 } catch (AsciiDumpException& ) { 00937 std::cerr << "Got AsciiDumpException eror while reading tof hiti block !!!" << std::endl; 00938 } 00939 00940 try { 00941 is >> x.emcTruth; 00942 } catch (AsciiDumpException& ) { 00943 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl; 00944 } 00945 00946 try { 00947 is >> x.emcHit; 00948 } catch (AsciiDumpException& ) { 00949 std::cerr << "Got AsciiDumpException eror while reading emc hit block !!!" << std::endl; 00950 } 00951 00952 try { 00953 is >> x.mucTruth; 00954 } catch (AsciiDumpException& ) { 00955 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl; 00956 } 00957 00958 try { 00959 is >> x.mucHit; 00960 } catch (AsciiDumpException& ) { 00961 std::cerr << "Got AsciiDumpException eror while reading muc hit block !!!" << std::endl; 00962 } 00963 x.check_end_tag(is, "HITEVENT"); 00964 return is; 00965 }
|
|
00888 { 00889 x.check_start_tag(is,"HITEVENT"); 00890 if(!x.initialized()) return is; 00891 00892 try { 00893 is >> x.header; 00894 } catch(AsciiDumpException& ) { 00895 std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl; 00896 } 00897 00898 try { 00899 is >> x.decayMode; 00900 } catch(AsciiDumpException& ) { 00901 std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl; 00902 } 00903 00904 try { 00905 is >> x.trackTruth; 00906 } catch(AsciiDumpException& ) { 00907 std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl; 00908 } 00909 00910 try { 00911 is >> x.vertexTruth; 00912 } catch (AsciiDumpException& ) { 00913 std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl; 00914 } 00915 00916 try { 00917 is >> x.mdcTruth; 00918 } catch (AsciiDumpException& ) { 00919 std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl; 00920 } 00921 00922 try { 00923 is >> x.mdcHit; 00924 } catch (AsciiDumpException& ) { 00925 std::cerr << "Got AsciiDumpException eror while reading mdc hit block !!!" << std::endl; 00926 } 00927 00928 try { 00929 is >> x.tofTruth; 00930 } catch (AsciiDumpException& ) { 00931 std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl; 00932 } 00933 00934 try { 00935 is >> x.tofHit; 00936 } catch (AsciiDumpException& ) { 00937 std::cerr << "Got AsciiDumpException eror while reading tof hiti block !!!" << std::endl; 00938 } 00939 00940 try { 00941 is >> x.emcTruth; 00942 } catch (AsciiDumpException& ) { 00943 std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl; 00944 } 00945 00946 try { 00947 is >> x.emcHit; 00948 } catch (AsciiDumpException& ) { 00949 std::cerr << "Got AsciiDumpException eror while reading emc hit block !!!" << std::endl; 00950 } 00951 00952 try { 00953 is >> x.mucTruth; 00954 } catch (AsciiDumpException& ) { 00955 std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl; 00956 } 00957 00958 try { 00959 is >> x.mucHit; 00960 } catch (AsciiDumpException& ) { 00961 std::cerr << "Got AsciiDumpException eror while reading muc hit block !!!" << std::endl; 00962 } 00963 x.check_end_tag(is, "HITEVENT"); 00964 return is; 00965 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|