CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TRACKTRUTH Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for TRACKTRUTH:

Public Member Functions

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

Public Attributes

int nTruth
 
std::vector< TrackTruthTypetruthCol
 

Friends

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

Detailed Description

Definition at line 59 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ TRACKTRUTH() [1/2]

TRACKTRUTH::TRACKTRUTH ( )
inline

Definition at line 61 of file AsciiData.hh.

61{};

◆ TRACKTRUTH() [2/2]

TRACKTRUTH::TRACKTRUTH ( )
inline

Definition at line 61 of file AsciiData.h.

61{};

Friends And Related Function Documentation

◆ operator<< [1/2]

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

Definition at line 119 of file AsciiData.cc.

120{
121 os << std::endl << "{ TRACKTRUTH" << std::endl;
122 if(x.initialized()) {
123 os << " " << x.nTruth;
124 {for(int i = 0; i < x.nTruth; i++) {
125 os << " " << x.truthCol[i];
126 }}
127 }
128 os << std::endl << "} TRACKTRUTH" << std::endl;
129 return os;
130}
Double_t x[10]

◆ operator<< [2/2]

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

Definition at line 119 of file AsciiData.cc.

120{
121 os << std::endl << "{ TRACKTRUTH" << std::endl;
122 if(x.initialized()) {
123 os << " " << x.nTruth;
124 {for(int i = 0; i < x.nTruth; i++) {
125 os << " " << x.truthCol[i];
126 }}
127 }
128 os << std::endl << "} TRACKTRUTH" << std::endl;
129 return os;
130}

◆ operator>> [1/2]

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

Definition at line 106 of file AsciiData.cc.

107{
108 x.check_start_tag(is,"TRACKTRUTH");
109 if(!x.initialized()) return is;
110 is >> x.nTruth;
111 x.truthCol.resize(x.nTruth);
112 {for(int i = 0; i < x.nTruth; i++) {
113 is >> x.truthCol[i];
114 }}
115 x.check_end_tag(is, "TRACKTRUTH");
116 return is;
117}

◆ operator>> [2/2]

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

Definition at line 106 of file AsciiData.cc.

107{
108 x.check_start_tag(is,"TRACKTRUTH");
109 if(!x.initialized()) return is;
110 is >> x.nTruth;
111 x.truthCol.resize(x.nTruth);
112 {for(int i = 0; i < x.nTruth; i++) {
113 is >> x.truthCol[i];
114 }}
115 x.check_end_tag(is, "TRACKTRUTH");
116 return is;
117}

Member Data Documentation

◆ nTruth

int TRACKTRUTH::nTruth

Definition at line 63 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveTrackTruth().

◆ truthCol

std::vector< TrackTruthType > TRACKTRUTH::truthCol

Definition at line 64 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveTrackTruth().


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