BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EMCDIGI Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for EMCDIGI:

Public Member Functions

 EMCDIGI ()
 
 EMCDIGI ()
 
- 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< EmcDigiTypedigiCol
 

Friends

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

Constructor & Destructor Documentation

◆ EMCDIGI() [1/2]

EMCDIGI::EMCDIGI ( )
inline

Definition at line 320 of file AsciiData.hh.

320{};

◆ EMCDIGI() [2/2]

EMCDIGI::EMCDIGI ( )
inline

Definition at line 271 of file AsciiData.h.

271{};

Friends And Related Symbol Documentation

◆ operator<< [1/2]

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

Definition at line 649 of file AsciiData.cc.

650{
651 os << std::endl << "{ EMCDIGI" << std::endl;
652 if(x.initialized()) {
653 os << " " << x.nDigi;
654 {for(int i = 0; i < x.nDigi; i++) {
655 os << " " << x.digiCol[i];
656 }}
657 }
658 os << std::endl << "} EMCDIGI" << std::endl;
659 return os;
660}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 649 of file AsciiData.cc.

650{
651 os << std::endl << "{ EMCDIGI" << std::endl;
652 if(x.initialized()) {
653 os << " " << x.nDigi;
654 {for(int i = 0; i < x.nDigi; i++) {
655 os << " " << x.digiCol[i];
656 }}
657 }
658 os << std::endl << "} EMCDIGI" << std::endl;
659 return os;
660}

◆ operator>> [1/2]

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

Definition at line 636 of file AsciiData.cc.

637{
638 x.check_start_tag(is,"EMCDIGI");
639 if(!x.initialized()) return is;
640 is >> x.nDigi;
641 x.digiCol.resize(x.nDigi);
642 {for(int i = 0; i < x.nDigi; i++) {
643 is >> x.digiCol[i];
644 }}
645 x.check_end_tag(is, "EMCDIGI");
646 return is;
647}

◆ operator>> [2/2]

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

Definition at line 636 of file AsciiData.cc.

637{
638 x.check_start_tag(is,"EMCDIGI");
639 if(!x.initialized()) return is;
640 is >> x.nDigi;
641 x.digiCol.resize(x.nDigi);
642 {for(int i = 0; i < x.nDigi; i++) {
643 is >> x.digiCol[i];
644 }}
645 x.check_end_tag(is, "EMCDIGI");
646 return is;
647}

Member Data Documentation

◆ digiCol

std::vector< EmcDigiType > EMCDIGI::digiCol

Definition at line 323 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveEmcDigits().

◆ nDigi

int EMCDIGI::nDigi

Definition at line 322 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveEmcDigits().


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