CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
EMCTRUTH Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for EMCTRUTH:

Public Member Functions

 EMCTRUTH ()
 
 EMCTRUTH ()
 
- 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< EmcTruthTypetruthCol
 

Friends

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

Constructor & Destructor Documentation

◆ EMCTRUTH() [1/2]

EMCTRUTH::EMCTRUTH ( )
inline

Definition at line 219 of file AsciiData.hh.

219{};

◆ EMCTRUTH() [2/2]

EMCTRUTH::EMCTRUTH ( )
inline

Definition at line 169 of file AsciiData.h.

169{};

Friends And Related Symbol Documentation

◆ operator<< [1/2]

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

Definition at line 442 of file AsciiData.cc.

443{
444 os << std::endl << "{ EMCTRUTH" << std::endl;
445 if(x.initialized()) {
446 os << " " << x.nTruth;
447 {for(int i = 0; i < x.nTruth; i++) {
448 os << " " << x.truthCol[i];
449 }}
450 }
451 os << std::endl << "} EMCTRUTH" << std::endl;
452 return os;
453}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 442 of file AsciiData.cc.

443{
444 os << std::endl << "{ EMCTRUTH" << std::endl;
445 if(x.initialized()) {
446 os << " " << x.nTruth;
447 {for(int i = 0; i < x.nTruth; i++) {
448 os << " " << x.truthCol[i];
449 }}
450 }
451 os << std::endl << "} EMCTRUTH" << std::endl;
452 return os;
453}

◆ operator>> [1/2]

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

Definition at line 429 of file AsciiData.cc.

430{
431 x.check_start_tag(is,"EMCTRUTH");
432 if(!x.initialized()) return is;
433 is >> x.nTruth;
434 x.truthCol.resize(x.nTruth);
435 {for(int i = 0; i < x.nTruth; i++) {
436 is >> x.truthCol[i];
437 }}
438 x.check_end_tag(is, "EMCTRUTH");
439 return is;
440}

◆ operator>> [2/2]

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

Definition at line 429 of file AsciiData.cc.

430{
431 x.check_start_tag(is,"EMCTRUTH");
432 if(!x.initialized()) return is;
433 is >> x.nTruth;
434 x.truthCol.resize(x.nTruth);
435 {for(int i = 0; i < x.nTruth; i++) {
436 is >> x.truthCol[i];
437 }}
438 x.check_end_tag(is, "EMCTRUTH");
439 return is;
440}

Member Data Documentation

◆ nTruth

int EMCTRUTH::nTruth

Definition at line 221 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveEmcTruth().

◆ truthCol

std::vector< EmcTruthType > EMCTRUTH::truthCol

Definition at line 222 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveEmcTruth().


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