BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
TOFHIT Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for TOFHIT:

Public Member Functions

 TOFHIT ()
 
- 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< TofHitTypehitCol
 

Friends

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

Constructor & Destructor Documentation

◆ TOFHIT()

TOFHIT::TOFHIT ( )
inline

Definition at line 296 of file AsciiData.hh.

296{};

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 600 of file AsciiData.cc.

601{
602 os << std::endl << "{ TOFHIT" << std::endl;
603 if(x.initialized()) {
604 os << " " << x.nHit;
605 {for(int i = 0; i < x.nHit; i++) {
606 os << " " << x.hitCol[i];
607 }}
608 }
609 os << std::endl << "} TOFHIT" << std::endl;
610 return os;
611}
double x[1000]

◆ operator>>

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

Definition at line 587 of file AsciiData.cc.

588{
589 x.check_start_tag(is,"TOFHIT");
590 if(!x.initialized()) return is;
591 is >> x.nHit;
592 x.hitCol.resize(x.nHit);
593 {for(int i = 0; i < x.nHit; i++) {
594 is >> x.hitCol[i];
595 }}
596 x.check_end_tag(is, "TOFHIT");
597 return is;
598}

Member Data Documentation

◆ hitCol

std::vector<TofHitType> TOFHIT::hitCol

Definition at line 299 of file AsciiData.hh.

◆ nHit

int TOFHIT::nHit

Definition at line 298 of file AsciiData.hh.


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