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

#include <AsciiData.hh>

+ Inheritance diagram for CGEMTRUTH:

Public Member Functions

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

◆ CGEMTRUTH() [1/2]

CGEMTRUTH::CGEMTRUTH ( )
inline

Definition at line 161 of file Event/AsciiDmp/AsciiDmp-01-04-03/AsciiDmp/AsciiData.hh.

161{};

◆ CGEMTRUTH() [2/2]

CGEMTRUTH::CGEMTRUTH ( )
inline

Definition at line 161 of file InstallArea/include/AsciiDmp/AsciiDmp/AsciiData.hh.

161{};

Friends And Related Function Documentation

◆ operator<< [1/2]

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<< [2/2]

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}

◆ operator>> [1/2]

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}

◆ operator>> [2/2]

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

◆ truthCol

std::vector< CgemTruthType > CGEMTRUTH::truthCol

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