BOSS 7.1.2
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 167 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ EMCTRUTH() [1/2]

EMCTRUTH::EMCTRUTH ( )
inline

Definition at line 169 of file AsciiData.hh.

169{};

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

344{
345 os << std::endl << "{ EMCTRUTH" << std::endl;
346 if(x.initialized()) {
347 os << " " << x.nTruth;
348 {for(int i = 0; i < x.nTruth; i++) {
349 os << " " << x.truthCol[i];
350 }}
351 }
352 os << std::endl << "} EMCTRUTH" << std::endl;
353 return os;
354}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 343 of file AsciiData.cc.

344{
345 os << std::endl << "{ EMCTRUTH" << std::endl;
346 if(x.initialized()) {
347 os << " " << x.nTruth;
348 {for(int i = 0; i < x.nTruth; i++) {
349 os << " " << x.truthCol[i];
350 }}
351 }
352 os << std::endl << "} EMCTRUTH" << std::endl;
353 return os;
354}

◆ operator>> [1/2]

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

Definition at line 330 of file AsciiData.cc.

331{
332 x.check_start_tag(is,"EMCTRUTH");
333 if(!x.initialized()) return is;
334 is >> x.nTruth;
335 x.truthCol.resize(x.nTruth);
336 {for(int i = 0; i < x.nTruth; i++) {
337 is >> x.truthCol[i];
338 }}
339 x.check_end_tag(is, "EMCTRUTH");
340 return is;
341}

◆ operator>> [2/2]

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

Definition at line 330 of file AsciiData.cc.

331{
332 x.check_start_tag(is,"EMCTRUTH");
333 if(!x.initialized()) return is;
334 is >> x.nTruth;
335 x.truthCol.resize(x.nTruth);
336 {for(int i = 0; i < x.nTruth; i++) {
337 is >> x.truthCol[i];
338 }}
339 x.check_end_tag(is, "EMCTRUTH");
340 return is;
341}

Member Data Documentation

◆ nTruth

int EMCTRUTH::nTruth

Definition at line 171 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveEmcTruth().

◆ truthCol

std::vector< EmcTruthType > EMCTRUTH::truthCol

Definition at line 172 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveEmcTruth().


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