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

#include <AsciiData.hh>

Inheritance diagram for TOFHIT:

Public Member Functions

 TOFHIT ()
 TOFHIT ()
 TOFHIT ()
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< TofHitTypehitCol

Friends

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

◆ TOFHIT() [1/3]

TOFHIT::TOFHIT ( )
inline

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

316{};

Referenced by operator<<, and operator>>.

◆ TOFHIT() [2/3]

TOFHIT::TOFHIT ( )
inline

◆ TOFHIT() [3/3]

TOFHIT::TOFHIT ( )
inline

◆ operator<< [1/3]

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

Definition at line 557 of file AsciiData.cc.

557 {
558 os << std::endl << "{ TOFHIT" << std::endl;
559 if ( x.initialized() )
560 {
561 os << " " << x.nHit;
562 {
563 for ( int i = 0; i < x.nHit; i++ ) { os << " " << x.hitCol[i]; }
564 }
565 }
566 os << std::endl << "} TOFHIT" << std::endl;
567 return os;
568}
Double_t x[10]

◆ operator<< [2/3]

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

Definition at line 557 of file AsciiData.cc.

557 {
558 os << std::endl << "{ TOFHIT" << std::endl;
559 if ( x.initialized() )
560 {
561 os << " " << x.nHit;
562 {
563 for ( int i = 0; i < x.nHit; i++ ) { os << " " << x.hitCol[i]; }
564 }
565 }
566 os << std::endl << "} TOFHIT" << std::endl;
567 return os;
568}

◆ operator<< [3/3]

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

Definition at line 557 of file AsciiData.cc.

557 {
558 os << std::endl << "{ TOFHIT" << std::endl;
559 if ( x.initialized() )
560 {
561 os << " " << x.nHit;
562 {
563 for ( int i = 0; i < x.nHit; i++ ) { os << " " << x.hitCol[i]; }
564 }
565 }
566 os << std::endl << "} TOFHIT" << std::endl;
567 return os;
568}

◆ operator>> [1/3]

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

Definition at line 545 of file AsciiData.cc.

545 {
546 x.check_start_tag( is, "TOFHIT" );
547 if ( !x.initialized() ) return is;
548 is >> x.nHit;
549 x.hitCol.resize( x.nHit );
550 {
551 for ( int i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
552 }
553 x.check_end_tag( is, "TOFHIT" );
554 return is;
555}

◆ operator>> [2/3]

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

Definition at line 545 of file AsciiData.cc.

545 {
546 x.check_start_tag( is, "TOFHIT" );
547 if ( !x.initialized() ) return is;
548 is >> x.nHit;
549 x.hitCol.resize( x.nHit );
550 {
551 for ( int i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
552 }
553 x.check_end_tag( is, "TOFHIT" );
554 return is;
555}

◆ operator>> [3/3]

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

Definition at line 545 of file AsciiData.cc.

545 {
546 x.check_start_tag( is, "TOFHIT" );
547 if ( !x.initialized() ) return is;
548 is >> x.nHit;
549 x.hitCol.resize( x.nHit );
550 {
551 for ( int i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
552 }
553 x.check_end_tag( is, "TOFHIT" );
554 return is;
555}

Member Data Documentation

◆ hitCol

std::vector< TofHitType > TOFHIT::hitCol

◆ nHit

int TOFHIT::nHit

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