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

Constructor & Destructor Documentation

◆ MDCDIGI() [1/2]

MDCDIGI::MDCDIGI ( )
inline

Definition at line 271 of file AsciiData.hh.

271{};

◆ 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 548 of file AsciiData.cc.

549{
550 os << std::endl << "{ MDCDIGI" << std::endl;
551 if(x.initialized()) {
552 os << " " << x.nDigi;
553 {for(int i = 0; i < x.nDigi; i++) {
554 os << " " << x.digiCol[i];
555 }}
556 }
557 os << std::endl << "} MDCDIGI" << std::endl;
558 return os;
559}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 548 of file AsciiData.cc.

549{
550 os << std::endl << "{ MDCDIGI" << std::endl;
551 if(x.initialized()) {
552 os << " " << x.nDigi;
553 {for(int i = 0; i < x.nDigi; i++) {
554 os << " " << x.digiCol[i];
555 }}
556 }
557 os << std::endl << "} MDCDIGI" << std::endl;
558 return os;
559}

◆ operator>> [1/2]

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

Definition at line 535 of file AsciiData.cc.

536{
537 x.check_start_tag(is,"MDCDIGI");
538 if(!x.initialized()) return is;
539 is >> x.nDigi;
540 x.digiCol.resize(x.nDigi);
541 {for(int i = 0; i < x.nDigi; i++) {
542 is >> x.digiCol[i];
543 }}
544 x.check_end_tag(is, "MDCDIGI");
545 return is;
546}

◆ operator>> [2/2]

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

Definition at line 535 of file AsciiData.cc.

536{
537 x.check_start_tag(is,"MDCDIGI");
538 if(!x.initialized()) return is;
539 is >> x.nDigi;
540 x.digiCol.resize(x.nDigi);
541 {for(int i = 0; i < x.nDigi; i++) {
542 is >> x.digiCol[i];
543 }}
544 x.check_end_tag(is, "MDCDIGI");
545 return is;
546}

Member Data Documentation

◆ digiCol

std::vector< MdcDigiType > MDCDIGI::digiCol

Definition at line 274 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMdcDigits().

◆ nDigi

int MDCDIGI::nDigi

Definition at line 273 of file AsciiData.hh.

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


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