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

Constructor & Destructor Documentation

◆ MUCTRUTH() [1/2]

MUCTRUTH::MUCTRUTH ( )
inline

Definition at line 198 of file AsciiData.hh.

198{};

◆ MUCTRUTH() [2/2]

MUCTRUTH::MUCTRUTH ( )
inline

Definition at line 198 of file AsciiData.h.

198{};

Friends And Related Symbol Documentation

◆ operator<< [1/2]

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

Definition at line 402 of file AsciiData.cc.

403{
404 os << std::endl << "{ MUCTRUTH" << std::endl;
405 if(x.initialized()) {
406 os << " " << x.nTruth;
407 {for(int i = 0; i < x.nTruth; i++) {
408 os << " " << x.truthCol[i];
409 }}
410 }
411 os << std::endl << "} MUCTRUTH" << std::endl;
412 return os;
413}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 402 of file AsciiData.cc.

403{
404 os << std::endl << "{ MUCTRUTH" << std::endl;
405 if(x.initialized()) {
406 os << " " << x.nTruth;
407 {for(int i = 0; i < x.nTruth; i++) {
408 os << " " << x.truthCol[i];
409 }}
410 }
411 os << std::endl << "} MUCTRUTH" << std::endl;
412 return os;
413}

◆ operator>> [1/2]

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

Definition at line 389 of file AsciiData.cc.

390{
391 x.check_start_tag(is,"MUCTRUTH");
392 if(!x.initialized()) return is;
393 is >> x.nTruth;
394 x.truthCol.resize(x.nTruth);
395 {for(int i = 0; i < x.nTruth; i++) {
396 is >> x.truthCol[i];
397 }}
398 x.check_end_tag(is, "MUCTRUTH");
399 return is;
400}

◆ operator>> [2/2]

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

Definition at line 389 of file AsciiData.cc.

390{
391 x.check_start_tag(is,"MUCTRUTH");
392 if(!x.initialized()) return is;
393 is >> x.nTruth;
394 x.truthCol.resize(x.nTruth);
395 {for(int i = 0; i < x.nTruth; i++) {
396 is >> x.truthCol[i];
397 }}
398 x.check_end_tag(is, "MUCTRUTH");
399 return is;
400}

Member Data Documentation

◆ nTruth

int MUCTRUTH::nTruth

Definition at line 200 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMucTruth().

◆ truthCol

std::vector< MucTruthType > MUCTRUTH::truthCol

Definition at line 201 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMucTruth().


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