BOSS 6.6.4.p01
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 &, EMCHIT &x)
 
std::ostream & operator<< (std::ostream &, 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 337 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ EMCHIT()

EMCHIT::EMCHIT ( )
inline

Definition at line 339 of file AsciiData.hh.

339{};

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 687 of file AsciiData.cc.

688{
689 os << std::endl << "{ EMCHIT" << std::endl;
690 if(x.initialized()) {
691 os << " " << x.nHit;
692 {for(int i = 0; i < x.nHit; i++) {
693 os << " " << x.hitCol[i];
694 }}
695 }
696 os << std::endl << "} EMCHIT" << std::endl;
697 return os;
698}
Double_t x[10]

◆ operator>>

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

Definition at line 674 of file AsciiData.cc.

675{
676 x.check_start_tag(is,"EMCHIT");
677 if(!x.initialized()) return is;
678 is >> x.nHit;
679 x.hitCol.resize(x.nHit);
680 {for(int i = 0; i < x.nHit; i++) {
681 is >> x.hitCol[i];
682 }}
683 x.check_end_tag(is, "EMCHIT");
684 return is;
685}

Member Data Documentation

◆ hitCol

std::vector<EmcHitType> EMCHIT::hitCol

Definition at line 342 of file AsciiData.hh.

◆ nHit

int EMCHIT::nHit

Definition at line 341 of file AsciiData.hh.


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