CGEM BOSS 6.6.5.g
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 299 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ MDCHIT()

MDCHIT::MDCHIT ( )
inline

Definition at line 301 of file AsciiData.hh.

301{};

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 609 of file AsciiData.cc.

610{
611 os << std::endl << "{ MDCHIT" << std::endl;
612 if(x.initialized()) {
613 os << " " << x.nHit;
614 {for(int i = 0; i < x.nHit; i++) {
615 os << " " << x.hitCol[i];
616 }}
617 }
618 os << std::endl << "} MDCHIT" << std::endl;
619 return os;
620}
Double_t x[10]

◆ operator>>

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

Definition at line 596 of file AsciiData.cc.

597{
598 x.check_start_tag(is,"MDCHIT");
599 if(!x.initialized()) return is;
600 is >> x.nHit;
601 x.hitCol.resize(x.nHit);
602 {for(int i = 0; i < x.nHit; i++) {
603 is >> x.hitCol[i];
604 }}
605 x.check_end_tag(is, "MDCHIT");
606 return is;
607}

Member Data Documentation

◆ hitCol

std::vector<MdcHitType> MDCHIT::hitCol

Definition at line 304 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMdcHits().

◆ nHit

int MDCHIT::nHit

Definition at line 303 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMdcHits().


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