Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EVENT Class Reference

#include <AsciiData.hh>

Inheritance diagram for EVENT:

Tagged Tagged Tagged Tagged List of all members.

Public Member Functions

 EVENT ()
 EVENT ()
 EVENT ()
 EVENT ()
bool initialized () const
bool initialized () const
bool initialized () const
bool initialized () const
void set_initialized ()
void set_initialized ()
void set_initialized ()
void set_initialized ()
void unset_initalized ()
void unset_initalized ()
void unset_initalized ()
void unset_initalized ()

Public Attributes

DECAYMODE decayMode
EMCDIGI emcDigi
EMCTRUTH emcTruth
EVHEAD header
MDCDIGI mdcDigi
MDCTRUTH mdcTruth
MUCDIGI mucDigi
MUCTRUTH mucTruth
TOFDIGI tofDigi
TOFTRUTH tofTruth
TRACKTRUTH trackTruth
VERTEXTRUTH vertexTruth

Protected Member Functions

void check_end_tag (std::istream &is, const char *tag)
void check_end_tag (std::istream &is, const char *tag)
void check_end_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_start_tag (std::istream &is, const char *tag)
void check_start_tag (std::istream &is, const char *tag)
void check_start_tag (std::istream &is, const char *tag)

Friends

std::ostreamoperator<< (std::ostream &, const EVENT &x)
std::ostreamoperator<< (std::ostream &, const EVENT &x)
std::ostreamoperator<< (std::ostream &, const EVENT &x)
std::ostreamoperator<< (std::ostream &, const EVENT &x)
std::istreamoperator>> (std::istream &, EVENT &x)
std::istreamoperator>> (std::istream &, EVENT &x)
std::istreamoperator>> (std::istream &, EVENT &x)
std::istreamoperator>> (std::istream &, EVENT &x)

Constructor & Destructor Documentation

EVENT::EVENT  )  [inline]
 

00391 {};

EVENT::EVENT  )  [inline]
 

00391 {};

EVENT::EVENT  )  [inline]
 

00304 {};

EVENT::EVENT  )  [inline]
 

00304 {};


Member Function Documentation

void Tagged::check_end_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_end_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_end_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_end_tag std::istream is,
const char *  tag
[inline, protected, inherited]
 

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 }

void Tagged::check_start_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_start_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_start_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_start_tag std::istream is,
const char *  tag
[inline, protected, inherited]
 

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 }

bool Tagged::initialized  )  const [inherited]
 

bool Tagged::initialized  )  const [inherited]
 

bool Tagged::initialized  )  const [inherited]
 

bool Tagged::initialized  )  const [inline, inherited]
 

00064 {
00065     return m_initialized;
00066 }

void Tagged::set_initialized  )  [inherited]
 

void Tagged::set_initialized  )  [inherited]
 

void Tagged::set_initialized  )  [inherited]
 

void Tagged::set_initialized  )  [inline, inherited]
 

00070 { 
00071     m_initialized = true; 
00072 }

void Tagged::unset_initalized  )  [inherited]
 

void Tagged::unset_initalized  )  [inherited]
 

void Tagged::unset_initalized  )  [inherited]
 

void Tagged::unset_initalized  )  [inline, inherited]
 

00076 { 
00077     m_initialized = false; 
00078 }


Friends And Related Function Documentation

std::ostream& operator<< std::ostream os,
const EVENT x
[friend]
 

00867 {
00868     os << std::endl << "{ EVENT" << std::endl;
00869     if(x.initialized()) {
00870     os << " " << x.header;
00871     os << " " << x.decayMode;
00872     os << " " << x.trackTruth;
00873     os << " " << x.vertexTruth;
00874     os << " " << x.mdcTruth;
00875     os << " " << x.mdcDigi;
00876     os << " " << x.tofTruth;
00877     os << " " << x.tofDigi;
00878     os << " " << x.emcTruth;
00879     os << " " << x.emcDigi; 
00880     os << " " << x.mucTruth;
00881     os << " " << x.mucDigi; 
00882     }
00883     os << std::endl << "} EVENT" << std::endl;
00884     return os;
00885 }

std::ostream& operator<< std::ostream os,
const EVENT x
[friend]
 

00867 {
00868     os << std::endl << "{ EVENT" << std::endl;
00869     if(x.initialized()) {
00870     os << " " << x.header;
00871     os << " " << x.decayMode;
00872     os << " " << x.trackTruth;
00873     os << " " << x.vertexTruth;
00874     os << " " << x.mdcTruth;
00875     os << " " << x.mdcDigi;
00876     os << " " << x.tofTruth;
00877     os << " " << x.tofDigi;
00878     os << " " << x.emcTruth;
00879     os << " " << x.emcDigi; 
00880     os << " " << x.mucTruth;
00881     os << " " << x.mucDigi; 
00882     }
00883     os << std::endl << "} EVENT" << std::endl;
00884     return os;
00885 }

std::ostream& operator<< std::ostream os,
const EVENT x
[friend]
 

00867 {
00868     os << std::endl << "{ EVENT" << std::endl;
00869     if(x.initialized()) {
00870     os << " " << x.header;
00871     os << " " << x.decayMode;
00872     os << " " << x.trackTruth;
00873     os << " " << x.vertexTruth;
00874     os << " " << x.mdcTruth;
00875     os << " " << x.mdcDigi;
00876     os << " " << x.tofTruth;
00877     os << " " << x.tofDigi;
00878     os << " " << x.emcTruth;
00879     os << " " << x.emcDigi; 
00880     os << " " << x.mucTruth;
00881     os << " " << x.mucDigi; 
00882     }
00883     os << std::endl << "} EVENT" << std::endl;
00884     return os;
00885 }

std::ostream& operator<< std::ostream os,
const EVENT x
[friend]
 

00867 {
00868     os << std::endl << "{ EVENT" << std::endl;
00869     if(x.initialized()) {
00870     os << " " << x.header;
00871     os << " " << x.decayMode;
00872     os << " " << x.trackTruth;
00873     os << " " << x.vertexTruth;
00874     os << " " << x.mdcTruth;
00875     os << " " << x.mdcDigi;
00876     os << " " << x.tofTruth;
00877     os << " " << x.tofDigi;
00878     os << " " << x.emcTruth;
00879     os << " " << x.emcDigi; 
00880     os << " " << x.mucTruth;
00881     os << " " << x.mucDigi; 
00882     }
00883     os << std::endl << "} EVENT" << std::endl;
00884     return os;
00885 }

std::istream& operator>> std::istream is,
EVENT x
[friend]
 

00787 {
00788     x.check_start_tag(is,"EVENT");
00789     if(!x.initialized()) return is;
00790     
00791     try {
00792       is >> x.header;
00793     } catch(AsciiDumpException& ) {
00794       std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
00795     }
00796    
00797     try {
00798       is >> x.decayMode;
00799     } catch(AsciiDumpException& ) {
00800       std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
00801     }
00802     
00803     try {
00804       is >> x.trackTruth;
00805     } catch(AsciiDumpException& ) {
00806       std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
00807     }
00808 
00809     try {
00810       is >> x.vertexTruth;
00811     } catch (AsciiDumpException& ) {
00812       std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
00813     }
00814     
00815     try {
00816       is >> x.mdcTruth;
00817     } catch (AsciiDumpException& ) {
00818       std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
00819     }
00820     
00821     try {
00822       is >> x.mdcDigi;
00823     } catch (AsciiDumpException& ) {
00824       std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl;
00825     }
00826     
00827     try {
00828       is >> x.tofTruth;
00829     } catch (AsciiDumpException& ) {
00830       std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
00831     }
00832 
00833     try {
00834       is >> x.tofDigi;
00835     } catch (AsciiDumpException& ) {
00836       std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl;
00837     }
00838     
00839     try {
00840       is >> x.emcTruth;
00841     } catch (AsciiDumpException& ) {
00842       std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
00843     }
00844 
00845     try {
00846       is >> x.emcDigi;
00847     } catch (AsciiDumpException& ) {
00848       std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl;
00849     }
00850     
00851     try {
00852       is >> x.mucTruth;
00853     } catch (AsciiDumpException& ) {
00854       std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
00855     }
00856     
00857     try {
00858       is >> x.mucDigi;
00859     } catch (AsciiDumpException& ) {
00860       std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl;
00861     }
00862     x.check_end_tag(is, "EVENT");
00863     return is;
00864 }

std::istream& operator>> std::istream is,
EVENT x
[friend]
 

00787 {
00788     x.check_start_tag(is,"EVENT");
00789     if(!x.initialized()) return is;
00790     
00791     try {
00792       is >> x.header;
00793     } catch(AsciiDumpException& ) {
00794       std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
00795     }
00796    
00797     try {
00798       is >> x.decayMode;
00799     } catch(AsciiDumpException& ) {
00800       std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
00801     }
00802     
00803     try {
00804       is >> x.trackTruth;
00805     } catch(AsciiDumpException& ) {
00806       std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
00807     }
00808 
00809     try {
00810       is >> x.vertexTruth;
00811     } catch (AsciiDumpException& ) {
00812       std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
00813     }
00814     
00815     try {
00816       is >> x.mdcTruth;
00817     } catch (AsciiDumpException& ) {
00818       std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
00819     }
00820     
00821     try {
00822       is >> x.mdcDigi;
00823     } catch (AsciiDumpException& ) {
00824       std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl;
00825     }
00826     
00827     try {
00828       is >> x.tofTruth;
00829     } catch (AsciiDumpException& ) {
00830       std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
00831     }
00832 
00833     try {
00834       is >> x.tofDigi;
00835     } catch (AsciiDumpException& ) {
00836       std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl;
00837     }
00838     
00839     try {
00840       is >> x.emcTruth;
00841     } catch (AsciiDumpException& ) {
00842       std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
00843     }
00844 
00845     try {
00846       is >> x.emcDigi;
00847     } catch (AsciiDumpException& ) {
00848       std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl;
00849     }
00850     
00851     try {
00852       is >> x.mucTruth;
00853     } catch (AsciiDumpException& ) {
00854       std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
00855     }
00856     
00857     try {
00858       is >> x.mucDigi;
00859     } catch (AsciiDumpException& ) {
00860       std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl;
00861     }
00862     x.check_end_tag(is, "EVENT");
00863     return is;
00864 }

std::istream& operator>> std::istream is,
EVENT x
[friend]
 

00787 {
00788     x.check_start_tag(is,"EVENT");
00789     if(!x.initialized()) return is;
00790     
00791     try {
00792       is >> x.header;
00793     } catch(AsciiDumpException& ) {
00794       std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
00795     }
00796    
00797     try {
00798       is >> x.decayMode;
00799     } catch(AsciiDumpException& ) {
00800       std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
00801     }
00802     
00803     try {
00804       is >> x.trackTruth;
00805     } catch(AsciiDumpException& ) {
00806       std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
00807     }
00808 
00809     try {
00810       is >> x.vertexTruth;
00811     } catch (AsciiDumpException& ) {
00812       std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
00813     }
00814     
00815     try {
00816       is >> x.mdcTruth;
00817     } catch (AsciiDumpException& ) {
00818       std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
00819     }
00820     
00821     try {
00822       is >> x.mdcDigi;
00823     } catch (AsciiDumpException& ) {
00824       std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl;
00825     }
00826     
00827     try {
00828       is >> x.tofTruth;
00829     } catch (AsciiDumpException& ) {
00830       std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
00831     }
00832 
00833     try {
00834       is >> x.tofDigi;
00835     } catch (AsciiDumpException& ) {
00836       std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl;
00837     }
00838     
00839     try {
00840       is >> x.emcTruth;
00841     } catch (AsciiDumpException& ) {
00842       std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
00843     }
00844 
00845     try {
00846       is >> x.emcDigi;
00847     } catch (AsciiDumpException& ) {
00848       std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl;
00849     }
00850     
00851     try {
00852       is >> x.mucTruth;
00853     } catch (AsciiDumpException& ) {
00854       std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
00855     }
00856     
00857     try {
00858       is >> x.mucDigi;
00859     } catch (AsciiDumpException& ) {
00860       std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl;
00861     }
00862     x.check_end_tag(is, "EVENT");
00863     return is;
00864 }

std::istream& operator>> std::istream is,
EVENT x
[friend]
 

00787 {
00788     x.check_start_tag(is,"EVENT");
00789     if(!x.initialized()) return is;
00790     
00791     try {
00792       is >> x.header;
00793     } catch(AsciiDumpException& ) {
00794       std::cerr << "Got AsciiDumpException eror while reading header block !!!" << std::endl;
00795     }
00796    
00797     try {
00798       is >> x.decayMode;
00799     } catch(AsciiDumpException& ) {
00800       std::cerr << "Got AsciiDumpException eror while reading decay mode block !!!" << std::endl;
00801     }
00802     
00803     try {
00804       is >> x.trackTruth;
00805     } catch(AsciiDumpException& ) {
00806       std::cerr << "Got AsciiDumpException eror while reading track truth block !!!" << std::endl;
00807     }
00808 
00809     try {
00810       is >> x.vertexTruth;
00811     } catch (AsciiDumpException& ) {
00812       std::cerr << "Got AsciiDumpException eror while reading vertex truth block !!!" << std::endl;
00813     }
00814     
00815     try {
00816       is >> x.mdcTruth;
00817     } catch (AsciiDumpException& ) {
00818       std::cerr << "Got AsciiDumpException eror while reading mdc truth block !!!" << std::endl;
00819     }
00820     
00821     try {
00822       is >> x.mdcDigi;
00823     } catch (AsciiDumpException& ) {
00824       std::cerr << "Got AsciiDumpException eror while reading mdc digi block !!!" << std::endl;
00825     }
00826     
00827     try {
00828       is >> x.tofTruth;
00829     } catch (AsciiDumpException& ) {
00830       std::cerr << "Got AsciiDumpException eror while reading tof truth block !!!" << std::endl;
00831     }
00832 
00833     try {
00834       is >> x.tofDigi;
00835     } catch (AsciiDumpException& ) {
00836       std::cerr << "Got AsciiDumpException eror while reading tof digi block !!!" << std::endl;
00837     }
00838     
00839     try {
00840       is >> x.emcTruth;
00841     } catch (AsciiDumpException& ) {
00842       std::cerr << "Got AsciiDumpException eror while reading emc truth block !!!" << std::endl;
00843     }
00844 
00845     try {
00846       is >> x.emcDigi;
00847     } catch (AsciiDumpException& ) {
00848       std::cerr << "Got AsciiDumpException eror while reading emc digi block !!!" << std::endl;
00849     }
00850     
00851     try {
00852       is >> x.mucTruth;
00853     } catch (AsciiDumpException& ) {
00854       std::cerr << "Got AsciiDumpException eror while reading muc truth block !!!" << std::endl;
00855     }
00856     
00857     try {
00858       is >> x.mucDigi;
00859     } catch (AsciiDumpException& ) {
00860       std::cerr << "Got AsciiDumpException eror while reading muc digi block !!!" << std::endl;
00861     }
00862     x.check_end_tag(is, "EVENT");
00863     return is;
00864 }


Member Data Documentation

DECAYMODE EVENT::decayMode
 

EMCDIGI EVENT::emcDigi
 

EMCTRUTH EVENT::emcTruth
 

EVHEAD EVENT::header
 

MDCDIGI EVENT::mdcDigi
 

MDCTRUTH EVENT::mdcTruth
 

MUCDIGI EVENT::mucDigi
 

MUCTRUTH EVENT::mucTruth
 

TOFDIGI EVENT::tofDigi
 

TOFTRUTH EVENT::tofTruth
 

TRACKTRUTH EVENT::trackTruth
 

VERTEXTRUTH EVENT::vertexTruth
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:02:39 2011 for BOSS6.5.5 by  doxygen 1.3.9.1