BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EMCHIT Class Reference

#include <AsciiData.hh>

Inheritance diagram for EMCHIT:

Public Member Functions

 EMCHIT ()
 EMCHIT ()
 EMCHIT ()
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 ()
 Tagged ()
bool initialized () const
void set_initialized ()
void unset_initalized ()
 Tagged ()
bool initialized () const
void set_initialized ()
void unset_initalized ()

Public Attributes

int nHit
std::vector< EmcHitTypehitCol

Friends

std::istream & operator>> (std::istream &is, EMCHIT &x)
std::ostream & operator<< (std::ostream &os, const EMCHIT &x)
std::istream & operator>> (std::istream &is, EMCHIT &x)
std::ostream & operator<< (std::ostream &os, const EMCHIT &x)
std::istream & operator>> (std::istream &is, EMCHIT &x)
std::ostream & operator<< (std::ostream &os, const EMCHIT &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)
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

Constructor & Destructor Documentation

◆ EMCHIT() [1/3]

EMCHIT::EMCHIT ( )
inline

Definition at line 362 of file Event/AsciiDmp/include/AsciiDmp/AsciiData.hh.

362{};

Referenced by operator<<, and operator>>.

◆ EMCHIT() [2/3]

EMCHIT::EMCHIT ( )
inline

◆ EMCHIT() [3/3]

EMCHIT::EMCHIT ( )
inline

◆ operator<< [1/3]

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

Definition at line 635 of file AsciiData.cc.

635 {
636 os << std::endl << "{ EMCHIT" << std::endl;
637 if ( x.initialized() )
638 {
639 os << " " << x.nHit;
640 {
641 for ( int i = 0; i < x.nHit; i++ ) { os << " " << x.hitCol[i]; }
642 }
643 }
644 os << std::endl << "} EMCHIT" << std::endl;
645 return os;
646}
Double_t x[10]

◆ operator<< [2/3]

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

Definition at line 635 of file AsciiData.cc.

635 {
636 os << std::endl << "{ EMCHIT" << std::endl;
637 if ( x.initialized() )
638 {
639 os << " " << x.nHit;
640 {
641 for ( int i = 0; i < x.nHit; i++ ) { os << " " << x.hitCol[i]; }
642 }
643 }
644 os << std::endl << "} EMCHIT" << std::endl;
645 return os;
646}

◆ operator<< [3/3]

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

Definition at line 635 of file AsciiData.cc.

635 {
636 os << std::endl << "{ EMCHIT" << std::endl;
637 if ( x.initialized() )
638 {
639 os << " " << x.nHit;
640 {
641 for ( int i = 0; i < x.nHit; i++ ) { os << " " << x.hitCol[i]; }
642 }
643 }
644 os << std::endl << "} EMCHIT" << std::endl;
645 return os;
646}

◆ operator>> [1/3]

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

Definition at line 623 of file AsciiData.cc.

623 {
624 x.check_start_tag( is, "EMCHIT" );
625 if ( !x.initialized() ) return is;
626 is >> x.nHit;
627 x.hitCol.resize( x.nHit );
628 {
629 for ( int i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
630 }
631 x.check_end_tag( is, "EMCHIT" );
632 return is;
633}

◆ operator>> [2/3]

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

Definition at line 623 of file AsciiData.cc.

623 {
624 x.check_start_tag( is, "EMCHIT" );
625 if ( !x.initialized() ) return is;
626 is >> x.nHit;
627 x.hitCol.resize( x.nHit );
628 {
629 for ( int i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
630 }
631 x.check_end_tag( is, "EMCHIT" );
632 return is;
633}

◆ operator>> [3/3]

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

Definition at line 623 of file AsciiData.cc.

623 {
624 x.check_start_tag( is, "EMCHIT" );
625 if ( !x.initialized() ) return is;
626 is >> x.nHit;
627 x.hitCol.resize( x.nHit );
628 {
629 for ( int i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
630 }
631 x.check_end_tag( is, "EMCHIT" );
632 return is;
633}

Member Data Documentation

◆ hitCol

std::vector< EmcHitType > EMCHIT::hitCol

◆ nHit

int EMCHIT::nHit

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