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

#include <AsciiData.hh>

+ Inheritance diagram for MDCHIT:

Public Member Functions

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

Public Attributes

int nHit
 
std::vector< MdcHitTypehitCol
 

Friends

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

Detailed Description

Definition at line 249 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ MDCHIT()

MDCHIT::MDCHIT ( )
inline

Definition at line 251 of file AsciiData.hh.

251{};

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 510 of file AsciiData.cc.

511{
512 os << std::endl << "{ MDCHIT" << std::endl;
513 if(x.initialized()) {
514 os << " " << x.nHit;
515 {for(int i = 0; i < x.nHit; i++) {
516 os << " " << x.hitCol[i];
517 }}
518 }
519 os << std::endl << "} MDCHIT" << std::endl;
520 return os;
521}
Double_t x[10]

◆ operator>>

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

Definition at line 497 of file AsciiData.cc.

498{
499 x.check_start_tag(is,"MDCHIT");
500 if(!x.initialized()) return is;
501 is >> x.nHit;
502 x.hitCol.resize(x.nHit);
503 {for(int i = 0; i < x.nHit; i++) {
504 is >> x.hitCol[i];
505 }}
506 x.check_end_tag(is, "MDCHIT");
507 return is;
508}

Member Data Documentation

◆ hitCol

std::vector<MdcHitType> MDCHIT::hitCol

Definition at line 254 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMdcHits().

◆ nHit

int MDCHIT::nHit

Definition at line 253 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMdcHits().


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