CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
CGEMTRUTH Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for CGEMTRUTH:

Public Member Functions

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

Friends

std::istream & operator>> (std::istream &is, CGEMTRUTH &x)
 
std::ostream & operator<< (std::ostream &os, const CGEMTRUTH &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 159 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ CGEMTRUTH()

CGEMTRUTH::CGEMTRUTH ( )
inline

Definition at line 161 of file AsciiData.hh.

161{};

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 323 of file AsciiData.cc.

324{
325 os << std::endl << "{ CGEMTRUTH" << std::endl;
326 if(x.initialized()) {
327 os << " " << x.nTruth;
328 {for(int i = 0; i < x.nTruth; i++) {
329 os << " " << x.truthCol[i];
330 }}
331 }
332 os << std::endl << "} CGEMTRUTH" << std::endl;
333 return os;
334}
Double_t x[10]

◆ operator>>

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

Definition at line 310 of file AsciiData.cc.

311{
312 x.check_start_tag(is,"CGEMTRUTH");
313 if(!x.initialized()) return is;
314 is >> x.nTruth;
315 x.truthCol.resize(x.nTruth);
316 {for(int i = 0; i < x.nTruth; i++) {
317 is >> x.truthCol[i];
318 }}
319 x.check_end_tag(is, "CGEMTRUTH");
320 return is;
321}

Member Data Documentation

◆ nTruth

int CGEMTRUTH::nTruth

Definition at line 163 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveCgemTruth(), and BesAsciiIO::SaveCgemTruth().

◆ truthCol

std::vector<CgemTruthType> CGEMTRUTH::truthCol

Definition at line 164 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveCgemTruth(), and BesAsciiIO::SaveCgemTruth().


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