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

#include <AsciiData.hh>

Inheritance diagram for MDCHIT:

Public Member Functions

 MDCHIT ()
 MDCHIT ()
 MDCHIT ()
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< MdcHitTypehitCol

Friends

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

◆ MDCHIT() [1/3]

MDCHIT::MDCHIT ( )
inline

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

268{};

Referenced by operator<<, and operator>>.

◆ MDCHIT() [2/3]

MDCHIT::MDCHIT ( )
inline

◆ MDCHIT() [3/3]

MDCHIT::MDCHIT ( )
inline

◆ operator<< [1/3]

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

Definition at line 477 of file AsciiData.cc.

477 {
478 os << std::endl << "{ MDCHIT" << std::endl;
479 if ( x.initialized() )
480 {
481 os << " " << x.nHit;
482 {
483 for ( int i = 0; i < x.nHit; i++ ) { os << " " << x.hitCol[i]; }
484 }
485 }
486 os << std::endl << "} MDCHIT" << std::endl;
487 return os;
488}
Double_t x[10]

◆ operator<< [2/3]

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

Definition at line 477 of file AsciiData.cc.

477 {
478 os << std::endl << "{ MDCHIT" << std::endl;
479 if ( x.initialized() )
480 {
481 os << " " << x.nHit;
482 {
483 for ( int i = 0; i < x.nHit; i++ ) { os << " " << x.hitCol[i]; }
484 }
485 }
486 os << std::endl << "} MDCHIT" << std::endl;
487 return os;
488}

◆ operator<< [3/3]

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

Definition at line 477 of file AsciiData.cc.

477 {
478 os << std::endl << "{ MDCHIT" << std::endl;
479 if ( x.initialized() )
480 {
481 os << " " << x.nHit;
482 {
483 for ( int i = 0; i < x.nHit; i++ ) { os << " " << x.hitCol[i]; }
484 }
485 }
486 os << std::endl << "} MDCHIT" << std::endl;
487 return os;
488}

◆ operator>> [1/3]

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

Definition at line 465 of file AsciiData.cc.

465 {
466 x.check_start_tag( is, "MDCHIT" );
467 if ( !x.initialized() ) return is;
468 is >> x.nHit;
469 x.hitCol.resize( x.nHit );
470 {
471 for ( int i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
472 }
473 x.check_end_tag( is, "MDCHIT" );
474 return is;
475}

◆ operator>> [2/3]

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

Definition at line 465 of file AsciiData.cc.

465 {
466 x.check_start_tag( is, "MDCHIT" );
467 if ( !x.initialized() ) return is;
468 is >> x.nHit;
469 x.hitCol.resize( x.nHit );
470 {
471 for ( int i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
472 }
473 x.check_end_tag( is, "MDCHIT" );
474 return is;
475}

◆ operator>> [3/3]

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

Definition at line 465 of file AsciiData.cc.

465 {
466 x.check_start_tag( is, "MDCHIT" );
467 if ( !x.initialized() ) return is;
468 is >> x.nHit;
469 x.hitCol.resize( x.nHit );
470 {
471 for ( int i = 0; i < x.nHit; i++ ) { is >> x.hitCol[i]; }
472 }
473 x.check_end_tag( is, "MDCHIT" );
474 return is;
475}

Member Data Documentation

◆ hitCol

std::vector< MdcHitType > MDCHIT::hitCol

◆ nHit

int MDCHIT::nHit

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