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

#include <AsciiData.hh>

Inheritance diagram for TOFTRUTH:

Public Member Functions

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

Constructor & Destructor Documentation

◆ TOFTRUTH() [1/4]

TOFTRUTH::TOFTRUTH ( )
inline

Definition at line 149 of file Event/AsciiDmp/include/AsciiDmp/AsciiData.hh.

149{};

Referenced by operator<<, and operator>>.

◆ TOFTRUTH() [2/4]

TOFTRUTH::TOFTRUTH ( )
inline

◆ TOFTRUTH() [3/4]

TOFTRUTH::TOFTRUTH ( )
inline

◆ TOFTRUTH() [4/4]

TOFTRUTH::TOFTRUTH ( )
inline

Definition at line 149 of file AsciiData.h.

149{};

◆ operator<< [1/4]

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

Definition at line 263 of file AsciiData.cc.

263 {
264 os << std::endl << "{ TOFTRUTH" << std::endl;
265 if ( x.initialized() )
266 {
267 os << " " << x.nTruth;
268 {
269 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
270 }
271 }
272 os << std::endl << "} TOFTRUTH" << std::endl;
273 return os;
274}
Double_t x[10]

◆ operator<< [2/4]

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

Definition at line 263 of file AsciiData.cc.

263 {
264 os << std::endl << "{ TOFTRUTH" << std::endl;
265 if ( x.initialized() )
266 {
267 os << " " << x.nTruth;
268 {
269 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
270 }
271 }
272 os << std::endl << "} TOFTRUTH" << std::endl;
273 return os;
274}

◆ operator<< [3/4]

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

Definition at line 263 of file AsciiData.cc.

263 {
264 os << std::endl << "{ TOFTRUTH" << std::endl;
265 if ( x.initialized() )
266 {
267 os << " " << x.nTruth;
268 {
269 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
270 }
271 }
272 os << std::endl << "} TOFTRUTH" << std::endl;
273 return os;
274}

◆ operator<< [4/4]

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

Definition at line 263 of file AsciiData.cc.

263 {
264 os << std::endl << "{ TOFTRUTH" << std::endl;
265 if ( x.initialized() )
266 {
267 os << " " << x.nTruth;
268 {
269 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
270 }
271 }
272 os << std::endl << "} TOFTRUTH" << std::endl;
273 return os;
274}

◆ operator>> [1/4]

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

Definition at line 251 of file AsciiData.cc.

251 {
252 x.check_start_tag( is, "TOFTRUTH" );
253 if ( !x.initialized() ) return is;
254 is >> x.nTruth;
255 x.truthCol.resize( x.nTruth );
256 {
257 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
258 }
259 x.check_end_tag( is, "TOFTRUTH" );
260 return is;
261}

◆ operator>> [2/4]

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

Definition at line 251 of file AsciiData.cc.

251 {
252 x.check_start_tag( is, "TOFTRUTH" );
253 if ( !x.initialized() ) return is;
254 is >> x.nTruth;
255 x.truthCol.resize( x.nTruth );
256 {
257 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
258 }
259 x.check_end_tag( is, "TOFTRUTH" );
260 return is;
261}

◆ operator>> [3/4]

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

Definition at line 251 of file AsciiData.cc.

251 {
252 x.check_start_tag( is, "TOFTRUTH" );
253 if ( !x.initialized() ) return is;
254 is >> x.nTruth;
255 x.truthCol.resize( x.nTruth );
256 {
257 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
258 }
259 x.check_end_tag( is, "TOFTRUTH" );
260 return is;
261}

◆ operator>> [4/4]

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

Definition at line 251 of file AsciiData.cc.

251 {
252 x.check_start_tag( is, "TOFTRUTH" );
253 if ( !x.initialized() ) return is;
254 is >> x.nTruth;
255 x.truthCol.resize( x.nTruth );
256 {
257 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
258 }
259 x.check_end_tag( is, "TOFTRUTH" );
260 return is;
261}

Member Data Documentation

◆ nTruth

int TOFTRUTH::nTruth

◆ truthCol

std::vector< TofTruthType > TOFTRUTH::truthCol

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