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

#include <AsciiData.hh>

Inheritance diagram for MDCTRUTH:

Public Member Functions

 MDCTRUTH ()
 MDCTRUTH ()
 MDCTRUTH ()
 MDCTRUTH ()
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< MdcTruthTypetruthCol

Friends

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

◆ MDCTRUTH() [1/4]

MDCTRUTH::MDCTRUTH ( )
inline

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

118{};

Referenced by operator<<, and operator>>.

◆ MDCTRUTH() [2/4]

MDCTRUTH::MDCTRUTH ( )
inline

◆ MDCTRUTH() [3/4]

MDCTRUTH::MDCTRUTH ( )
inline

◆ MDCTRUTH() [4/4]

MDCTRUTH::MDCTRUTH ( )
inline

Definition at line 118 of file AsciiData.h.

118{};

◆ operator<< [1/4]

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

Definition at line 207 of file AsciiData.cc.

207 {
208 os << std::endl << "{ MDCTRUTH" << std::endl;
209 if ( x.initialized() )
210 {
211 os << " " << x.nTruth;
212 {
213 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
214 }
215 }
216 os << std::endl << "} MDCTRUTH" << std::endl;
217 return os;
218}
Double_t x[10]

◆ operator<< [2/4]

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

Definition at line 207 of file AsciiData.cc.

207 {
208 os << std::endl << "{ MDCTRUTH" << std::endl;
209 if ( x.initialized() )
210 {
211 os << " " << x.nTruth;
212 {
213 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
214 }
215 }
216 os << std::endl << "} MDCTRUTH" << std::endl;
217 return os;
218}

◆ operator<< [3/4]

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

Definition at line 207 of file AsciiData.cc.

207 {
208 os << std::endl << "{ MDCTRUTH" << std::endl;
209 if ( x.initialized() )
210 {
211 os << " " << x.nTruth;
212 {
213 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
214 }
215 }
216 os << std::endl << "} MDCTRUTH" << std::endl;
217 return os;
218}

◆ operator<< [4/4]

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

Definition at line 207 of file AsciiData.cc.

207 {
208 os << std::endl << "{ MDCTRUTH" << std::endl;
209 if ( x.initialized() )
210 {
211 os << " " << x.nTruth;
212 {
213 for ( int i = 0; i < x.nTruth; i++ ) { os << " " << x.truthCol[i]; }
214 }
215 }
216 os << std::endl << "} MDCTRUTH" << std::endl;
217 return os;
218}

◆ operator>> [1/4]

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

Definition at line 195 of file AsciiData.cc.

195 {
196 x.check_start_tag( is, "MDCTRUTH" );
197 if ( !x.initialized() ) return is;
198 is >> x.nTruth;
199 x.truthCol.resize( x.nTruth );
200 {
201 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
202 }
203 x.check_end_tag( is, "MDCTRUTH" );
204 return is;
205}

◆ operator>> [2/4]

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

Definition at line 195 of file AsciiData.cc.

195 {
196 x.check_start_tag( is, "MDCTRUTH" );
197 if ( !x.initialized() ) return is;
198 is >> x.nTruth;
199 x.truthCol.resize( x.nTruth );
200 {
201 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
202 }
203 x.check_end_tag( is, "MDCTRUTH" );
204 return is;
205}

◆ operator>> [3/4]

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

Definition at line 195 of file AsciiData.cc.

195 {
196 x.check_start_tag( is, "MDCTRUTH" );
197 if ( !x.initialized() ) return is;
198 is >> x.nTruth;
199 x.truthCol.resize( x.nTruth );
200 {
201 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
202 }
203 x.check_end_tag( is, "MDCTRUTH" );
204 return is;
205}

◆ operator>> [4/4]

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

Definition at line 195 of file AsciiData.cc.

195 {
196 x.check_start_tag( is, "MDCTRUTH" );
197 if ( !x.initialized() ) return is;
198 is >> x.nTruth;
199 x.truthCol.resize( x.nTruth );
200 {
201 for ( int i = 0; i < x.nTruth; i++ ) { is >> x.truthCol[i]; }
202 }
203 x.check_end_tag( is, "MDCTRUTH" );
204 return is;
205}

Member Data Documentation

◆ nTruth

int MDCTRUTH::nTruth

◆ truthCol

std::vector< MdcTruthType > MDCTRUTH::truthCol

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