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

#include <AsciiData.hh>

Inheritance diagram for TRACKTRUTH:

Public Member Functions

 TRACKTRUTH ()
 TRACKTRUTH ()
 TRACKTRUTH ()
 TRACKTRUTH ()
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< TrackTruthTypetruthCol

Friends

std::istream & operator>> (std::istream &is, TRACKTRUTH &x)
std::ostream & operator<< (std::ostream &os, const TRACKTRUTH &x)
std::istream & operator>> (std::istream &is, TRACKTRUTH &x)
std::ostream & operator<< (std::ostream &os, const TRACKTRUTH &x)
std::istream & operator>> (std::istream &is, TRACKTRUTH &x)
std::ostream & operator<< (std::ostream &os, const TRACKTRUTH &x)
std::istream & operator>> (std::istream &is, TRACKTRUTH &x)
std::ostream & operator<< (std::ostream &os, const TRACKTRUTH &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

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

Constructor & Destructor Documentation

◆ TRACKTRUTH() [1/4]

TRACKTRUTH::TRACKTRUTH ( )
inline

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

65{};

Referenced by operator<<, and operator>>.

◆ TRACKTRUTH() [2/4]

TRACKTRUTH::TRACKTRUTH ( )
inline

◆ TRACKTRUTH() [3/4]

TRACKTRUTH::TRACKTRUTH ( )
inline

◆ TRACKTRUTH() [4/4]

TRACKTRUTH::TRACKTRUTH ( )
inline

Definition at line 65 of file AsciiData.h.

65{};

◆ operator<< [1/4]

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

Definition at line 109 of file AsciiData.cc.

109 {
110 os << std::endl << "{ TRACKTRUTH" << std::endl;
111 if ( x.initialized() )
112 {
113 os << " " << x.nTruth;
114 {
115 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
116 }
117 }
118 os << std::endl << "} TRACKTRUTH" << std::endl;
119 return os;
120}
Double_t x[10]

◆ operator<< [2/4]

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

Definition at line 109 of file AsciiData.cc.

109 {
110 os << std::endl << "{ TRACKTRUTH" << std::endl;
111 if ( x.initialized() )
112 {
113 os << " " << x.nTruth;
114 {
115 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
116 }
117 }
118 os << std::endl << "} TRACKTRUTH" << std::endl;
119 return os;
120}

◆ operator<< [3/4]

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

Definition at line 109 of file AsciiData.cc.

109 {
110 os << std::endl << "{ TRACKTRUTH" << std::endl;
111 if ( x.initialized() )
112 {
113 os << " " << x.nTruth;
114 {
115 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
116 }
117 }
118 os << std::endl << "} TRACKTRUTH" << std::endl;
119 return os;
120}

◆ operator<< [4/4]

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

Definition at line 109 of file AsciiData.cc.

109 {
110 os << std::endl << "{ TRACKTRUTH" << std::endl;
111 if ( x.initialized() )
112 {
113 os << " " << x.nTruth;
114 {
115 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
116 }
117 }
118 os << std::endl << "} TRACKTRUTH" << std::endl;
119 return os;
120}

◆ operator>> [1/4]

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

Definition at line 97 of file AsciiData.cc.

97 {
98 x.check_start_tag( is, "TRACKTRUTH" );
99 if ( !x.initialized() ) return is;
100 is >> x.nTruth;
101 x.truthCol.resize( x.nTruth );
102 {
103 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
104 }
105 x.check_end_tag( is, "TRACKTRUTH" );
106 return is;
107}

◆ operator>> [2/4]

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

Definition at line 97 of file AsciiData.cc.

97 {
98 x.check_start_tag( is, "TRACKTRUTH" );
99 if ( !x.initialized() ) return is;
100 is >> x.nTruth;
101 x.truthCol.resize( x.nTruth );
102 {
103 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
104 }
105 x.check_end_tag( is, "TRACKTRUTH" );
106 return is;
107}

◆ operator>> [3/4]

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

Definition at line 97 of file AsciiData.cc.

97 {
98 x.check_start_tag( is, "TRACKTRUTH" );
99 if ( !x.initialized() ) return is;
100 is >> x.nTruth;
101 x.truthCol.resize( x.nTruth );
102 {
103 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
104 }
105 x.check_end_tag( is, "TRACKTRUTH" );
106 return is;
107}

◆ operator>> [4/4]

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

Definition at line 97 of file AsciiData.cc.

97 {
98 x.check_start_tag( is, "TRACKTRUTH" );
99 if ( !x.initialized() ) return is;
100 is >> x.nTruth;
101 x.truthCol.resize( x.nTruth );
102 {
103 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
104 }
105 x.check_end_tag( is, "TRACKTRUTH" );
106 return is;
107}

Member Data Documentation

◆ nTruth

int TRACKTRUTH::nTruth

◆ truthCol

std::vector< TrackTruthType > TRACKTRUTH::truthCol

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