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

#include <AsciiData.hh>

+ Inheritance diagram for MDCTRUTH:

Public Member Functions

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

Public Attributes

int nTruth
 
std::vector< MdcTruthTypetruthCol
 

Friends

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

Detailed Description

Definition at line 109 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ MDCTRUTH() [1/2]

MDCTRUTH::MDCTRUTH ( )
inline

Definition at line 111 of file AsciiData.hh.

111{};

◆ MDCTRUTH() [2/2]

MDCTRUTH::MDCTRUTH ( )
inline

Definition at line 111 of file AsciiData.h.

111{};

Friends And Related Function Documentation

◆ operator<< [1/2]

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

Definition at line 224 of file AsciiData.cc.

225{
226 os << std::endl << "{ MDCTRUTH" << std::endl;
227 if(x.initialized()) {
228 os << " " << x.nTruth;
229 {for(int i = 0; i < x.nTruth; i++) {
230 os << " " << x.truthCol[i];
231 }}
232 }
233 os << std::endl << "} MDCTRUTH" << std::endl;
234 return os;
235}
double x[1000]

◆ operator<< [2/2]

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

Definition at line 224 of file AsciiData.cc.

225{
226 os << std::endl << "{ MDCTRUTH" << std::endl;
227 if(x.initialized()) {
228 os << " " << x.nTruth;
229 {for(int i = 0; i < x.nTruth; i++) {
230 os << " " << x.truthCol[i];
231 }}
232 }
233 os << std::endl << "} MDCTRUTH" << std::endl;
234 return os;
235}

◆ operator>> [1/2]

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

Definition at line 211 of file AsciiData.cc.

212{
213 x.check_start_tag(is,"MDCTRUTH");
214 if(!x.initialized()) return is;
215 is >> x.nTruth;
216 x.truthCol.resize(x.nTruth);
217 {for(int i = 0; i < x.nTruth; i++) {
218 is >> x.truthCol[i];
219 }}
220 x.check_end_tag(is, "MDCTRUTH");
221 return is;
222}

◆ operator>> [2/2]

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

Definition at line 211 of file AsciiData.cc.

212{
213 x.check_start_tag(is,"MDCTRUTH");
214 if(!x.initialized()) return is;
215 is >> x.nTruth;
216 x.truthCol.resize(x.nTruth);
217 {for(int i = 0; i < x.nTruth; i++) {
218 is >> x.truthCol[i];
219 }}
220 x.check_end_tag(is, "MDCTRUTH");
221 return is;
222}

Member Data Documentation

◆ nTruth

int MDCTRUTH::nTruth

Definition at line 113 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMdcTruth().

◆ truthCol

std::vector< MdcTruthType > MDCTRUTH::truthCol

Definition at line 114 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveMdcTruth().


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