BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
TOFDIGI Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for TOFDIGI:

Public Member Functions

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

Friends

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

Constructor & Destructor Documentation

◆ TOFDIGI() [1/2]

TOFDIGI::TOFDIGI ( )
inline

Definition at line 277 of file AsciiData.hh.

277{};

◆ TOFDIGI() [2/2]

TOFDIGI::TOFDIGI ( )
inline

Definition at line 247 of file AsciiData.h.

247{};

Friends And Related Function Documentation

◆ operator<< [1/2]

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

Definition at line 562 of file AsciiData.cc.

563{
564 os << std::endl << "{ TOFDIGI" << std::endl;
565 if(x.initialized()) {
566 os << " " << x.nDigi;
567 {for(int i = 0; i < x.nDigi; i++) {
568 os << " " << x.digiCol[i];
569 }}
570 }
571 os << std::endl << "} TOFDIGI" << std::endl;
572 return os;
573}
double x[1000]

◆ operator<< [2/2]

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

Definition at line 562 of file AsciiData.cc.

563{
564 os << std::endl << "{ TOFDIGI" << std::endl;
565 if(x.initialized()) {
566 os << " " << x.nDigi;
567 {for(int i = 0; i < x.nDigi; i++) {
568 os << " " << x.digiCol[i];
569 }}
570 }
571 os << std::endl << "} TOFDIGI" << std::endl;
572 return os;
573}

◆ operator>> [1/2]

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

Definition at line 549 of file AsciiData.cc.

550{
551 x.check_start_tag(is,"TOFDIGI");
552 if(!x.initialized()) return is;
553 is >> x.nDigi;
554 x.digiCol.resize(x.nDigi);
555 {for(int i = 0; i < x.nDigi; i++) {
556 is >> x.digiCol[i];
557 }}
558 x.check_end_tag(is, "TOFDIGI");
559 return is;
560}

◆ operator>> [2/2]

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

Definition at line 549 of file AsciiData.cc.

550{
551 x.check_start_tag(is,"TOFDIGI");
552 if(!x.initialized()) return is;
553 is >> x.nDigi;
554 x.digiCol.resize(x.nDigi);
555 {for(int i = 0; i < x.nDigi; i++) {
556 is >> x.digiCol[i];
557 }}
558 x.check_end_tag(is, "TOFDIGI");
559 return is;
560}

Member Data Documentation

◆ digiCol

std::vector< TofDigiType > TOFDIGI::digiCol

Definition at line 280 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveTofDigits().

◆ nDigi

int TOFDIGI::nDigi

Definition at line 279 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveTofDigits().


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