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

#include <AsciiData.hh>

Inheritance diagram for EMCTRUTH:

Public Member Functions

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

◆ EMCTRUTH() [1/4]

EMCTRUTH::EMCTRUTH ( )
inline

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

180{};

Referenced by operator<<, and operator>>.

◆ EMCTRUTH() [2/4]

EMCTRUTH::EMCTRUTH ( )
inline

◆ EMCTRUTH() [3/4]

EMCTRUTH::EMCTRUTH ( )
inline

◆ EMCTRUTH() [4/4]

EMCTRUTH::EMCTRUTH ( )
inline

Definition at line 180 of file AsciiData.h.

180{};

◆ operator<< [1/4]

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

Definition at line 319 of file AsciiData.cc.

319 {
320 os << std::endl << "{ EMCTRUTH" << std::endl;
321 if ( x.initialized() )
322 {
323 os << " " << x.nTruth;
324 {
325 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
326 }
327 }
328 os << std::endl << "} EMCTRUTH" << std::endl;
329 return os;
330}
Double_t x[10]

◆ operator<< [2/4]

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

Definition at line 319 of file AsciiData.cc.

319 {
320 os << std::endl << "{ EMCTRUTH" << std::endl;
321 if ( x.initialized() )
322 {
323 os << " " << x.nTruth;
324 {
325 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
326 }
327 }
328 os << std::endl << "} EMCTRUTH" << std::endl;
329 return os;
330}

◆ operator<< [3/4]

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

Definition at line 319 of file AsciiData.cc.

319 {
320 os << std::endl << "{ EMCTRUTH" << std::endl;
321 if ( x.initialized() )
322 {
323 os << " " << x.nTruth;
324 {
325 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
326 }
327 }
328 os << std::endl << "} EMCTRUTH" << std::endl;
329 return os;
330}

◆ operator<< [4/4]

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

Definition at line 319 of file AsciiData.cc.

319 {
320 os << std::endl << "{ EMCTRUTH" << std::endl;
321 if ( x.initialized() )
322 {
323 os << " " << x.nTruth;
324 {
325 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
326 }
327 }
328 os << std::endl << "} EMCTRUTH" << std::endl;
329 return os;
330}

◆ operator>> [1/4]

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

Definition at line 307 of file AsciiData.cc.

307 {
308 x.check_start_tag( is, "EMCTRUTH" );
309 if ( !x.initialized() ) return is;
310 is >> x.nTruth;
311 x.truthCol.resize( x.nTruth );
312 {
313 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
314 }
315 x.check_end_tag( is, "EMCTRUTH" );
316 return is;
317}

◆ operator>> [2/4]

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

Definition at line 307 of file AsciiData.cc.

307 {
308 x.check_start_tag( is, "EMCTRUTH" );
309 if ( !x.initialized() ) return is;
310 is >> x.nTruth;
311 x.truthCol.resize( x.nTruth );
312 {
313 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
314 }
315 x.check_end_tag( is, "EMCTRUTH" );
316 return is;
317}

◆ operator>> [3/4]

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

Definition at line 307 of file AsciiData.cc.

307 {
308 x.check_start_tag( is, "EMCTRUTH" );
309 if ( !x.initialized() ) return is;
310 is >> x.nTruth;
311 x.truthCol.resize( x.nTruth );
312 {
313 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
314 }
315 x.check_end_tag( is, "EMCTRUTH" );
316 return is;
317}

◆ operator>> [4/4]

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

Definition at line 307 of file AsciiData.cc.

307 {
308 x.check_start_tag( is, "EMCTRUTH" );
309 if ( !x.initialized() ) return is;
310 is >> x.nTruth;
311 x.truthCol.resize( x.nTruth );
312 {
313 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
314 }
315 x.check_end_tag( is, "EMCTRUTH" );
316 return is;
317}

Member Data Documentation

◆ nTruth

int EMCTRUTH::nTruth

◆ truthCol

std::vector< EmcTruthType > EMCTRUTH::truthCol

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