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

#include <AsciiData.hh>

+ Inheritance diagram for MDCDIGI:

Public Member Functions

 MDCDIGI ()
 
 MDCDIGI ()
 
- 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 nDigi
 
std::vector< MdcDigiTypedigiCol
 

Friends

std::istream & operator>> (std::istream &, MDCDIGI &x)
 
std::ostream & operator<< (std::ostream &, const MDCDIGI &x)
 
std::istream & operator>> (std::istream &, MDCDIGI &x)
 
std::ostream & operator<< (std::ostream &, const MDCDIGI &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 219 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ MDCDIGI() [1/2]

MDCDIGI::MDCDIGI ( )
inline

Definition at line 221 of file AsciiData.hh.

221{};

◆ MDCDIGI() [2/2]

MDCDIGI::MDCDIGI ( )
inline

Definition at line 221 of file AsciiData.h.

221{};

Friends And Related Function Documentation

◆ operator<< [1/2]

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

Definition at line 449 of file AsciiData.cc.

450{
451 os << std::endl << "{ MDCDIGI" << std::endl;
452 if(x.initialized()) {
453 os << " " << x.nDigi;
454 {for(int i = 0; i < x.nDigi; i++) {
455 os << " " << x.digiCol[i];
456 }}
457 }
458 os << std::endl << "} MDCDIGI" << std::endl;
459 return os;
460}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 449 of file AsciiData.cc.

450{
451 os << std::endl << "{ MDCDIGI" << std::endl;
452 if(x.initialized()) {
453 os << " " << x.nDigi;
454 {for(int i = 0; i < x.nDigi; i++) {
455 os << " " << x.digiCol[i];
456 }}
457 }
458 os << std::endl << "} MDCDIGI" << std::endl;
459 return os;
460}

◆ operator>> [1/2]

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

Definition at line 436 of file AsciiData.cc.

437{
438 x.check_start_tag(is,"MDCDIGI");
439 if(!x.initialized()) return is;
440 is >> x.nDigi;
441 x.digiCol.resize(x.nDigi);
442 {for(int i = 0; i < x.nDigi; i++) {
443 is >> x.digiCol[i];
444 }}
445 x.check_end_tag(is, "MDCDIGI");
446 return is;
447}

◆ operator>> [2/2]

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

Definition at line 436 of file AsciiData.cc.

437{
438 x.check_start_tag(is,"MDCDIGI");
439 if(!x.initialized()) return is;
440 is >> x.nDigi;
441 x.digiCol.resize(x.nDigi);
442 {for(int i = 0; i < x.nDigi; i++) {
443 is >> x.digiCol[i];
444 }}
445 x.check_end_tag(is, "MDCDIGI");
446 return is;
447}

Member Data Documentation

◆ digiCol

std::vector< MdcDigiType > MDCDIGI::digiCol

Definition at line 224 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMdcDigits().

◆ nDigi

int MDCDIGI::nDigi

Definition at line 223 of file AsciiData.hh.

Referenced by main(), and BesAsciiIO::SaveMdcDigits().


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