BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TOFTRUTH Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for TOFTRUTH:

Public Member Functions

 TOFTRUTH ()
 
 TOFTRUTH ()
 
- 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< TofTruthTypetruthCol
 

Friends

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

Constructor & Destructor Documentation

◆ TOFTRUTH() [1/2]

TOFTRUTH::TOFTRUTH ( )
inline

Definition at line 140 of file AsciiData.hh.

140{};

◆ TOFTRUTH() [2/2]

TOFTRUTH::TOFTRUTH ( )
inline

Definition at line 140 of file AsciiData.h.

140{};

Friends And Related Symbol Documentation

◆ operator<< [1/2]

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

Definition at line 283 of file AsciiData.cc.

284{
285 os << std::endl << "{ TOFTRUTH" << std::endl;
286 if(x.initialized()) {
287 os << " " << x.nTruth;
288 {for(int i = 0; i < x.nTruth; i++) {
289 os << " " << x.truthCol[i];
290 }}
291 }
292 os << std::endl << "} TOFTRUTH" << std::endl;
293 return os;
294}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 283 of file AsciiData.cc.

284{
285 os << std::endl << "{ TOFTRUTH" << std::endl;
286 if(x.initialized()) {
287 os << " " << x.nTruth;
288 {for(int i = 0; i < x.nTruth; i++) {
289 os << " " << x.truthCol[i];
290 }}
291 }
292 os << std::endl << "} TOFTRUTH" << std::endl;
293 return os;
294}

◆ operator>> [1/2]

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

Definition at line 270 of file AsciiData.cc.

271{
272 x.check_start_tag(is,"TOFTRUTH");
273 if(!x.initialized()) return is;
274 is >> x.nTruth;
275 x.truthCol.resize(x.nTruth);
276 {for(int i = 0; i < x.nTruth; i++) {
277 is >> x.truthCol[i];
278 }}
279 x.check_end_tag(is, "TOFTRUTH");
280 return is;
281}

◆ operator>> [2/2]

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

Definition at line 270 of file AsciiData.cc.

271{
272 x.check_start_tag(is,"TOFTRUTH");
273 if(!x.initialized()) return is;
274 is >> x.nTruth;
275 x.truthCol.resize(x.nTruth);
276 {for(int i = 0; i < x.nTruth; i++) {
277 is >> x.truthCol[i];
278 }}
279 x.check_end_tag(is, "TOFTRUTH");
280 return is;
281}

Member Data Documentation

◆ nTruth

int TOFTRUTH::nTruth

Definition at line 142 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveTofTruth().

◆ truthCol

std::vector< TofTruthType > TOFTRUTH::truthCol

Definition at line 143 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveTofTruth().


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