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

#include <AsciiData.hh>

+ Inheritance diagram for CGEMHIT:

Public Member Functions

 CGEMHIT ()
 
- 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 nHit
 
std::vector< CgemHitTypehitCol
 

Friends

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

Constructor & Destructor Documentation

◆ CGEMHIT()

CGEMHIT::CGEMHIT ( )
inline

Definition at line 376 of file AsciiData.hh.

376{};

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 761 of file AsciiData.cc.

762{
763 os << std::endl << "{ CGEMHIT" << std::endl;
764 if(x.initialized()) {
765 os << " " << x.nHit;
766 {for(int i = 0; i < x.nHit; i++) {
767 os << " " << x.hitCol[i];
768 }}
769 }
770 os << std::endl << "} CGEMHIT" << std::endl;
771 return os;
772}
Double_t x[10]

◆ operator>>

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

Definition at line 748 of file AsciiData.cc.

749{
750 x.check_start_tag(is,"CGEMHIT");
751 if(!x.initialized()) return is;
752 is >> x.nHit;
753 x.hitCol.resize(x.nHit);
754 {for(int i = 0; i < x.nHit; i++) {
755 is >> x.hitCol[i];
756 }}
757 x.check_end_tag(is, "CGEMHIT");
758 return is;
759}

Member Data Documentation

◆ hitCol

std::vector<CgemHitType> CGEMHIT::hitCol

Definition at line 379 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveCgemHits().

◆ nHit

int CGEMHIT::nHit

Definition at line 378 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveCgemHits().


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