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

Constructor & Destructor Documentation

◆ TOFDIGI() [1/2]

TOFDIGI::TOFDIGI ( )
inline

Definition at line 402 of file AsciiData.hh.

402{};

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

814{
815 os << std::endl << "{ TOFDIGI" << std::endl;
816 if(x.initialized()) {
817 os << " " << x.nDigi;
818 {for(int i = 0; i < x.nDigi; i++) {
819 os << " " << x.digiCol[i];
820 }}
821 }
822 os << std::endl << "} TOFDIGI" << std::endl;
823 return os;
824}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 813 of file AsciiData.cc.

814{
815 os << std::endl << "{ TOFDIGI" << std::endl;
816 if(x.initialized()) {
817 os << " " << x.nDigi;
818 {for(int i = 0; i < x.nDigi; i++) {
819 os << " " << x.digiCol[i];
820 }}
821 }
822 os << std::endl << "} TOFDIGI" << std::endl;
823 return os;
824}

◆ operator>> [1/2]

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

Definition at line 800 of file AsciiData.cc.

801{
802 x.check_start_tag(is,"TOFDIGI");
803 if(!x.initialized()) return is;
804 is >> x.nDigi;
805 x.digiCol.resize(x.nDigi);
806 {for(int i = 0; i < x.nDigi; i++) {
807 is >> x.digiCol[i];
808 }}
809 x.check_end_tag(is, "TOFDIGI");
810 return is;
811}

◆ operator>> [2/2]

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

Definition at line 800 of file AsciiData.cc.

801{
802 x.check_start_tag(is,"TOFDIGI");
803 if(!x.initialized()) return is;
804 is >> x.nDigi;
805 x.digiCol.resize(x.nDigi);
806 {for(int i = 0; i < x.nDigi; i++) {
807 is >> x.digiCol[i];
808 }}
809 x.check_end_tag(is, "TOFDIGI");
810 return is;
811}

Member Data Documentation

◆ digiCol

std::vector< TofDigiType > TOFDIGI::digiCol

Definition at line 405 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveTofDigits().

◆ nDigi

int TOFDIGI::nDigi

Definition at line 404 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveTofDigits().


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