BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
EMCHIT Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for EMCHIT:

Public Member Functions

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

◆ EMCHIT() [1/2]

EMCHIT::EMCHIT ( )
inline

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

339{};

◆ EMCHIT() [2/2]

EMCHIT::EMCHIT ( )
inline

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

339{};

Friends And Related Function Documentation

◆ operator<< [1/2]

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

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}

◆ operator>> [1/2]

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}

◆ operator>> [2/2]

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

◆ nHit

int EMCHIT::nHit

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