CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
EMCHIT Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for EMCHIT:

Public Member Functions

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

Friends

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

Constructor & Destructor Documentation

◆ EMCHIT()

EMCHIT::EMCHIT ( )
inline

Definition at line 464 of file AsciiData.hh.

464{};

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 938 of file AsciiData.cc.

939{
940 os << std::endl << "{ EMCHIT" << std::endl;
941 if(x.initialized()) {
942 os << " " << x.nHit;
943 {for(int i = 0; i < x.nHit; i++) {
944 os << " " << x.hitCol[i];
945 }}
946 }
947 os << std::endl << "} EMCHIT" << std::endl;
948 return os;
949}
Double_t x[10]

◆ operator>>

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

Definition at line 925 of file AsciiData.cc.

926{
927 x.check_start_tag(is,"EMCHIT");
928 if(!x.initialized()) return is;
929 is >> x.nHit;
930 x.hitCol.resize(x.nHit);
931 {for(int i = 0; i < x.nHit; i++) {
932 is >> x.hitCol[i];
933 }}
934 x.check_end_tag(is, "EMCHIT");
935 return is;
936}

Member Data Documentation

◆ hitCol

std::vector<EmcHitType> EMCHIT::hitCol

Definition at line 467 of file AsciiData.hh.

◆ nHit

int EMCHIT::nHit

Definition at line 466 of file AsciiData.hh.


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