CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
MUCTRUTH Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for MUCTRUTH:

Public Member Functions

 MUCTRUTH ()
 
 MUCTRUTH ()
 
- 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 nTruth
 
std::vector< MucTruthTypetruthCol
 

Friends

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

Constructor & Destructor Documentation

◆ MUCTRUTH() [1/2]

MUCTRUTH::MUCTRUTH ( )
inline

Definition at line 248 of file AsciiData.hh.

248{};

◆ MUCTRUTH() [2/2]

MUCTRUTH::MUCTRUTH ( )
inline

Definition at line 198 of file AsciiData.h.

198{};

Friends And Related Function Documentation

◆ operator<< [1/2]

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

Definition at line 501 of file AsciiData.cc.

502{
503 os << std::endl << "{ MUCTRUTH" << std::endl;
504 if(x.initialized()) {
505 os << " " << x.nTruth;
506 {for(int i = 0; i < x.nTruth; i++) {
507 os << " " << x.truthCol[i];
508 }}
509 }
510 os << std::endl << "} MUCTRUTH" << std::endl;
511 return os;
512}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 501 of file AsciiData.cc.

502{
503 os << std::endl << "{ MUCTRUTH" << std::endl;
504 if(x.initialized()) {
505 os << " " << x.nTruth;
506 {for(int i = 0; i < x.nTruth; i++) {
507 os << " " << x.truthCol[i];
508 }}
509 }
510 os << std::endl << "} MUCTRUTH" << std::endl;
511 return os;
512}

◆ operator>> [1/2]

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

Definition at line 488 of file AsciiData.cc.

489{
490 x.check_start_tag(is,"MUCTRUTH");
491 if(!x.initialized()) return is;
492 is >> x.nTruth;
493 x.truthCol.resize(x.nTruth);
494 {for(int i = 0; i < x.nTruth; i++) {
495 is >> x.truthCol[i];
496 }}
497 x.check_end_tag(is, "MUCTRUTH");
498 return is;
499}

◆ operator>> [2/2]

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

Definition at line 488 of file AsciiData.cc.

489{
490 x.check_start_tag(is,"MUCTRUTH");
491 if(!x.initialized()) return is;
492 is >> x.nTruth;
493 x.truthCol.resize(x.nTruth);
494 {for(int i = 0; i < x.nTruth; i++) {
495 is >> x.truthCol[i];
496 }}
497 x.check_end_tag(is, "MUCTRUTH");
498 return is;
499}

Member Data Documentation

◆ nTruth

int MUCTRUTH::nTruth

Definition at line 250 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMucTruth().

◆ truthCol

std::vector< MucTruthType > MUCTRUTH::truthCol

Definition at line 251 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMucTruth().


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